$search

asio::posix::descriptor_base Class Reference

#include <descriptor_base.hpp>

Inheritance diagram for asio::posix::descriptor_base:
Inheritance graph
[legend]

List of all members.

Public Types

typedef
asio::detail::io_control::bytes_readable 
bytes_readable
typedef
asio::detail::io_control::non_blocking_io 
non_blocking_io
 IO control command to set the blocking mode of the descriptor.

Protected Member Functions

 ~descriptor_base ()
 Protected destructor to prevent deletion through this type.

Detailed Description

The descriptor_base class is used as a base for the basic_stream_descriptor class template so that we have a common place to define the associated IO control commands.

Definition at line 34 of file descriptor_base.hpp.


Member Typedef Documentation

IO control command to get the amount of data that can be read without blocking. Implements the FIONREAD IO control command.

Example
 asio::posix::stream_descriptor descriptor(io_service); 
 ...
 asio::descriptor_base::bytes_readable command(true);
 descriptor.io_control(command);
 std::size_t bytes_readable = command.get();
Concepts:
IoControlCommand.

Definition at line 78 of file descriptor_base.hpp.

IO control command to set the blocking mode of the descriptor.

Implements the FIONBIO IO control command.

Example
 asio::posix::stream_descriptor descriptor(io_service); 
 ...
 asio::descriptor_base::non_blocking_io command(true);
 descriptor.io_control(command);
Concepts:
IoControlCommand.

Definition at line 55 of file descriptor_base.hpp.


Constructor & Destructor Documentation

asio::posix::descriptor_base::~descriptor_base (  )  [inline, protected]

Protected destructor to prevent deletion through this type.

Definition at line 83 of file descriptor_base.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Mar 1 14:41:50 2013