Go to the source code of this file.
Macros | |
#define | RFCNB_Default_Port 139 |
Functions | |
void * | RFCNB_Call (char *Called_Name, char *Calling_Name, char *Called_Address, int port) |
int | RFCNB_Send (struct RFCNB_Con *Con_Handle, struct RFCNB_Pkt *udata, int Length) |
int | RFCNB_Recv (void *Con_Handle, struct RFCNB_Pkt *Data, int Length) |
int | RFCNB_Hangup (struct RFCNB_Con *con_Handle) |
void * | RFCNB_Listen (void) |
void | RFCNB_Get_Error (char *buffer, int buf_len) |
int | RFCNB_Get_Last_Error (void) |
void | RFCNB_Free_Pkt (struct RFCNB_Pkt *pkt) |
int | RFCNB_Set_Sock_NoDelay (struct RFCNB_Con *con_Handle, int yn) |
struct RFCNB_Pkt * | RFCNB_Alloc_Pkt (int n) |
Macro Definition Documentation
◆ RFCNB_Default_Port
Function Documentation
◆ RFCNB_Alloc_Pkt()
Definition at line 202 of file rfcnb-util.c.
References RFCNB_Pkt::data, RFCNB_Pkt::len, RFCNB_Pkt::next, NULL, RFCNB_errno, RFCNB_saved_errno, and RFCNBE_NoSpace.
Referenced by RFCNB_Recv(), RFCNB_Send(), RFCNB_Session_Req(), SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ RFCNB_Call()
void * RFCNB_Call | ( | char * | Called_Name, |
char * | Calling_Name, | ||
char * | Called_Address, | ||
int | port | ||
) |
Definition at line 62 of file session.c.
References BOOL, RFCNB_Con::errn, FALSE, RFCNB_Con::fd, redirect_addr::ip_addr, RFCNB_Con::last_addr, redirect_addr::next, NULL, redirect_addr::port, port, RFCNB_Con::redirect_list, RFCNB_Con::redirects, RFCNB_Close(), RFCNB_Default_Port, RFCNB_errno, RFCNB_IP_Connect(), RFCNB_Name_To_IP(), RFCNB_saved_errno, RFCNB_Session_Req(), RFCNBE_NoSpace, RFCNB_Con::timeout, and TRUE.
Referenced by SMB_Connect(), and SMB_Connect_Server().
◆ RFCNB_Free_Pkt()
void RFCNB_Free_Pkt | ( | struct RFCNB_Pkt * | pkt | ) |
Definition at line 231 of file rfcnb-util.c.
References RFCNB_Pkt::data, RFCNB_Pkt::next, and NULL.
Referenced by RFCNB_Recv(), RFCNB_Send(), RFCNB_Session_Req(), SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ RFCNB_Get_Error()
void RFCNB_Get_Error | ( | char * | buffer, |
int | buf_len | ||
) |
Definition at line 316 of file session.c.
References RFCNB_errno, RFCNB_Error_Strings, RFCNB_saved_errno, and strerror().
Referenced by SMB_Get_Error_Msg().
◆ RFCNB_Get_Last_Error()
int RFCNB_Get_Last_Error | ( | void | ) |
◆ RFCNB_Hangup()
Definition at line 284 of file session.c.
References RFCNB_Con::fd, NULL, and RFCNB_Close().
Referenced by SMB_Discon().
◆ RFCNB_Listen()
void * RFCNB_Listen | ( | void | ) |
◆ RFCNB_Recv()
Definition at line 235 of file session.c.
References RFCNB_Pkt::next, NULL, RFCNB_Alloc_Pkt(), RFCNB_errno, RFCNB_Free_Pkt(), RFCNB_Get_Pkt(), RFCNB_Pkt_Hdr_Len, RFCNB_saved_errno, RFCNBE_Bad, RFCNBE_BadHandle, and RFCNBE_NoSpace.
Referenced by SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ RFCNB_Send()
Definition at line 183 of file session.c.
References RFCNB_Pkt::data, RFCNB_Pkt::len, RFCNB_Pkt::next, NULL, RFCNB_Alloc_Pkt(), RFCNB_errno, RFCNB_Free_Pkt(), RFCNB_Pkt_Hdr_Len, RFCNB_Pkt_Type_Offset, RFCNB_Put_Pkt(), RFCNB_Put_Pkt_Len, RFCNB_saved_errno, RFCNB_SESSION_MESSAGE, RFCNBE_Bad, and RFCNBE_NoSpace.
Referenced by SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().