Iostream streambuf 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_streambuf : public basic_socket< Protocol, StreamSocketService >
Name |
Description |
---|---|
Socket option to permit sending of broadcast messages. |
|
IO control command to get the amount of data that can be read without blocking. |
|
Socket option to enable socket-level debugging. |
|
Socket option to prevent routing, use local interfaces only. |
|
The duration type. |
|
(Deprecated: Use duration.) The duration type. |
|
Socket option to report aborted connections on accept. |
|
The endpoint type. |
|
The type of the executor associated with the object. |
|
The underlying implementation type of I/O object. |
|
Socket option to send keep-alives. |
|
Socket option to specify whether the socket lingers on close if unsent data is present. |
|
A basic_socket is always the lowest layer. |
|
Bitmask type for flags that can be passed to send and receive operations. |
|
The native representation of a socket. |
|
The protocol type. |
|
Socket option for the receive buffer size of a socket. |
|
Socket option for the receive low watermark. |
|
Socket option to allow the socket to be bound to an address that is already in use. |
|
Socket option for the send buffer size of a socket. |
|
Socket option for the send low watermark. |
|
The type of the service that will be used to provide I/O operations. |
|
Different ways a socket may be shutdown. |
|
The time type. |
|
(Deprecated: Use time_point.) The time type. |
|
Wait types. |
Name |
Description |
---|---|
Assign an existing native socket to the socket. |
|
Start an asynchronous connect. |
|
Asynchronously wait for the socket to become ready to read, ready to write, or to have pending error conditions. |
|
Determine whether the socket is at the out-of-band data mark. |
|
Determine the number of bytes available for reading. |
|
Construct a basic_socket_streambuf without establishing a connection. |
|
Bind the socket to the given local endpoint. |
|
Cancel all asynchronous operations associated with the socket. |
|
Close the connection. Close the socket. |
|
Establish a connection. Connect the socket to the specified endpoint. |
|
Set the stream buffer's expiry time relative to now. |
|
(Deprecated: Use expiry().) Get the stream buffer's expiry time as an absolute time. Set the stream buffer's expiry time as an absolute time. Set the stream buffer's expiry time relative to now. |
|
(Deprecated: Use expiry().) Get the stream buffer's expiry time relative to now. (Deprecated: Use expires_after().) Set the stream buffer's expiry time relative to now. |
|
Get the stream buffer's expiry time as an absolute time. |
|
Get the executor associated with the object. |
|
(Deprecated: Use get_executor().) Get the io_service associated with the object. |
|
Get an option from the socket. |
|
Perform an IO control command on the socket. |
|
Determine whether the socket is open. |
|
Get the local endpoint of the socket. |
|
Get a reference to the lowest layer. Get a const reference to the lowest layer. |
|
Get the native socket representation. |
|
Gets the non-blocking mode of the native socket implementation. Sets the non-blocking mode of the native socket implementation. |
|
Gets the non-blocking mode of the socket. Sets the non-blocking mode of the socket. |
|
Open the socket using the specified protocol. |
|
Get the last error associated with the stream buffer. |
|
Get the remote endpoint of the socket. |
|
Set an option on the socket. |
|
Disable sends or receives on the socket. |
|
Wait for the socket to become ready to read, ready to write, or to have pending error conditions. |
|
Destructor flushes buffered data. |
Name |
Description |
---|---|
Get the last error associated with the stream buffer. |
|
Get the underlying implementation of the I/O object. |
|
Get the service associated with the I/O object. |
|
Name |
Description |
---|---|
The maximum length of the queue of pending incoming connections. |
|
Specify that the data should not be subject to routing. |
|
Specifies that the data marks the end of a record. |
|
Process out-of-band data. |
|
Peek at incoming data without removing it from the input queue. |
Name |
Description |
---|---|
Header: asio/basic_socket_streambuf.hpp
Convenience header: asio.hpp