asio 0.3.7 Home | Reference | Tutorial | Examples | Design
Reference Class Hierarchy | Class Index | Member Index

Socket_Option Class Reference

Inherited by Boolean_Socket_Option, Integer_Socket_Option, IP_MReq_Socket_Option, IP_Network_Interface_Socket_Option, and Linger_Socket_Option.

Inheritance diagram for Socket_Option:

Inheritance graph
List of all members.

Detailed Description

Socket_Option concept.

Defines the interface that must be implemented by an object passed as the option parameter to:

Implemented By:
asio::socket_base::broadcast
asio::socket_base::do_not_route
asio::socket_base::keep_alive
asio::socket_base::linger
asio::socket_base::send_buffer_size
asio::socket_base::send_low_watermark
asio::socket_base::receive_buffer_size
asio::socket_base::receive_low_watermark
asio::socket_base::reuse_address
asio::ip::tcp::no_delay
asio::ip::multicast::join_group
asio::ip::multicast::leave_group
asio::ip::multicast::outbound_interface
asio::ip::multicast::hops
asio::ip::multicast::enable_loopback


Public Member Functions

template<typename Protocol>
int level (const Protocol &protocol) const
 Get the level of the socket option.
template<typename Protocol>
int name (const Protocol &protocol) const
 Get the name of the socket option.
template<typename Protocol>
implementation_defined data (const Protocol &protocol)
 Get a pointer to the socket option data.
template<typename Protocol>
implementation_defined data (const Protocol &protocol) const
 Get a pointer to the socket option data.
template<typename Protocol>
std::size_t size (const Protocol &protocol) const
 Get the size of the socket option data in bytes.


Member Function Documentation

template<typename Protocol>
int Socket_Option::level ( const Protocol protocol  )  const

Get the level of the socket option.

template<typename Protocol>
int Socket_Option::name ( const Protocol protocol  )  const

Get the name of the socket option.

template<typename Protocol>
implementation_defined Socket_Option::data ( const Protocol protocol  ) 

Get a pointer to the socket option data.

template<typename Protocol>
implementation_defined Socket_Option::data ( const Protocol protocol  )  const

Get a pointer to the socket option data.

template<typename Protocol>
std::size_t Socket_Option::size ( const Protocol protocol  )  const

Get the size of the socket option data in bytes.

asio 0.3.7 Home | Reference | Tutorial | Examples | Design