#include <ace/Asynch_IO.h>
class ACE_Service_Handler : public ACE_Handler {
public:
friend class ACE_Asynch_Acceptor<ACE_Service_Handler>;
ACE_Service_Handler (void);
virtual ~ACE_Service_Handler (void);
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 );
};
The implementation of ACE_Asynch_Transmit_File
and
ACE_Asynch_Accept
are only supported if ACE_HAS_WINSOCK2 is
defined or you are on WinNT 4.0 or higher
friend class ACE_Asynch_Acceptor<ACE_Service_Handler>;
ACE_Service_Handler (void);
virtual ~ACE_Service_Handler (void);
virtual void open (
ACE_HANDLE new_handle,
ACE_Message_Block &message_block
);
open
is called by ACE_Asynch_Acceptor to initialize a new
instance of ACE_Service_Handler that has been created after the a
new connection is accepted. The handle for the new connection is
passed along with an initial data that may have shown up.
virtual void addresses (
const ACE_INET_Addr &remote_address,
const ACE_INET_Addr &local_address
);