---
name: "ACE_Asynch_Operation"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Asynch_Operation"
---

# ACE\_Asynch\_Operation(3)

This is an interface base class for all asynch operations. The resposiblility of this class is to forward all methods to its delegation/implementation class, e.g., ACE\_WIN32\_Asynch\_Operation or ACE\_POSIX\_Asynch\_Operation.

## NAME

ACE\_Asynch\_Operation -

This is an interface base class for all asynch operations. The resposiblility of this class is to forward all methods to its delegation/implementation class, e.g., ACE\_WIN32\_Asynch\_Operation or ACE\_POSIX\_Asynch\_Operation.

## SYNOPSIS

```
class ACE_Asynch_Operation
{
  public:
    int open (
        ACE_Handler &handler,
        ACE_HANDLE handle,
        const void *completion_key,
        ACE_Proactor *proactor
        );
    int cancel (void);
    ACE_Proactor* proactor (void) const;
    virtual ~ACE_Asynch_Operation (void);
  protected:
    ACE_Asynch_Operation (void);
    ACE_Asynch_Operation_Impl *implementation (void) const;
    void implementation (ACE_Asynch_Operation_Impl *implementation);
    ACE_Proactor *get_proactor (
        ACE_Proactor *user_proactor,
        ACE_Handler &handler
        ) const;
    ACE_Asynch_Operation_Impl *implementation_;
};
```

## DESCRIPTION

This works on Win32 (#if defined (ACE\_WIN32) && !defined (ACE\_HAS\_WINCE)) platforms and on POSIX4 platforms with aio\_\* routines (#if defined (ACE\_HAS\_AIO\_CALLS))

On Win32 platforms, 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.

## Access methods.

```
ACE_Proactor* proactor (void) const;
```

Return the underlying proactor.

```
virtual ~ACE_Asynch_Operation (void);
```

Destructor.

## AUTHOR

Irfan Pyarali irfan@cs.wustl.edu, Tim Harrison harrison@cs.wustl.edu and Alexander Babu Arulanthu alex@cs.wustl.edu

## LIBRARY

ace
