summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Network.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-30 21:24:02 +0100
committerMattes D <github@xoft.cz>2015-02-04 08:40:52 +0100
commit014b96adb33fa902072d9f35661bc4f5e7c323e8 (patch)
tree46dcb57a65829d6364cbabec7add4021b9008ee6 /src/OSSupport/Network.h
parentcNetwork: Exported lookup functions to Lua API. (diff)
downloadcuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar
cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.gz
cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.bz2
cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.lz
cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.xz
cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.zst
cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.zip
Diffstat (limited to '')
-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 cdf6ba0e9..e883dfb29 100644
--- a/src/OSSupport/Network.h
+++ b/src/OSSupport/Network.h
@@ -90,6 +90,9 @@ public:
Sends the RST packet, queued outgoing and incoming data is lost. */
virtual void Close(void) = 0;
+ /** Returns the callbacks that are used. */
+ cCallbacksPtr GetCallbacks(void) const { return m_Callbacks; }
+
protected:
/** Callbacks to be used for the various situations. */
cCallbacksPtr m_Callbacks;