1 int uds_connectsock(char *);
2 int tcp_connectsock(char *, char *);
3 int serv_getln(char *strbuf, int bufsize);
4 int StrBuf_ServGetln(StrBuf *buf);
7 * @defgroup CoreSrv Core Server Functionality
12 * @brief parse & check the server reply
13 * @param Line the line containing the server reply
14 * @param FullState if you need more than just the major number, this is returns it. Ignored if NULL.
15 * @param PutImportantMessage if you want to forward the text part of the server reply to the user, specify 1;
16 * the result will be put into the 'Important Message' framework.
17 * @param MajorOK in case of which major number not to put the ImportantMessage? 0 for all.
18 * @return the most significant digit of the server status
20 int GetServerStatusMsg(StrBuf *Line, long* FullState, int PutImportantMessage, int MajorOK);
23 * @brief to migrate old calls....
25 #define GetServerStatus(a, b) GetServerStatusMsg(a, b, 0, 0)
27 int serv_puts(const char *string);
29 int serv_write(const char *buf, int nbytes);
30 int serv_putbuf(const StrBuf *string);
31 int serv_printf(const char *format,...)__attribute__((__format__(__printf__,1,2)));
32 int serv_read_binary(StrBuf *Ret, size_t total_len, StrBuf *Buf);
33 int StrBuf_ServGetBLOB(StrBuf *buf, long BlobSize);
34 int StrBuf_ServGetBLOBBuffered(StrBuf *buf, long BlobSize);
35 int read_server_text(StrBuf *Buf, long *nLines);
37 void text_to_server(char *ptr);
38 void text_to_server_qp(char *ptr);
39 void server_to_text(void);
40 int lingering_close(int fd);