Iostream interface for a socket.
template< typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>, typename Time = boost::posix_time::ptime, typename TimeTraits = asio::time_traits<Time>, typename TimerService = deadline_timer_service<Time, TimeTraits>> class basic_socket_iostream
Name |
Description |
---|---|
The duration type. |
|
(Deprecated: Use duration.) The duration type. |
|
The endpoint type. |
|
The time type. |
|
(Deprecated: Use time_point.) The time type. |
Name |
Description |
---|---|
Construct a basic_socket_iostream without establishing a connection. Establish a connection to an endpoint corresponding to a resolver query. |
|
Close the connection. |
|
Establish a connection to an endpoint corresponding to a resolver query. |
|
Get the last error associated with the stream. |
|
Set the stream's expiry time relative to now. |
|
(Deprecated: Use expiry().) Get the stream's expiry time as an absolute time. Set the stream's expiry time as an absolute time. |
|
(Deprecated: Use expiry().) Get the stream's expiry time relative to now. (Deprecated: Use expires_after().) Set the stream's expiry time relative to now. |
|
Get the stream's expiry time as an absolute time. |
|
Return a pointer to the underlying streambuf. |
Header: asio/basic_socket_iostream.hpp
Convenience header: asio.hpp