From 2328c3e7ec718071a8cafcc396d072f90fb4dbc2 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 24 Jul 2010 13:45:54 -0400 Subject: Always use non-blocking sockets --- include/sockets.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/sockets.h b/include/sockets.h index 92279f81f..1bcafd79f 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -92,6 +92,16 @@ class CoreExport Socket : public Flags */ int GetSock() const; + /** Mark a socket as blockig + * @return true if the socket is now blocking + */ + bool SetBlocking(); + + /** Mark a socket as non-blocking + * @return true if the socket is now non-blocking + */ + bool SetNonBlocking(); + /** Check if this socket is IPv6 * @return true or false */ -- cgit