cleanup webcit.h; utils.c, remove unneeded stuff
[citadel.git] / webcit / tcp_sockets.h
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);
5 int GetServerStatus(StrBuf *Line, long* FullState);
6 int serv_puts(const char *string);
7
8 int serv_write(const char *buf, int nbytes);
9 int serv_putbuf(const StrBuf *string);
10 int serv_printf(const char *format,...)__attribute__((__format__(__printf__,1,2)));
11 int serv_read_binary(StrBuf *Ret, size_t total_len, StrBuf *Buf);
12 int StrBuf_ServGetBLOB(StrBuf *buf, long BlobSize);
13 int StrBuf_ServGetBLOBBuffered(StrBuf *buf, long BlobSize);
14 int read_server_text(StrBuf *Buf, long *nLines);
15
16 void text_to_server(char *ptr);
17 void text_to_server_qp(char *ptr);
18 void server_to_text(void);
19 int lingering_close(int fd);