Iostream streambuf for a socket.
template< typename Protocol, typename Clock = chrono::steady_clock, typename WaitTraits = wait_traits<Clock>> class basic_socket_streambuf : basic_socket< Protocol >
Name |
Description |
---|---|
The clock type. |
|
The duration type. |
|
(Deprecated: Use duration.) The duration type. |
|
The endpoint type. |
|
The protocol type. |
|
The time type. |
|
(Deprecated: Use time_point.) The time type. |
Name |
Description |
---|---|
Construct a basic_socket_streambuf without establishing a connection. Construct a basic_socket_streambuf from the supplied socket. Move-construct a basic_socket_streambuf from another. |
|
Close the connection. |
|
Establish a connection. |
|
Get the last error associated with the stream buffer. |
|
Set the stream buffer's expiry time relative to now. |
|
Set the stream buffer's expiry time as an absolute time. |
|
Get the stream buffer's expiry time as an absolute time. |
|
Move-assign a basic_socket_streambuf from another. |
|
Get a reference to the underlying socket. |
|
Destructor flushes buffered data. |