Back to index

webcit  8.12-dfsg
tcp_sockets.h
Go to the documentation of this file.
00001 int uds_connectsock(char *);
00002 int tcp_connectsock(char *, char *);
00003 int serv_getln(char *strbuf, int bufsize);
00004 int StrBuf_ServGetln(StrBuf *buf);
00005 
00020 int GetServerStatusMsg(StrBuf *Line, long* FullState, int PutImportantMessage, int MajorOK);
00025 #define GetServerStatus(a, b) GetServerStatusMsg(a, b, 0, 0)
00026 
00027 int serv_puts(const char *string);
00028 
00029 int serv_write(const char *buf, int nbytes);
00030 int serv_putbuf(const StrBuf *string);
00031 int serv_printf(const char *format,...)__attribute__((__format__(__printf__,1,2)));
00032 int serv_read_binary(StrBuf *Ret, size_t total_len, StrBuf *Buf);
00033 int StrBuf_ServGetBLOB(StrBuf *buf, long BlobSize);
00034 int StrBuf_ServGetBLOBBuffered(StrBuf *buf, long BlobSize);
00035 int read_server_text(StrBuf *Buf, long *nLines);
00036 
00037 void text_to_server(char *ptr);
00038 void text_to_server_qp(char *ptr);
00039 void server_to_text(void);
00040 int lingering_close(int fd);