]> code.citadel.org Git - citadel.git/blob - citadel/clientsocket.h
* SMTP hacks to deal with AOL braindamage
[citadel.git] / citadel / clientsocket.h
1 /*
2  * $Id$
3  *
4  * Header file for TCP client socket library
5  */
6
7 int sock_connect(char *host, char *service, char *protocol);
8 int sock_read(int sock, char *buf, int bytes);
9 int sock_write(int sock, char *buf, int nbytes);
10 int ml_sock_gets(int sock, char *buf);
11 int sock_gets(int sock, char *buf);
12 int sock_puts(int sock, char *buf);
13 int sock_puts_crlf(int sock, char *buf);
14
15 /* 
16  * This looks dumb, but it's being done for future portability
17  */
18 #define sock_close(sock)        close(sock)