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 * @brief parse & check the server reply
8 * @param Line the line containing the server reply
9 * @param FullState if you need more than just the major number, this is returns it. Ignored if NULL.
10 * @param PutImportantMessage if you want to forward the text part of the server reply to the user, specify 1;
11 * the result will be put into the 'Important Message' framework.
12 * @param MajorOK in case of which major number not to put the ImportantMessage? 0 for all.
13 * @return the most significant digit of the server status
15 int GetServerStatusMsg(StrBuf *Line, long* FullState, int PutImportantMessage, int MajorOK);
16 /* to migrate old calls.... */
17 #define GetServerStatus(a, b) GetServerStatusMsg(a, b, 0, 0)
19 int serv_puts(const char *string);
21 int serv_write(const char *buf, int nbytes);
22 int serv_putbuf(const StrBuf *string);
23 int serv_printf(const char *format,...)__attribute__((__format__(__printf__,1,2)));
24 int serv_read_binary(StrBuf *Ret, size_t total_len, StrBuf *Buf);
25 int StrBuf_ServGetBLOB(StrBuf *buf, long BlobSize);
26 int StrBuf_ServGetBLOBBuffered(StrBuf *buf, long BlobSize);
27 int read_server_text(StrBuf *Buf, long *nLines);
29 void text_to_server(char *ptr);
30 void text_to_server_qp(char *ptr);
31 void server_to_text(void);
32 int lingering_close(int fd);