aboutsummaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-10-02 12:07:02 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-10-02 12:07:02 +0000
commited38631c6bd2f020d7dfd05be36d1dc4383ac643 (patch)
treedffa1087ded9e8133cab3a30e7900af437c1a7f5 /socket.h
parent2f077aec530acecd7876a562ac787f38c0f47116 (diff)
downloadfetchmail-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index c493daa6..658918bb 100644
--- a/socket.h
+++ b/socket.h
@@ -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