asio C++ library

PrevUpHomeNext

windows::overlapped_ptr

Wraps a handler to create an OVERLAPPED object for use with overlapped I/O.

class overlapped_ptr :
  noncopyable
Member Functions

Name

Description

complete

Post completion notification for overlapped operation. Releases ownership.

get

Get the contained OVERLAPPED object.

overlapped_ptr [constructor]

Construct an empty overlapped_ptr.

Construct an overlapped_ptr to contain the specified handler.

release

Release ownership of the OVERLAPPED object.

reset

Reset to empty.

Reset to contain the specified handler, freeing any current OVERLAPPED object.

~overlapped_ptr [destructor]

Destructor automatically frees the OVERLAPPED object unless released.

A special-purpose smart pointer used to wrap an application handler so that it can be passed as the LPOVERLAPPED argument to overlapped I/O functions.

Thread Safety

Distinct objects: Safe.

Shared objects: Unsafe.

Requirements

Header: asio/windows/overlapped_ptr.hpp

Convenience header: asio.hpp


PrevUpHomeNext