SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ServerEndpoint Class Referenceabstract

#include <ServerEndpoint.h>

Inheritance diagram for ServerEndpoint:
Inheritance graph
Collaboration diagram for ServerEndpoint:
Collaboration graph

Public Member Functions

 ServerEndpoint (const ACE_INET_Addr &local_addr)
 
 ~ServerEndpoint ()
 
int open (void *p=nullptr) override
 
void set_downstream (EventProcessor *ds)
 
- Public Member Functions inherited from EventProcessor
int open (void *args=nullptr)
 
int handle_timeout (const ACE_Time_Value &current_time, const void *act)
 
virtual bool per_thread_setup ()
 

Protected Member Functions

void dispatch (SEGSEvent *) override
 
CRUDLinkcreateLinkInstance ()
 
CRUDLinkgetClientLink (const ACE_INET_Addr &from_addr)
 
virtual CRUDLinkcreateLink (EventProcessor *down)=0
 

Protected Attributes

hmAddrProto client_links
 
ACE_Reactor_Notification_Strategy m_notifier
 
ACE_SOCK_Dgram endpoint_
 
ACE_Thread_Mutex m_send_sema
 
EventProcessorm_downstream
 All created links will have this as their downstream target. More...
 

Constructor & Destructor Documentation

ServerEndpoint::ServerEndpoint ( const ACE_INET_Addr &  local_addr)
inline

Member Function Documentation

virtual CRUDLink* ServerEndpoint::createLink ( EventProcessor down)
protectedpure virtual

Implemented in MapLinkEndpoint.

Here is the caller graph for this function:

void ServerEndpoint::dispatch ( SEGSEvent )
inlineoverrideprotectedvirtual

Implements EventProcessor.

void ServerEndpoint::set_downstream ( EventProcessor ds)
inline

Here is the caller graph for this function:

Member Data Documentation

hmAddrProto ServerEndpoint::client_links
protected
ACE_SOCK_Dgram ServerEndpoint::endpoint_
protected
EventProcessor* ServerEndpoint::m_downstream
protected

All created links will have this as their downstream target.

ACE_Reactor_Notification_Strategy ServerEndpoint::m_notifier
protected
ACE_Thread_Mutex ServerEndpoint::m_send_sema
protected

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