citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

clientsocket.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define sock_close(sock)   close(sock)
 
#define sock_shutdown(sock, how)   shutdown(sock, how)
 
#define CLIENT_TIMEOUT   600
 

Functions

int sock_connect (char *host, char *service)
 
int sock_write (int *sock, const char *buf, int nbytes)
 
int sock_write_timeout (int *sock, const char *buf, int nbytes, int timeout)
 
int ml_sock_gets (int *sock, char *buf, int nSec)
 
int sock_getln (int *sock, char *buf, int bufsize)
 
int CtdlSockGetLine (int *sock, StrBuf *Target, int nSec)
 
int sock_puts (int *sock, char *buf)
 
int socket_read_blob (int *Socket, StrBuf *Target, int bytes, int timeout)
 

Macro Definition Documentation

◆ CLIENT_TIMEOUT

#define CLIENT_TIMEOUT   600

Definition at line 32 of file clientsocket.h.

◆ sock_close

#define sock_close (   sock)    close(sock)

Definition at line 26 of file clientsocket.h.

◆ sock_shutdown

#define sock_shutdown (   sock,
  how 
)    shutdown(sock, how)

Definition at line 27 of file clientsocket.h.

Function Documentation

◆ CtdlSockGetLine()

int CtdlSockGetLine ( int *  sock,
StrBuf *  Target,
int  nSec 
)

Definition at line 108 of file clientsocket.c.

References CC.

Referenced by sock_getln(), and sock_getln_err().

◆ ml_sock_gets()

int ml_sock_gets ( int *  sock,
char *  buf,
int  nSec 
)

Definition at line 233 of file clientsocket.c.

References SIZ, and sock_getln_err().

◆ sock_connect()

int sock_connect ( char *  host,
char *  service 
)

Definition at line 23 of file clientsocket.c.

Referenced by clamd(), and spam_assassin().

◆ sock_getln()

int sock_getln ( int *  sock,
char *  buf,
int  bufsize 
)

Definition at line 125 of file clientsocket.c.

References CC, and CtdlSockGetLine().

Referenced by clamd(), and spam_assassin().

◆ sock_puts()

int sock_puts ( int *  sock,
char *  buf 
)

Definition at line 260 of file clientsocket.c.

References sock_write().

◆ sock_write()

int sock_write ( int *  sock,
const char *  buf,
int  nbytes 
)

Definition at line 148 of file clientsocket.c.

References sock_write_timeout().

Referenced by clamd(), sock_puts(), and spam_assassin().

◆ sock_write_timeout()

int sock_write_timeout ( int *  sock,
const char *  buf,
int  nbytes,
int  timeout 
)

Definition at line 153 of file clientsocket.c.

References sock_close, and timeout().

Referenced by sock_write().

◆ socket_read_blob()

int socket_read_blob ( int *  Socket,
StrBuf *  Target,
int  bytes,
int  timeout 
)

Definition at line 96 of file clientsocket.c.

References CC.