ACE_Asynch_Accept_Impl(3)

ACE_Asynch_Accept_Impl3

Abstract base class for all the concrete implementation classes that provide different implementations for the ace_asynch_accept.

Usage

class ACE_Asynch_Accept_Impl : 
  public virtual ACE_Asynch_Operation_Impl
{
  public:
    virtual ~ACE_Asynch_Accept_Impl (void);
    virtual int accept (
        ACE_Message_Block &message_block,
        u_long bytes_to_read,
        ACE_HANDLE accept_handle,
        const void *act,
        int priority,
        int signal_number
        ) = 0;
  protected:
    ACE_Asynch_Accept_Impl (void);
};

Overview

This class contains asbtract base classes for all the concrete implementation classes for the various asynchronous operations that are used with the Praoctor.

Public members

virtual ~ACE_Asynch_Accept_Impl (void);
virtual int accept (
    ACE_Message_Block &message_block,
    u_long bytes_to_read,
    ACE_HANDLE accept_handle,
    const void *act,
    int priority,
    int signal_number
    ) = 0;

This starts off an asynchronous accept. The asynchronous accept call also allows any initial data to be returned to the handler. Upto bytes_to_read will be read and stored in the message_block. The accept_handle will be used for the accept call. If (accept_handle == INVALID_HANDLE), a new handle will be created.

message_block must be specified. This is because the address of the new connection is placed at the end of this buffer.

Protected members

ACE_Asynch_Accept_Impl (void);

Do-nothing constructor.

Library

ace