AceSmartSoft API Documentation
Public Member Functions | List of all members
SmartACE::EventClientServiceHandler Class Reference

#include <smartEventClientPattern.hh>

Inheritance diagram for SmartACE::EventClientServiceHandler:
SmartACE::ServiceHandler SmartEventServerInterface

Public Member Functions

 EventClientServiceHandler (ACE_Reactor *reactor=ACE_Reactor::instance())
 
virtual ~EventClientServiceHandler ()
 
void setCallbackFkts (void *, void(*)(void *, const SmartACE::SmartMessageBlock *, size_t), void(*)(void *, int, int), void(*)(void *, int), void(*)(void *), void(*)(void *, const size_t &))
 
Smart::StatusCode activate (int mode, size_t aid, const SmartACE::SmartMessageBlock *parameter)
 
Smart::StatusCode deactivate (size_t aid)
 
Smart::StatusCode connect (int cid, const ACE_Utils::UUID &serviceID)
 
Smart::StatusCode discard ()
 
Smart::StatusCode disconnect ()
 
- Public Member Functions inherited from SmartACE::ServiceHandler
 ServiceHandler (ACE_Reactor *reactor=ACE_Reactor::instance())
 Default constructor and destructor. More...
 
virtual ~ServiceHandler ()
 
virtual int open (void *handler=0)
 Initialization to create and activate an instance of this ACE_Svc_Handler class. More...
 
virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 This is the main input-handler function that is called by the reactor to handle incoming data streams. More...
 
virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
 Hook handler method to handle closing connection. More...
 
virtual int send_command_message (ACE_CDR::Long commandId, const ACE_Message_Block *further_comands=NULL, const ACE_Message_Block *message=NULL)
 This method encapsulates the message sending behavior. More...
 
void trigger_shutdown ()
 Trigger the shutdown procedure to be executed by the reactor. More...
 
bool is_disconnected () const
 This method returns true if reactor has closed the connection (due to e.g. More...
 
- Public Member Functions inherited from SmartEventServerInterface
virtual ~SmartEventServerInterface ()
 

Additional Inherited Members

- Protected Types inherited from SmartACE::ServiceHandler
typedef ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH > super
 Definition for parent class. More...
 
- Protected Member Functions inherited from SmartACE::ServiceHandler
virtual int handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 This callback handler is indirectly triggered (using the reactor's notify mechanism) from the method trigger_shutdown() which can be used by external threads. More...
 
virtual void destroy (void)
 This class is overloaded from base class to change visibility (in order to prevent the destruction from external threads). More...
 
- Protected Attributes inherited from SmartACE::ServiceHandler
bool connectionClosedByUser
 This internal variable is used to distinguish whether a connection is closed actively by an external thread (using the method trigger_shutdown() ) or the connection is closed because the underlying socket is broken. More...
 
bool connectionResetByReactor
 This internal variable indicates that a connection was closed by reactor e.g. More...
 

Constructor & Destructor Documentation

◆ EventClientServiceHandler()

SmartACE::EventClientServiceHandler::EventClientServiceHandler ( ACE_Reactor *  reactor = ACE_Reactor::instance())

◆ ~EventClientServiceHandler()

virtual SmartACE::EventClientServiceHandler::~EventClientServiceHandler ( )
virtual

Member Function Documentation

◆ activate()

Smart::StatusCode SmartACE::EventClientServiceHandler::activate ( int  mode,
size_t  aid,
const SmartACE::SmartMessageBlock parameter 
)
virtual

◆ connect()

Smart::StatusCode SmartACE::EventClientServiceHandler::connect ( int  cid,
const ACE_Utils::UUID &  serviceID 
)
virtual

◆ deactivate()

Smart::StatusCode SmartACE::EventClientServiceHandler::deactivate ( size_t  aid)
virtual

◆ discard()

Smart::StatusCode SmartACE::EventClientServiceHandler::discard ( )
virtual

◆ disconnect()

Smart::StatusCode SmartACE::EventClientServiceHandler::disconnect ( )
virtual

◆ setCallbackFkts()

void SmartACE::EventClientServiceHandler::setCallbackFkts ( void *  ,
void(*)(void *, const SmartACE::SmartMessageBlock *, size_t)  ,
void(*)(void *, int, int)  ,
void(*)(void *, int)  ,
void(*)(void *)  ,
void(*)(void *, const size_t &)   
)

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