summaryrefslogtreecommitdiffstats
path: root/rfb/rfbclient.h
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2009-11-11 18:18:23 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2009-11-12 13:21:19 +0100
commit49cdfb4c1f25b371474f3a355e205471daa08640 (patch)
treeb2e425dff5c687b4e72b84055693b2c7124a4736 /rfb/rfbclient.h
parent9ed410668c19ddd6b2c12709d6a5383e7f7a6e07 (diff)
downloadlibtdevnc-49cdfb4c1f25b371474f3a355e205471daa08640.tar.gz
libtdevnc-49cdfb4c1f25b371474f3a355e205471daa08640.zip
libvncclient: better return value for non-forking listen.
The return value now better reflects what has happened: 1 on success (incoming connection on listen socket, we accepted it successfully), -1 on error, 0 on timeout. Also change the select calls to not check _all_ possible file descriptors. Signed-off-by: Christian Beier <dontmind@freeshell.org> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'rfb/rfbclient.h')
-rw-r--r--rfb/rfbclient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index 8d6a184..d70ece1 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -314,7 +314,7 @@ extern rfbBool HandleCursorShape(rfbClient* client,int xhot, int yhot, int width
/* listen.c */
extern void listenForIncomingConnections(rfbClient* viewer);
-extern rfbBool listenForIncomingConnectionsNoFork(rfbClient* viewer, int usec_timeout);
+extern int listenForIncomingConnectionsNoFork(rfbClient* viewer, int usec_timeout);
/* rfbproto.c */