* custom sockets need to work buffered too...
[citadel.git] / citadel / clientsocket.h
index 2c9a5d3689a46af5cf4fd1f4d2070140b2c63f18..fcaf034b6944375365fc22ccbaf6e03a5bfb9495 100644 (file)
  */
 
 int sock_connect(char *host, char *service, char *protocol);
-int sock_read_to(int sock, char *buf, int bytes, int timeout, int keep_reading_until_full);
-int sock_read(int sock, char *buf, int bytes, int keep_reading_until_full);
+int sock_read_to(int *sock, char *buf, int bytes, int timeout, int keep_reading_until_full);
+int sock_read(int *sock, char *buf, int bytes, int keep_reading_until_full);
 int sock_write(int sock, char *buf, int nbytes);
-int ml_sock_gets(int sock, char *buf);
-int sock_getln(int sock, char *buf, int bufsize);
+int ml_sock_gets(int *sock, char *buf);
+int sock_getln(int *sock, char *buf, int bufsize);
+int CtdlSockGetLine(int *sock, StrBuf *Target);
 int sock_puts(int sock, char *buf);