*/
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);
* This looks dumb, but it's being done for future portability
*/
#define sock_close(sock) close(sock)
+
+/*
+ * Default timeout for client sessions
+ */
+#define CLIENT_TIMEOUT 90