]> code.citadel.org Git - citadel.git/blobdiff - citadel/clientsocket.h
have flexible timouts while reading lines in our client mode connections
[citadel.git] / citadel / clientsocket.h
index 0274052a5ec6a83ee0d3c0e4c3a5825dd0207d34..ba5e35068b75cb392463cc4eea219948a5ae37c3 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * Header file for TCP client socket library
  *
  * Copyright (c) 1987-2009 by the citadel.org team
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-int sock_connect(char *host, char *service, char *protocol);
+int sock_connect(char *host, char *service);
 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, const char *buf, int nbytes);
-int ml_sock_gets(int *sock, char *buf);
+int ml_sock_gets(int *sock, char *buf, int nSec);
 int sock_getln(int *sock, char *buf, int bufsize);
-int CtdlSockGetLine(int *sock, StrBuf *Target);
+int CtdlSockGetLine(int *sock, StrBuf *Target, int nSec);
 int sock_puts(int *sock, char *buf);