diff options
| author | Adam <Adam@anope.org> | 2010-07-24 13:45:54 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-07-24 13:45:54 -0400 |
| commit | 2328c3e7ec718071a8cafcc396d072f90fb4dbc2 (patch) | |
| tree | 7a77b1d8def8a7621c862007001919a05a6ad3ab /include | |
| parent | b218d52a31442214bf3bfdb5cc171fd5384f37c8 (diff) | |
Always use non-blocking sockets
Diffstat (limited to 'include')
| -rw-r--r-- | include/sockets.h | 10 |
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 */ |
