diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-08 11:02:46 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-08 11:02:46 +0100 |
commit | c82c636d8c9ac24c1e73740c35b3a93525783a3d (patch) | |
tree | 45c6bd08dc95ac8509834c35096ced5732db3d7a /source/cServer.h | |
parent | cSocket: final localhost fix - made it a function (forgotten file) (diff) | |
download | cuberite-c82c636d8c9ac24c1e73740c35b3a93525783a3d.tar cuberite-c82c636d8c9ac24c1e73740c35b3a93525783a3d.tar.gz cuberite-c82c636d8c9ac24c1e73740c35b3a93525783a3d.tar.bz2 cuberite-c82c636d8c9ac24c1e73740c35b3a93525783a3d.tar.lz cuberite-c82c636d8c9ac24c1e73740c35b3a93525783a3d.tar.xz cuberite-c82c636d8c9ac24c1e73740c35b3a93525783a3d.tar.zst cuberite-c82c636d8c9ac24c1e73740c35b3a93525783a3d.zip |
Diffstat (limited to 'source/cServer.h')
-rw-r--r-- | source/cServer.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/source/cServer.h b/source/cServer.h index db60a2742..b56047487 100644 --- a/source/cServer.h +++ b/source/cServer.h @@ -1,9 +1,30 @@ +// cServer.h
+
+// Interfaces to the cServer object representing the network server
+
+
+
+
+
#pragma once
+#ifndef CSERVER_H_INCLUDED
+#define CSERVER_H_INCLUDED
+
+#include "cSocketThreads.h"
+
+
+
+
class cPlayer;
class cClientHandle;
class cPacket;
+
+
+
+
+
class cServer //tolua_export
{ //tolua_export
public: //tolua_export
@@ -34,13 +55,20 @@ public: //tolua_export static void ServerListenThread( void* a_Args );
const AString & GetServerID(void) const;
+
+ void ClientDestroying(const cClientHandle * a_Client); // Called by cClientHandle::Destroy(); removes the client from m_SocketThreads
+
private:
+
friend class cRoot; // so cRoot can create and destroy cServer
+
cServer();
~cServer();
struct sServerState;
sServerState* m_pState;
+
+ cSocketThreads m_SocketThreads;
// Time since server was started
float m_Millisecondsf;
@@ -51,3 +79,13 @@ private: bool m_bRestarting;
}; //tolua_export
+
+
+
+
+
+#endif // CSERVER_H_INCLUDED
+
+
+
+
|