AceSmartSoft API Documentation
|
#include <smartQueryServerPattern.hh>
Public Member Functions | |
QueryServerServiceHandler (ACE_Reactor *reactor=ACE_Reactor::instance()) | |
Default constructor and destructor. More... | |
virtual | ~QueryServerServiceHandler () |
virtual int | open (void *handler=0) |
Initialization to create and activate an instance of this ACE_Svc_Handler class. More... | |
Smart::StatusCode | answer (const SmartMessageBlock *any, size_t qid) |
Smart::StatusCode | acknowledgmentConnect (int cid, int status) |
Smart::StatusCode | serverInitiatedDisconnect (int cid) |
Smart::StatusCode | acknowledgmentDisconnect () |
![]() | |
ServiceHandler (ACE_Reactor *reactor=ACE_Reactor::instance()) | |
Default constructor and destructor. More... | |
virtual | ~ServiceHandler () |
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... | |
![]() | |
virtual | ~SmartQueryClientInterface () |
Additional Inherited Members | |
![]() | |
typedef ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH > | super |
Definition for parent class. More... | |
![]() | |
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... | |
![]() | |
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... | |
SmartACE::QueryServerServiceHandler::QueryServerServiceHandler | ( | ACE_Reactor * | reactor = ACE_Reactor::instance() | ) |
Default constructor and destructor.
|
virtual |
|
virtual |
Implements SmartACE::SmartQueryClientInterface.
|
virtual |
Implements SmartACE::SmartQueryClientInterface.
|
virtual |
Implements SmartACE::SmartQueryClientInterface.
|
virtual |
Initialization to create and activate an instance of this ACE_Svc_Handler class.
Here, memory allocation and ACE_Svc_Handler parameterization takes place. The default implementation just calls the same method from parent class.
handler | A pointer to the parent controlling class (in this case ACE_Connector or ACE_Acceptor) |
Reimplemented from SmartACE::ServiceHandler.
|
virtual |
Implements SmartACE::SmartQueryClientInterface.