summaryrefslogtreecommitdiffstats
path: root/source/ListenThread.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-05 10:53:29 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-05 10:53:29 +0100
commit9d2c841843bfe91f8479fdc06b5091f666099028 (patch)
tree5c4e62df8406f865ac2375caca338c10bfccceee /source/ListenThread.h
parentMoved client socket accepting into a separate thread object, cListenThread (diff)
downloadcuberite-9d2c841843bfe91f8479fdc06b5091f666099028.tar
cuberite-9d2c841843bfe91f8479fdc06b5091f666099028.tar.gz
cuberite-9d2c841843bfe91f8479fdc06b5091f666099028.tar.bz2
cuberite-9d2c841843bfe91f8479fdc06b5091f666099028.tar.lz
cuberite-9d2c841843bfe91f8479fdc06b5091f666099028.tar.xz
cuberite-9d2c841843bfe91f8479fdc06b5091f666099028.tar.zst
cuberite-9d2c841843bfe91f8479fdc06b5091f666099028.zip
Diffstat (limited to '')
-rw-r--r--source/ListenThread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/ListenThread.h b/source/ListenThread.h
index 90523ea4f..ab2c97b9d 100644
--- a/source/ListenThread.h
+++ b/source/ListenThread.h
@@ -37,7 +37,7 @@ public:
virtual void OnConnectionAccepted(cSocket & a_Socket) = 0;
} ;
- cListenThread(cCallback & a_Callback);
+ cListenThread(cCallback & a_Callback, cSocket::eFamily a_Family);
~cListenThread();
/// Creates all the sockets, returns trus if successful, false if not.
@@ -56,6 +56,9 @@ protected:
/// The callback which to notify of incoming connections
cCallback & m_Callback;
+ /// Socket address family to use
+ cSocket::eFamily m_Family;
+
/// Sockets that are being monitored
cSockets m_Sockets;