#include "squid.h"
#include "rfcnb/std-includes.h"
#include <netinet/tcp.h>
#include "rfcnb/rfcnb-io.h"
#include "rfcnb/rfcnb-priv.h"
#include "rfcnb/rfcnb-util.h"
#include "rfcnb/rfcnb.h"
Go to the source code of this file.
Macros | |
#define | RFCNB_ERRNO |
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) |
int | RFCNB_Set_Sock_NoDelay (struct RFCNB_Con *con_Handle, BOOL yn) |
void | RFCNB_Get_Error (char *buffer, int buf_len) |
int | RFCNB_Get_Last_Error () |
Variables | |
int | RFCNB_errno = 0 |
int | RFCNB_saved_errno = 0 |
int | RFCNB_Stats [RFCNB_MAX_STATS] |
RFCNB_Prot_Print_Routine * | Prot_Print_Routine = NULL |
Macro Definition Documentation
◆ RFCNB_ERRNO
Function Documentation
◆ 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_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_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().
◆ RFCNB_Set_Sock_NoDelay()
Definition at line 296 of file session.c.
References RFCNB_Con::fd.
Variable Documentation
◆ Prot_Print_Routine
RFCNB_Prot_Print_Routine* Prot_Print_Routine = NULL |
Definition at line 52 of file session.c.
Referenced by RFCNB_Print_Pkt().
◆ RFCNB_errno
int RFCNB_errno = 0 |
Definition at line 35 of file session.c.
Referenced by RFCNB_Alloc_Pkt(), RFCNB_Call(), RFCNB_Discard_Rest(), RFCNB_Get_Error(), RFCNB_Get_Last_Error(), RFCNB_Get_Pkt(), RFCNB_IP_Connect(), RFCNB_Name_To_IP(), RFCNB_Put_Pkt(), RFCNB_Recv(), RFCNB_Send(), and RFCNB_Session_Req().
◆ RFCNB_saved_errno
int RFCNB_saved_errno = 0 |
Definition at line 36 of file session.c.
Referenced by RFCNB_Alloc_Pkt(), RFCNB_Call(), RFCNB_Discard_Rest(), RFCNB_Get_Error(), RFCNB_Get_Pkt(), RFCNB_IP_Connect(), RFCNB_Name_To_IP(), RFCNB_Put_Pkt(), RFCNB_Recv(), and RFCNB_Send().
◆ RFCNB_Stats
int RFCNB_Stats[RFCNB_MAX_STATS] |