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.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <stdio.h>
#include <libcitadel.h>
#include "ctdl_module.h"
#include "clientsocket.h"
Include dependency graph for clientsocket.c:

Go to the source code of this file.

Functions

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

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_getln_err()

int sock_getln_err ( int *  sock,
char *  buf,
int  bufsize,
int *  rc,
int  nSec 
)

Definition at line 209 of file clientsocket.c.

References CC, and CtdlSockGetLine().

Referenced by ml_sock_gets().

◆ 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.