SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
Classes | Functions
Projects/CoX/Common/AuthProtocol

Classes

struct  AuthLinkState
 

Functions

static EventTypeAuthEventFactory::EventForType (eAuthPacketType type)
 
static void AuthEventFactory::Destroy (EventType *what)
 
 AuthLink::AuthLink ()
 
 AuthLink::AuthLink (EventProcessor *target, AuthLinkType link_type=AuthLinkType::Server)
 
 AuthLink::~AuthLink () override
 
void AuthLink::init_crypto (int vers, uint32_t seed)
 
eLinkStage AuthLink::get_link_stage () const
 
void AuthLink::set_link_stage (AuthLink::eLinkStage stage)
 
int AuthLink::open (void *=nullptr) override
 Called when we start to service a new connection, here we tell reactor to wake us when queue() is not empty. More...
 
int AuthLink::handle_input (ACE_HANDLE) override
 Called when new bytes are available. More...
 
int AuthLink::handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE) override
 Called from ACEReactor when there are events in our queue() More...
 
int AuthLink::handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask) override
 Called when this handler is removed from the ACE_Reactor. More...
 
void AuthPacketCodec::SetDesKey (uint64_t key)
 
 AuthPacketCodec::AuthPacketCodec ()
 
void AuthPacketCodec::XorCodeBuf (unsigned char *buffer, size_t length)
 
void AuthPacketCodec::XorDecodeBuf (unsigned char *buffer, size_t length)
 
void AuthPacketCodec::DesCode (unsigned char *buffer, size_t size) const
 
void AuthPacketCodec::SetXorKey (int key)
 
void AuthPacketCodec::Code (unsigned char *buffer, size_t size)
 
void AuthPacketCodec::Decode (unsigned char *buffer, size_t size)
 
void AuthPacketCodec::DesDecode (unsigned char *buffer, size_t size) const
 

Detailed Description

Function Documentation

◆ AuthLink() [1/2]

AuthLink::AuthLink ( )

◆ AuthLink() [2/2]

AuthLink::AuthLink ( EventProcessor target,
AuthLinkType  link_type = AuthLinkType::Server 
)

◆ AuthPacketCodec()

AuthPacketCodec::AuthPacketCodec ( )
Here is the call graph for this function:

◆ Code()

void AuthPacketCodec::Code ( unsigned char *  buffer,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Decode()

void AuthPacketCodec::Decode ( unsigned char *  buffer,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DesCode()

void AuthPacketCodec::DesCode ( unsigned char *  buffer,
size_t  size 
) const
Here is the caller graph for this function:

◆ DesDecode()

void AuthPacketCodec::DesDecode ( unsigned char *  buffer,
size_t  size 
) const
Here is the caller graph for this function:

◆ Destroy()

void AuthEventFactory::Destroy ( EventType what)
static
Here is the call graph for this function:

◆ EventForType()

AuthLinkEvent * AuthEventFactory::EventForType ( eAuthPacketType  type)
static

◆ get_link_stage()

AuthLink::eLinkStage AuthLink::get_link_stage ( ) const
Here is the caller graph for this function:

◆ handle_close()

int AuthLink::handle_close ( ACE_HANDLE  handle,
ACE_Reactor_Mask  close_mask 
)
override

Called when this handler is removed from the ACE_Reactor.

Here is the call graph for this function:

◆ handle_input()

int AuthLink::handle_input ( ACE_HANDLE  )
override

Called when new bytes are available.

Returns
-1 on error
Here is the call graph for this function:

◆ handle_output()

int AuthLink::handle_output ( ACE_HANDLE  fd = ACE_INVALID_HANDLE)
override

Called from ACEReactor when there are events in our queue()

Here is the call graph for this function:

◆ init_crypto()

void AuthLink::init_crypto ( int  vers,
uint32_t  seed 
)
Here is the caller graph for this function:

◆ open()

int AuthLink::open ( void *  p = nullptr)
override

Called when we start to service a new connection, here we tell reactor to wake us when queue() is not empty.

Returns
-1 if there was a problem opening a new link, getting remote's address or registering client handler
Here is the call graph for this function:

◆ set_link_stage()

void AuthLink::set_link_stage ( AuthLink::eLinkStage  stage)
Here is the caller graph for this function:

◆ SetDesKey()

void AuthPacketCodec::SetDesKey ( uint64_t  key)
Here is the caller graph for this function:

◆ SetXorKey()

void AuthPacketCodec::SetXorKey ( int  key)
Here is the caller graph for this function:

◆ XorCodeBuf()

void AuthPacketCodec::XorCodeBuf ( unsigned char *  buffer,
size_t  length 
)
Here is the caller graph for this function:

◆ XorDecodeBuf()

void AuthPacketCodec::XorDecodeBuf ( unsigned char *  buffer,
size_t  length 
)
Here is the caller graph for this function:

◆ ~AuthLink()

AuthLink::~AuthLink ( )
override