| Home | Libraries | People | FAQ | More

#### ip::tcp::iostream

The TCP iostream type.

    typedef basic_socket_iostream< tcp > iostream;

###### Types

Name | Description
--- | ---
duration_type | The duration type.
endpoint_type | The endpoint type.
time_type | The time type.

###### Member Functions

Name | Description
--- | ---
basic_socket_iostream | Construct a basic_socket_iostream without establishing a connection. Establish a connection to an endpoint corresponding to a resolver query.
close | Close the connection.
connect | Establish a connection to an endpoint corresponding to a resolver query.
error | Get the last error associated with the stream.
expires_at | Get the stream's expiry time as an absolute time. Set the stream's expiry time as an absolute time.
expires_from_now | Get the timer's expiry time relative to now. Set the stream's expiry time relative to now.
rdbuf | Return a pointer to the underlying streambuf.

###### Requirements

Header: `boost/asio/ip/tcp.hpp`

Convenience header: `boost/asio.hpp`