diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-10-02 12:07:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-10-02 12:07:02 +0000 |
commit | ed38631c6bd2f020d7dfd05be36d1dc4383ac643 (patch) | |
tree | dffa1087ded9e8133cab3a30e7900af437c1a7f5 /socket.h | |
parent | 2f077aec530acecd7876a562ac787f38c0f47116 (diff) | |
download | fetchmail-ed38631c6bd2f020d7dfd05be36d1dc4383ac643.tar.gz fetchmail-ed38631c6bd2f020d7dfd05be36d1dc4383ac643.tar.bz2 fetchmail-ed38631c6bd2f020d7dfd05be36d1dc4383ac643.zip |
Anticipate the IDLE extension.
svn path=/trunk/; revision=2630
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -16,6 +16,13 @@ int SockOpen(const char *host, int clientPort, const char *options, const char *plugin); #endif /* INET6 */ +/* Returns 1 if this socket is OK, 0 if it isn't select()able + * on - probably because it's been closed. You should + * always check this function before passing stuff to the + * select()-based waiter, as otherwise it may loop. + */ +int SockCheckOpen(int fd); + /* Get a string terminated by an '\n' (matches interface of fgets). Pass it a valid socket, a buffer for the string, and |