summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sockets.h10
1 files changed, 10 insertions, 0 deletions
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<SocketFlag, 1>
*/
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
*/