X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Ftcp_sockets.h;h=cb4987ce33881d4452665e6ac3aba6fb9de99a55;hb=HEAD;hp=1c8591e033bba49062c3aeabcbada6e2158746d0;hpb=cc1ac05448414ebbdfb65a7f7e1d3081a5618570;p=citadel.git diff --git a/webcit/tcp_sockets.h b/webcit/tcp_sockets.h deleted file mode 100644 index 1c8591e03..000000000 --- a/webcit/tcp_sockets.h +++ /dev/null @@ -1,32 +0,0 @@ -int uds_connectsock(char *); -int tcp_connectsock(char *, char *); -int serv_getln(char *strbuf, int bufsize); -int StrBuf_ServGetln(StrBuf *buf); - -/** - * @brief parse & check the server reply - * @param Line the line containing the server reply - * @param FullState if you need more than just the major number, this is returns it. Ignored if NULL. - * @param PutImportantMessage if you want to forward the text part of the server reply to the user, specify 1; - * the result will be put into the 'Important Message' framework. - * @param MajorOK in case of which major number not to put the ImportantMessage? 0 for all. - * @return the most significant digit of the server status - * / -int GetServerStatusMsg(StrBuf *Line, long* FullState, int PutImportantMessage, int MajorOK); -/* to migrate old calls.... */ -#define GetServerStatus(a, b) GetServerStatusMsg(a, b, 0, 0) - -int serv_puts(const char *string); - -int serv_write(const char *buf, int nbytes); -int serv_putbuf(const StrBuf *string); -int serv_printf(const char *format,...)__attribute__((__format__(__printf__,1,2))); -int serv_read_binary(StrBuf *Ret, size_t total_len, StrBuf *Buf); -int StrBuf_ServGetBLOB(StrBuf *buf, long BlobSize); -int StrBuf_ServGetBLOBBuffered(StrBuf *buf, long BlobSize); -int read_server_text(StrBuf *Buf, long *nLines); - -void text_to_server(char *ptr); -void text_to_server_qp(char *ptr); -void server_to_text(void); -int lingering_close(int fd);