AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldSocketThread Class Reference
Inheritance diagram for WorldSocketThread:
NetworkThread< WorldSocket >

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 >
virtual void SocketAdded (std::shared_ptr< WorldSocket >)
 
virtual void SocketRemoved (std::shared_ptr< WorldSocket >)
 
void AddNewSockets ()
 
void Run ()
 
void Update ()
 

Detailed Description

Member Function Documentation

◆ SocketAdded()

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

Reimplemented from NetworkThread< WorldSocket >.

29 {
30 sock->SetSendBufferSize(sWorldSocketMgr.GetApplicationSendBufferSize());
31 sScriptMgr->OnSocketOpen(sock);
32 }
#define sScriptMgr
Definition: ScriptMgr.h:2690
#define sWorldSocketMgr
Definition: WorldSocketMgr.h:64

References sScriptMgr, and sWorldSocketMgr.

◆ SocketRemoved()

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

Reimplemented from NetworkThread< WorldSocket >.

35 {
36 sScriptMgr->OnSocketClose(sock);
37 }

References sScriptMgr.