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

#include <smartQueryClientPattern.hh>

Inheritance diagram for SmartACE::QueryClientServiceHandler:
SmartACE::ServiceHandler SmartACE::SmartQueryServerInterface

Public Member Functions

 QueryClientServiceHandler (ACE_Reactor *reactor=ACE_Reactor::instance())
 
virtual ~QueryClientServiceHandler ()
 
void setCallbackFkts (void *, void(*)(void *, const SmartACE::SmartMessageBlock *, size_t), void(*)(void *, int, int), void(*)(void *, int), void(*)(void *))
 
Smart::StatusCode request (const SmartACE::SmartMessageBlock *message, size_t qid)
 
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 SmartACE::SmartQueryServerInterface
virtual ~SmartQueryServerInterface ()
 

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

◆ QueryClientServiceHandler()

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

◆ ~QueryClientServiceHandler()

virtual SmartACE::QueryClientServiceHandler::~QueryClientServiceHandler ( )
virtual

Member Function Documentation

◆ connect()

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

◆ discard()

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

◆ disconnect()

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

◆ request()

Smart::StatusCode SmartACE::QueryClientServiceHandler::request ( const SmartACE::SmartMessageBlock message,
size_t  qid 
)
virtual

◆ setCallbackFkts()

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

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