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

#include <smartSendServerPattern.hh>

Inheritance diagram for SmartACE::SendServerServiceHandler:
SmartACE::ServiceHandler SmartACE::SmartSendClientInterface

Public Member Functions

 SendServerServiceHandler (ACE_Reactor *reactor=ACE_Reactor::instance())
 Default constructor and destructor. More...
 
virtual ~SendServerServiceHandler ()
 
virtual int open (void *handler=0)
 Initialization to create and activate an instance of this ACE_Svc_Handler class. More...
 
Smart::StatusCode acknowledgmentConnect (int cid, int status)
 
Smart::StatusCode serverInitiatedDisconnect (int cid)
 
Smart::StatusCode acknowledgmentDisconnect ()
 
- Public Member Functions inherited from SmartACE::ServiceHandler
 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...
 
- Public Member Functions inherited from SmartACE::SmartSendClientInterface
virtual ~SmartSendClientInterface ()
 

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

◆ SendServerServiceHandler()

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

Default constructor and destructor.

◆ ~SendServerServiceHandler()

virtual SmartACE::SendServerServiceHandler::~SendServerServiceHandler ( )
virtual

Member Function Documentation

◆ acknowledgmentConnect()

Smart::StatusCode SmartACE::SendServerServiceHandler::acknowledgmentConnect ( int  cid,
int  status 
)
virtual

◆ acknowledgmentDisconnect()

Smart::StatusCode SmartACE::SendServerServiceHandler::acknowledgmentDisconnect ( )
virtual

◆ open()

virtual int SmartACE::SendServerServiceHandler::open ( void *  handler = 0)
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.

Parameters
handlerA pointer to the parent controlling class (in this case ACE_Connector or ACE_Acceptor)
Returns
error-code
  • A "-1" determines an error
  • A "0" is returned if all goes right

Reimplemented from SmartACE::ServiceHandler.

◆ serverInitiatedDisconnect()

Smart::StatusCode SmartACE::SendServerServiceHandler::serverInitiatedDisconnect ( int  cid)
virtual

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