Mercurial > ~mikael > mcabber > hg
comparison mcabber/connwrap/connwrap.h @ 414:ec86d759ed54
Trailing whitespace cleanup
No real change.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 30 Aug 2005 22:26:19 +0200 |
parents | f7f07794d2df |
children | 40175f3dcef7 |
comparison
equal
deleted
inserted
replaced
413:f7e4b0424081 | 414:ec86d759ed54 |
---|---|
18 #define CW_CONNECT_SSL 0x2 | 18 #define CW_CONNECT_SSL 0x2 |
19 #define CW_CONNECT_WANT_READ 0x4 | 19 #define CW_CONNECT_WANT_READ 0x4 |
20 #define CW_CONNECT_WANT_WRITE 0x8 | 20 #define CW_CONNECT_WANT_WRITE 0x8 |
21 #define CW_CONNECT_WANT_SOMETHING 0xC | 21 #define CW_CONNECT_WANT_SOMETHING 0xC |
22 #define CW_CONNECT_BLOCKING 0x10 | 22 #define CW_CONNECT_BLOCKING 0x10 |
23 | 23 |
24 /* non-blocking socket | 24 /* non-blocking socket |
25 state should be initialized with 0, subsequent calls should keep the modified state (state is a bitwise OR between CW_CONNECT_XXX) | 25 state should be initialized with 0, subsequent calls should keep the |
26 modified state (state is a bitwise OR between CW_CONNECT_XXX) | |
26 returns 0 for OK, or if it wants subsequent calls | 27 returns 0 for OK, or if it wants subsequent calls |
27 -1 for a fatal error | 28 -1 for a fatal error |
28 */ | 29 */ |
29 int cw_nb_connect(int sockfd, const struct sockaddr *serv_addr, int addrlen, int ssl, int *state); | 30 int cw_nb_connect(int sockfd, const struct sockaddr *serv_addr, int addrlen, int ssl, int *state); |
30 int cw_accept(int s, struct sockaddr *addr, int *addrlen, int ssl); | 31 int cw_accept(int s, struct sockaddr *addr, int *addrlen, int ssl); |