diff options
author | madmaxoft <github@xoft.cz> | 2014-01-19 19:31:43 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-19 19:31:43 +0100 |
commit | 3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b (patch) | |
tree | 5eaa7eb6bfd5434d008186decd3d43e302a9c2d8 /src/OSSupport/Socket.h | |
parent | Added graph of SocketThreads state transitions. (diff) | |
download | cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.gz cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.bz2 cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.lz cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.xz cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.tar.zst cuberite-3c0e8c8da0e397f3fda6b1565e7b2e9eeb4a747b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/Socket.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/OSSupport/Socket.h b/src/OSSupport/Socket.h index b86560de8..91c9ca5fd 100644 --- a/src/OSSupport/Socket.h +++ b/src/OSSupport/Socket.h @@ -39,7 +39,11 @@ public: bool IsValid(void) const { return IsValidSocket(m_Socket); } void CloseSocket(void); - + + /** Notifies the socket that we don't expect any more reads nor writes on it. + Most TCPIP implementations use this to send the FIN flag in a packet */ + void ShutdownReadWrite(void); + operator xSocket(void) const; xSocket GetSocket(void) const; |