diff options
author | Mattes D <github@xoft.cz> | 2015-01-21 21:12:11 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-22 20:13:05 +0100 |
commit | 5b4c5cf2befebb78ff2b16955c244e79841648a7 (patch) | |
tree | fd634bd69b029b1b4f4850dd48408997e5b6fbfa /src/OSSupport/ServerHandleImpl.h | |
parent | cNetwork: Added error message to error callbacks. (diff) | |
download | cuberite-5b4c5cf2befebb78ff2b16955c244e79841648a7.tar cuberite-5b4c5cf2befebb78ff2b16955c244e79841648a7.tar.gz cuberite-5b4c5cf2befebb78ff2b16955c244e79841648a7.tar.bz2 cuberite-5b4c5cf2befebb78ff2b16955c244e79841648a7.tar.lz cuberite-5b4c5cf2befebb78ff2b16955c244e79841648a7.tar.xz cuberite-5b4c5cf2befebb78ff2b16955c244e79841648a7.tar.zst cuberite-5b4c5cf2befebb78ff2b16955c244e79841648a7.zip |
Diffstat (limited to 'src/OSSupport/ServerHandleImpl.h')
-rw-r--r-- | src/OSSupport/ServerHandleImpl.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/OSSupport/ServerHandleImpl.h b/src/OSSupport/ServerHandleImpl.h index b325a0f37..33ff787f2 100644 --- a/src/OSSupport/ServerHandleImpl.h +++ b/src/OSSupport/ServerHandleImpl.h @@ -46,8 +46,7 @@ public: Always returns a server instance; in the event of a failure, the instance holds the error details. Use IsListening() to query success. */ static cServerHandleImplPtr Listen( UInt16 a_Port, - cNetwork::cListenCallbacksPtr a_ListenCallbacks, - cTCPLink::cCallbacksPtr a_LinkCallbacks + cNetwork::cListenCallbacksPtr a_ListenCallbacks ); // cServerHandle overrides: @@ -58,9 +57,6 @@ protected: /** The callbacks used to notify about incoming connections. */ cNetwork::cListenCallbacksPtr m_ListenCallbacks; - /** The callbacks used to create new cTCPLink instances for incoming connections. */ - cTCPLink::cCallbacksPtr m_LinkCallbacks; - /** The LibEvent handle representing the main listening socket. */ evconnlistener * m_ConnListener; @@ -86,10 +82,7 @@ protected: /** Creates a new instance with the specified callbacks. Initializes the internals, but doesn't start listening yet. */ - cServerHandleImpl( - cNetwork::cListenCallbacksPtr a_ListenCallbacks, - cTCPLink::cCallbacksPtr a_LinkCallbacks - ); + cServerHandleImpl(cNetwork::cListenCallbacksPtr a_ListenCallbacks); /** Starts listening on the specified port. Returns true if successful, false on failure. On failure, sets m_ErrorCode and m_ErrorMsg. */ |