TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldSocketThread Class Reference

Public Member Functions

void SocketAdded (std::shared_ptr< WorldSocket > sock) override
 
void SocketRemoved (std::shared_ptr< WorldSocket > sock) override
 
- Public Member Functions inherited from NetworkThread< WorldSocket >
 NetworkThread ()
 
virtual ~NetworkThread ()
 
void Stop ()
 
bool Start ()
 
void Wait ()
 
int32 GetConnectionCount () const
 
virtual void AddSocket (std::shared_ptr< WorldSocket > sock)
 
tcp::socket * GetSocketForAccept ()
 

Additional Inherited Members

- Protected Member Functions inherited from NetworkThread< WorldSocket >
void AddNewSockets ()
 
void Run ()
 
void Update ()
 

Member Function Documentation

void WorldSocketThread::SocketAdded ( std::shared_ptr< WorldSocket sock)
inlineoverridevirtual

Reimplemented from NetworkThread< WorldSocket >.

36  {
37  sScriptMgr->OnSocketOpen(sock);
38  }
#define sScriptMgr
Definition: ScriptMgr.h:837
void WorldSocketThread::SocketRemoved ( std::shared_ptr< WorldSocket sock)
inlineoverridevirtual

Reimplemented from NetworkThread< WorldSocket >.

41  {
42  sScriptMgr->OnSocketClose(sock);
43  }
#define sScriptMgr
Definition: ScriptMgr.h:837

The documentation for this class was generated from the following file: