ACE  6.3.3
Public Member Functions | Friends | List of all members
ACE_Service_Handler Class Reference

This base class defines the interface for the ACE_Asynch_Acceptor to call into when new connection are accepted. More...

#include <Asynch_IO.h>

Inheritance diagram for ACE_Service_Handler:
Inheritance graph
[legend]
Collaboration diagram for ACE_Service_Handler:
Collaboration graph
[legend]

Public Member Functions

 ACE_Service_Handler (void)
 A do nothing constructor. More...
 
virtual ~ACE_Service_Handler (void)
 Virtual destruction. More...
 
virtual void open (ACE_HANDLE new_handle, ACE_Message_Block &message_block)
 
virtual void addresses (const ACE_INET_Addr &remote_address, const ACE_INET_Addr &local_address)
 
virtual void act (const void *)
 Called by ACE_Asynch_Acceptor to pass the act. More...
 
- Public Member Functions inherited from ACE_Handler
 ACE_Handler (void)
 A do nothing constructor. More...
 
 ACE_Handler (ACE_Proactor *p)
 A do nothing constructor which allows proactor to be set to <p>. More...
 
virtual ~ACE_Handler (void)
 Virtual destruction. More...
 
virtual void handle_read_stream (const ACE_Asynch_Read_Stream::Result &result)
 
virtual void handle_write_dgram (const ACE_Asynch_Write_Dgram::Result &result)
 
virtual void handle_read_dgram (const ACE_Asynch_Read_Dgram::Result &result)
 
virtual void handle_write_stream (const ACE_Asynch_Write_Stream::Result &result)
 
virtual void handle_read_file (const ACE_Asynch_Read_File::Result &result)
 
virtual void handle_write_file (const ACE_Asynch_Write_File::Result &result)
 
virtual void handle_accept (const ACE_Asynch_Accept::Result &result)
 This method will be called when an asynchronous accept completes. More...
 
virtual void handle_connect (const ACE_Asynch_Connect::Result &result)
 This method will be called when an asynchronous connect completes. More...
 
virtual void handle_transmit_file (const ACE_Asynch_Transmit_File::Result &result)
 
virtual void handle_time_out (const ACE_Time_Value &tv, const void *act=0)
 
virtual void handle_wakeup (void)
 
ACE_Proactorproactor (void)
 Get the proactor associated with this handler. More...
 
void proactor (ACE_Proactor *p)
 Set the proactor. More...
 
virtual ACE_HANDLE handle (void) const
 
virtual void handle (ACE_HANDLE)
 Set the ACE_HANDLE value for this Handler. More...
 
Proxy_Ptrproxy (void)
 

Friends

class ACE_Asynch_Acceptor< ACE_Service_Handler >
 

Additional Inherited Members

- Public Types inherited from ACE_Handler
typedef ACE_Refcounted_Auto_Ptr< Proxy, ACE_SYNCH_MUTEXProxy_Ptr
 
- Protected Attributes inherited from ACE_Handler
ACE_Proactorproactor_
 The proactor associated with this handler. More...
 
ACE_HANDLE handle_
 The ACE_HANDLE in use with this handler. More...
 
ACE_Refcounted_Auto_Ptr< Proxy, ACE_SYNCH_MUTEXproxy_
 Refers to proxy for this handler. More...
 

Detailed Description

This base class defines the interface for the ACE_Asynch_Acceptor to call into when new connection are accepted.

Subclasses of this class will fill in appropriate methods to define application specific behavior.

Constructor & Destructor Documentation

ACE_Service_Handler::ACE_Service_Handler ( void  )

A do nothing constructor.

ACE_Service_Handler::~ACE_Service_Handler ( void  )
virtual

Virtual destruction.

Member Function Documentation

void ACE_Service_Handler::act ( const void *  )
virtual

Called by ACE_Asynch_Acceptor to pass the act.

void ACE_Service_Handler::addresses ( const ACE_INET_Addr remote_address,
const ACE_INET_Addr local_address 
)
virtual

Called by ACE_Asynch_Acceptor to pass the addresses of the new connections.

void ACE_Service_Handler::open ( ACE_HANDLE  new_handle,
ACE_Message_Block message_block 
)
virtual

{open} is called by ACE_Asynch_Acceptor to initialize a new instance of ACE_Service_Handler that has been created after the new connection is accepted. The handle for the new connection is passed along with the initial data that may have shown up.

Friends And Related Function Documentation

friend class ACE_Asynch_Acceptor< ACE_Service_Handler >
friend

The Acceptor is the factory and therefore should have special privileges.


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