asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design

Reference | Class Hierarchy | Class Index | Member Index

# asio::basic_socket_iostream< Protocol, StreamSocketService > Class Template Reference

List of all members.

## Detailed Description

### template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>>
class asio::basic_socket_iostream< Protocol, StreamSocketService >

Iostream interface for a socket.

## Public Member Functions

| basic_socket_iostream ()
| Construct a basic_socket_iostream without establishing a connection.
template<typename T1, ... , typename TN>
| basic_socket_iostream (T1 t1,..., TN tn)
| Establish a connection to an endpoint corresponding to a resolver query.
template<typename T1, ... , typename TN>
void | connect (T1 t1,..., TN tn)
| Establish a connection to an endpoint corresponding to a resolver query.
void | close ()
| Close the connection.
basic_socket_streambuf< Protocol, StreamSocketService > * | rdbuf () const
| Return a pointer to the underlying streambuf.

## Constructor & Destructor Documentation

template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>>

asio::basic_socket_iostream< Protocol, StreamSocketService >::basic_socket_iostream | ( |  | ) |

Construct a basic_socket_iostream without establishing a connection.

template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>>
template<typename T1, ... , typename TN>

asio::basic_socket_iostream< Protocol, StreamSocketService >::basic_socket_iostream | ( | T1 | t1,
|  |  | ...,
|  | TN | tn |
| ) |  |  | `[explicit]`

Establish a connection to an endpoint corresponding to a resolver query.

This constructor automatically establishes a connection based on the supplied resolver query parameters. The arguments are used to construct a resolver query object.

## Member Function Documentation

template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>>
template<typename T1, ... , typename TN>

void asio::basic_socket_iostream< Protocol, StreamSocketService >::connect | ( | T1 | t1,
|  |  | ...,
|  | TN | tn |
| ) |  |  |

Establish a connection to an endpoint corresponding to a resolver query.

This function automatically establishes a connection based on the supplied resolver query parameters. The arguments are used to construct a resolver query object.

template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>>

void asio::basic_socket_iostream< Protocol, StreamSocketService >::close | ( |  | ) |

Close the connection.

template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>>

basic_socket_streambuf<Protocol, StreamSocketService>* asio::basic_socket_iostream< Protocol, StreamSocketService >::rdbuf | ( |  | ) | const

Return a pointer to the underlying streambuf.

asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design