summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2010-09-07 17:43:58 +0200
committerChristian Beier <dontmind@freeshell.org>2010-09-13 14:19:15 +0200
commitc0373e9cd48b0fc22ac295fdab51a29e3df7a0cd (patch)
tree253b193dfb1805cd6de337f26cf6f82e74a42cad /rfb
parent0df84e5c27eefad8b731b12d58f8fbede71823e0 (diff)
downloadlibvncserver-c0373e9cd48b0fc22ac295fdab51a29e3df7a0cd.zip
libvncserver-c0373e9cd48b0fc22ac295fdab51a29e3df7a0cd.tar.gz
Non-blocking sockets for Windows.
Expands the SetNonBlocking() function in libvncclient/sockets.c to also work under Windows and also changes it to honour maybe already present socket flags. A similar function was introduced for libvncserver as well and all the #ifdef'ed fnctl calls replaced with calls to that one. Signed-off-by: Christian Beier <dontmind@freeshell.org>
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index 006cc2e..e58e59e 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -664,6 +664,7 @@ extern int rfbConnectToTcpAddr(char* host, int port);
extern int rfbListenOnTCPPort(int port, in_addr_t iface);
extern int rfbListenOnUDPPort(int port, in_addr_t iface);
extern int rfbStringToAddr(char* string,in_addr_t* addr);
+extern rfbBool rfbSetNonBlocking(int sock);
/* rfbserver.c */
OpenPOWER on IntegriCloud