summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Network.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-15 21:10:14 +0100
committerMattes D <github@xoft.cz>2015-01-22 20:12:57 +0100
commit7cddb6237418f2d7ec984cd0d4cbdac7140330b0 (patch)
treeaf556ec335cf43ab0adeedd9bf86e4995b072b5c /src/OSSupport/Network.h
parentcNetwork: Rewritten server listen into a factory method. (diff)
downloadcuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.gz
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.bz2
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.lz
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.xz
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.zst
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.zip
Diffstat (limited to 'src/OSSupport/Network.h')
-rw-r--r--src/OSSupport/Network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OSSupport/Network.h b/src/OSSupport/Network.h
index 11c45b152..cb5badaeb 100644
--- a/src/OSSupport/Network.h
+++ b/src/OSSupport/Network.h
@@ -139,6 +139,9 @@ public:
/** Called when the TCP server created with Listen() accepts an incoming connection.
Provides the newly created Link that can be used for communication. */
virtual void OnAccepted(cTCPLink & a_Link) = 0;
+
+ /** Called when the socket fails to listen on the specified port. */
+ virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) = 0;
};
typedef SharedPtr<cListenCallbacks> cListenCallbacksPtr;