1 #ifndef __CLIENTMANAGER_H__ 2 #define __CLIENTMANAGER_H__ 4 #include <boost/unordered_map.hpp> 16 typedef shared_ptr<Client> ClientSharedPtr;
17 typedef unordered_map<u32, ClientSharedPtr> ClientMap;
18 typedef ClientMap::iterator MapIterator;
29 void CreateClient(
const shared_ptr<tcp::socket> &pSocket);
60 #endif // #ifndef __CLIENTMANAGER_H__ ~ClientManager()
Definition: ClientManager.h:23
void Poll()
Definition: ClientManager.cpp:13
unsigned int u32
Definition: TypeDefs.h:10
void BroadcastPacket(PacketBase *pPacket)
Definition: ClientManager.cpp:62
weak_ptr< Client > ClientPtr
Definition: WeakPtrDefine.h:22
ClientPtr GetFromCustomerId(u32 CustomerId)
Definition: ClientManager.cpp:52
Definition: ClientManager.h:11
Definition: PacketBase.h:9
static ClientManager & GetInstance()
Definition: ClientManager.h:51
void CreateClient(const shared_ptr< tcp::socket > &pSocket)
Definition: ClientManager.cpp:30
ClientPtr Get(u32 Uuid)
Definition: ClientManager.cpp:44