[9750] Add structure of SMSG_REDIRECT_CLIENT (0x50D).

Thanks to TOM_RUS for help with research.
This commit is contained in:
XTZGZoReX 2010-04-15 09:11:18 +02:00
parent 5d84dbb492
commit ef979daddc
11 changed files with 51 additions and 11 deletions

View file

@ -29,6 +29,8 @@
#include <ace/Singleton.h>
#include <ace/Thread_Mutex.h>
#include <string>
class WorldSocket;
class ReactorRunnable;
class ACE_Event_Handler;
@ -41,7 +43,7 @@ public:
friend class ACE_Singleton<WorldSocketMgr,ACE_Thread_Mutex>;
/// Start network, listen at address:port .
int StartNetwork (ACE_UINT16 port, const char* address);
int StartNetwork (ACE_UINT16 port, std::string& address);
/// Stops all network threads, It will wait for all running threads .
void StopNetwork ();
@ -49,6 +51,9 @@ public:
/// Wait untill all network threads have "joined" .
void Wait ();
std::string& GetBindAddress() { return m_addr; }
ACE_UINT16 GetBindPort() { return m_port; }
/// Make this class singleton .
static WorldSocketMgr* Instance ();
@ -68,6 +73,9 @@ private:
int m_SockOutUBuff;
bool m_UseNoDelay;
std::string m_addr;
ACE_UINT16 m_port;
ACE_Event_Handler* m_Acceptor;
};