diff options
author | Mattes D <github@xoft.cz> | 2015-01-22 22:49:37 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-22 22:49:37 +0100 |
commit | 9014bdfa3233dac70274b27eb40df3739b6f49eb (patch) | |
tree | a4a4b62a41936918b77aab0993f1011474454eeb /src/OSSupport/Network.h | |
parent | cNetwork: Added link creation callback. (diff) | |
download | cuberite-9014bdfa3233dac70274b27eb40df3739b6f49eb.tar cuberite-9014bdfa3233dac70274b27eb40df3739b6f49eb.tar.gz cuberite-9014bdfa3233dac70274b27eb40df3739b6f49eb.tar.bz2 cuberite-9014bdfa3233dac70274b27eb40df3739b6f49eb.tar.lz cuberite-9014bdfa3233dac70274b27eb40df3739b6f49eb.tar.xz cuberite-9014bdfa3233dac70274b27eb40df3739b6f49eb.tar.zst cuberite-9014bdfa3233dac70274b27eb40df3739b6f49eb.zip |
Diffstat (limited to 'src/OSSupport/Network.h')
-rw-r--r-- | src/OSSupport/Network.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/OSSupport/Network.h b/src/OSSupport/Network.h index 85c7c5dcb..cdf6ba0e9 100644 --- a/src/OSSupport/Network.h +++ b/src/OSSupport/Network.h @@ -16,6 +16,10 @@ // fwd: class cTCPLink; typedef SharedPtr<cTCPLink> cTCPLinkPtr; +typedef std::vector<cTCPLinkPtr> cTCPLinkPtrs; +class cServerHandle; +typedef SharedPtr<cServerHandle> cServerHandlePtr; +typedef std::vector<cServerHandlePtr> cServerHandlePtrs; @@ -118,7 +122,6 @@ public: /** Returns true if the server has been started correctly and is currently listening for incoming connections. */ virtual bool IsListening(void) const = 0; }; -typedef SharedPtr<cServerHandle> cServerHandlePtr; @@ -136,7 +139,7 @@ public: /** Called when the Connect call succeeds. Provides the newly created link that can be used for communication. */ - virtual void OnSuccess(cTCPLink & a_Link) = 0; + virtual void OnConnected(cTCPLink & a_Link) = 0; /** Called when the Connect call fails. */ virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) = 0; |