removed some debugs
[citadel.git] / citadel / clientsocket.h
index 21d414c3b52d1160981a060f8fc80f1bf695c1d4..cc275e1a53083dd16047b2c2add12ad42e079805 100644 (file)
@@ -1,16 +1,23 @@
-/*
- * $Id$
- *
- * Header file for TCP client socket library
- */
+// Header file for TCP client socket library
+//
+// Copyright (c) 1987-2012 by the citadel.org team
+//
+//  This program is open source software; you can redistribute it and/or modify
+//  it under the terms of the GNU General Public License version 3.
+//
+//  This program is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  GNU General Public License for more details.
 
-int sock_connect(char *host, char *service, char *protocol);
-int sock_read_to(int sock, char *buf, int bytes, int timeout);
-int sock_read(int sock, char *buf, int bytes);
-int sock_write(int sock, char *buf, int nbytes);
-int ml_sock_gets(int sock, char *buf);
-int sock_gets(int sock, char *buf);
-int sock_puts(int sock, char *buf);
+int sock_connect(char *host, char *service);
+int sock_write(int *sock, const char *buf, int nbytes);
+int sock_write_timeout(int *sock, const char *buf, int nbytes, int timeout);
+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 nSec);
+int sock_puts(int *sock, char *buf);
+int socket_read_blob(int *Socket, StrBuf * Target, int bytes, int timeout);
 
 
 /* 
@@ -22,4 +29,4 @@ int sock_puts(int sock, char *buf);
 /* 
  * Default timeout for client sessions
  */
-#define CLIENT_TIMEOUT         90
+#define CLIENT_TIMEOUT         600