summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Network.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-12 14:58:52 +0100
committerMattes D <github@xoft.cz>2015-01-22 20:12:49 +0100
commitd8ac99a0374b528caca66ad8ecb5fb36f6334e77 (patch)
tree337f48c5e77435c740cb710ee255358d16c28c14 /src/OSSupport/Network.h
parentcNetwork: Fixed Linux compilation. (diff)
downloadcuberite-d8ac99a0374b528caca66ad8ecb5fb36f6334e77.tar
cuberite-d8ac99a0374b528caca66ad8ecb5fb36f6334e77.tar.gz
cuberite-d8ac99a0374b528caca66ad8ecb5fb36f6334e77.tar.bz2
cuberite-d8ac99a0374b528caca66ad8ecb5fb36f6334e77.tar.lz
cuberite-d8ac99a0374b528caca66ad8ecb5fb36f6334e77.tar.xz
cuberite-d8ac99a0374b528caca66ad8ecb5fb36f6334e77.tar.zst
cuberite-d8ac99a0374b528caca66ad8ecb5fb36f6334e77.zip
Diffstat (limited to 'src/OSSupport/Network.h')
-rw-r--r--src/OSSupport/Network.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/OSSupport/Network.h b/src/OSSupport/Network.h
index 3f60b03a7..11c45b152 100644
--- a/src/OSSupport/Network.h
+++ b/src/OSSupport/Network.h
@@ -66,12 +66,13 @@ public:
virtual UInt16 GetRemotePort(void) const = 0;
/** Closes the link gracefully.
- The link will keep trying to send the queued data, then it will send the FIN packet. */
- virtual void Close(void) = 0;
+ The link will send any queued outgoing data, then it will send the FIN packet.
+ The link will still receive incoming data from remote until the remote closes the connection. */
+ virtual void Shutdown(void) = 0;
/** Drops the connection without any more processing.
Sends the RST packet, queued outgoing and incoming data is lost. */
- virtual void Drop(void) = 0;
+ virtual void Close(void) = 0;
protected:
/** Callbacks to be used for the various situations. */
@@ -95,7 +96,8 @@ public:
// Force a virtual destructor for all descendants:
virtual ~cServerHandle() {}
- /** Stops the server, no more incoming connections will be accepted. */
+ /** Stops the server, no more incoming connections will be accepted.
+ All current connections will be shut down (cTCPLink::Shutdown()). */
virtual void Close(void) = 0;
/** Returns true if the server has been started correctly and is currently listening for incoming connections. */