From ed38631c6bd2f020d7dfd05be36d1dc4383ac643 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 2 Oct 1999 12:07:02 +0000 Subject: Anticipate the IDLE extension. svn path=/trunk/; revision=2630 --- socket.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'socket.h') 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 -- cgit v1.2.3