TrinityCore
Loading...
Searching...
No Matches
AuthSocketMgr Class Reference

#include <AuthSocketMgr.h>

+ Inheritance diagram for AuthSocketMgr:

Public Member Functions

bool StartNetwork (Trinity::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount=1) override
 
- Public Member Functions inherited from Trinity::Net::SocketMgr< AuthSession >
 SocketMgr (SocketMgr const &)=delete
 
 SocketMgr (SocketMgr &&)=delete
 
SocketMgroperator= (SocketMgr const &)=delete
 
SocketMgroperator= (SocketMgr &&)=delete
 
virtual ~SocketMgr ()
 
virtual void StopNetwork ()
 
void Wait ()
 
virtual void OnSocketOpen (IoContextTcpSocket &&sock, uint32 threadIndex)
 
int32 GetNetworkThreadCount () const
 
uint32 SelectThreadWithMinConnections () const
 
std::pair< IoContextTcpSocket *, uint32GetSocketForAccept ()
 

Static Public Member Functions

static AuthSocketMgrInstance ()
 

Protected Member Functions

Trinity::Net::NetworkThread< AuthSession > * CreateThreads () const override
 
- Protected Member Functions inherited from Trinity::Net::SocketMgr< AuthSession >
 SocketMgr ()
 

Private Types

typedef SocketMgr< AuthSessionBaseSocketMgr
 

Additional Inherited Members

- Protected Attributes inherited from Trinity::Net::SocketMgr< AuthSession >
std::unique_ptr< AsyncAcceptor_acceptor
 
std::unique_ptr< NetworkThread< AuthSession >[]> _threads
 
int32 _threadCount
 

Detailed Description

Definition at line 24 of file AuthSocketMgr.h.

Member Typedef Documentation

◆ BaseSocketMgr

Definition at line 26 of file AuthSocketMgr.h.

Member Function Documentation

◆ CreateThreads()

Trinity::Net::NetworkThread< AuthSession > * AuthSocketMgr::CreateThreads ( ) const
inlineoverrideprotectedvirtual

Implements Trinity::Net::SocketMgr< AuthSession >.

Definition at line 48 of file AuthSocketMgr.h.

◆ Instance()

static AuthSocketMgr & AuthSocketMgr::Instance ( )
inlinestatic

Definition at line 29 of file AuthSocketMgr.h.

◆ StartNetwork()

bool AuthSocketMgr::StartNetwork ( Trinity::Asio::IoContext ioContext,
std::string const &  bindIp,
uint16  port,
int  threadCount = 1 
)
inlineoverridevirtual

Reimplemented from Trinity::Net::SocketMgr< AuthSession >.

Definition at line 35 of file AuthSocketMgr.h.

+ Here is the call graph for this function:

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