|
typedef Protocol::endpoint | endpoint_type |
| The endpoint type. More...
|
|
typedef traits_helper::time_type | time_type |
|
typedef traits_helper::duration_type | duration_type |
|
typedef StreamSocketService::native_handle_type | native_type |
|
typedef StreamSocketService::native_handle_type | native_handle_type |
| The native representation of a socket. More...
|
|
typedef Protocol | protocol_type |
| The protocol type. More...
|
|
typedef Protocol::endpoint | endpoint_type |
| The endpoint type. More...
|
|
typedef basic_socket< Protocol, StreamSocketService > | lowest_layer_type |
| A basic_socket is always the lowest layer. More...
|
|
typedef StreamSocketService | service_type |
| The type of the service that will be used to provide I/O operations. More...
|
|
typedef service_type::implementation_type | implementation_type |
| The underlying implementation type of I/O object. More...
|
|
enum | shutdown_type { shutdown_receive = ASIO_OS_DEF(SHUT_RD),
shutdown_send = ASIO_OS_DEF(SHUT_WR),
shutdown_both = ASIO_OS_DEF(SHUT_RDWR)
} |
| Different ways a socket may be shutdown. More...
|
|
typedef int | message_flags |
| Bitmask type for flags that can be passed to send and receive operations. More...
|
|
typedef asio::detail::socket_option::boolean< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_BROADCAST)> | broadcast |
| Socket option to permit sending of broadcast messages. More...
|
|
typedef asio::detail::socket_option::boolean< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_DEBUG)> | debug |
| Socket option to enable socket-level debugging. More...
|
|
typedef asio::detail::socket_option::boolean< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_DONTROUTE)> | do_not_route |
| Socket option to prevent routing, use local interfaces only. More...
|
|
typedef asio::detail::socket_option::boolean< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_KEEPALIVE)> | keep_alive |
| Socket option to send keep-alives. More...
|
|
typedef asio::detail::socket_option::integer< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_SNDBUF)> | send_buffer_size |
| Socket option for the send buffer size of a socket. More...
|
|
typedef asio::detail::socket_option::integer< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_SNDLOWAT)> | send_low_watermark |
| Socket option for the send low watermark. More...
|
|
typedef asio::detail::socket_option::integer< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_RCVBUF)> | receive_buffer_size |
| Socket option for the receive buffer size of a socket. More...
|
|
typedef asio::detail::socket_option::integer< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_RCVLOWAT)> | receive_low_watermark |
| Socket option for the receive low watermark. More...
|
|
typedef asio::detail::socket_option::boolean< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_REUSEADDR)> | reuse_address |
|
typedef asio::detail::socket_option::linger< ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_LINGER)> | linger |
|
typedef asio::detail::socket_option::boolean< asio::detail::custom_socket_option_level, asio::detail::enable_connection_aborted_option > | enable_connection_aborted |
| Socket option to report aborted connections on accept. More...
|
|
typedef asio::detail::io_control::non_blocking_io | non_blocking_io |
|
typedef asio::detail::io_control::bytes_readable | bytes_readable |
|
|
| basic_socket_streambuf () |
| Construct a basic_socket_streambuf without establishing a connection. More...
|
|
virtual | ~basic_socket_streambuf () |
| Destructor flushes buffered data. More...
|
|
basic_socket_streambuf< Protocol, StreamSocketService, Time, TimeTraits, TimerService > * | connect (const endpoint_type &endpoint) |
| Establish a connection. More...
|
|
basic_socket_streambuf< Protocol, StreamSocketService, Time, TimeTraits, TimerService > * | close () |
| Close the connection. More...
|
|
const asio::error_code & | puberror () const |
| Get the last error associated with the stream buffer. More...
|
|
time_type | expires_at () const |
| Get the stream buffer's expiry time as an absolute time. More...
|
|
void | expires_at (const time_type &expiry_time) |
| Set the stream buffer's expiry time as an absolute time. More...
|
|
duration_type | expires_from_now () const |
| Get the stream buffer's expiry time relative to now. More...
|
|
void | expires_from_now (const duration_type &expiry_time) |
| Set the stream buffer's expiry time relative to now. More...
|
|
| basic_socket (asio::io_service &io_service) |
| Construct a basic_socket without opening it. More...
|
|
| basic_socket (asio::io_service &io_service, const protocol_type &protocol) |
| Construct and open a basic_socket. More...
|
|
| basic_socket (asio::io_service &io_service, const endpoint_type &endpoint) |
|
| basic_socket (asio::io_service &io_service, const protocol_type &protocol, const native_handle_type &native_socket) |
| Construct a basic_socket on an existing native socket. More...
|
|
lowest_layer_type & | lowest_layer () |
| Get a reference to the lowest layer. More...
|
|
const lowest_layer_type & | lowest_layer () const |
| Get a const reference to the lowest layer. More...
|
|
void | open (const protocol_type &protocol=protocol_type()) |
| Open the socket using the specified protocol. More...
|
|
asio::error_code | open (const protocol_type &protocol, asio::error_code &ec) |
| Open the socket using the specified protocol. More...
|
|
void | assign (const protocol_type &protocol, const native_handle_type &native_socket) |
| Assign an existing native socket to the socket. More...
|
|
asio::error_code | assign (const protocol_type &protocol, const native_handle_type &native_socket, asio::error_code &ec) |
| Assign an existing native socket to the socket. More...
|
|
bool | is_open () const |
| Determine whether the socket is open. More...
|
|
void | close () |
| Close the socket. More...
|
|
asio::error_code | close (asio::error_code &ec) |
| Close the socket. More...
|
|
native_type | native () |
| (Deprecated: Use native_handle().) Get the native socket representation. More...
|
|
native_handle_type | native_handle () |
| Get the native socket representation. More...
|
|
void | cancel () |
| Cancel all asynchronous operations associated with the socket. More...
|
|
asio::error_code | cancel (asio::error_code &ec) |
| Cancel all asynchronous operations associated with the socket. More...
|
|
bool | at_mark () const |
| Determine whether the socket is at the out-of-band data mark. More...
|
|
bool | at_mark (asio::error_code &ec) const |
| Determine whether the socket is at the out-of-band data mark. More...
|
|
std::size_t | available () const |
| Determine the number of bytes available for reading. More...
|
|
std::size_t | available (asio::error_code &ec) const |
| Determine the number of bytes available for reading. More...
|
|
void | bind (const endpoint_type &endpoint) |
| Bind the socket to the given local endpoint. More...
|
|
asio::error_code | bind (const endpoint_type &endpoint, asio::error_code &ec) |
| Bind the socket to the given local endpoint. More...
|
|
void | connect (const endpoint_type &peer_endpoint) |
| Connect the socket to the specified endpoint. More...
|
|
asio::error_code | connect (const endpoint_type &peer_endpoint, asio::error_code &ec) |
| Connect the socket to the specified endpoint. More...
|
|
| ASIO_INITFN_RESULT_TYPE (ConnectHandler, void(asio::error_code)) async_connect(const endpoint_type &peer_endpoint |
| Start an asynchronous connect. More...
|
|
| ASIO_MOVE_ARG (ConnectHandler) handler) |
|
void | set_option (const SettableSocketOption &option) |
| Set an option on the socket. More...
|
|
asio::error_code | set_option (const SettableSocketOption &option, asio::error_code &ec) |
| Set an option on the socket. More...
|
|
void | get_option (GettableSocketOption &option) const |
| Get an option from the socket. More...
|
|
asio::error_code | get_option (GettableSocketOption &option, asio::error_code &ec) const |
| Get an option from the socket. More...
|
|
void | io_control (IoControlCommand &command) |
| Perform an IO control command on the socket. More...
|
|
asio::error_code | io_control (IoControlCommand &command, asio::error_code &ec) |
| Perform an IO control command on the socket. More...
|
|
bool | non_blocking () const |
| Gets the non-blocking mode of the socket. More...
|
|
void | non_blocking (bool mode) |
| Sets the non-blocking mode of the socket. More...
|
|
asio::error_code | non_blocking (bool mode, asio::error_code &ec) |
| Sets the non-blocking mode of the socket. More...
|
|
bool | native_non_blocking () const |
| Gets the non-blocking mode of the native socket implementation. More...
|
|
void | native_non_blocking (bool mode) |
| Sets the non-blocking mode of the native socket implementation. More...
|
|
asio::error_code | native_non_blocking (bool mode, asio::error_code &ec) |
| Sets the non-blocking mode of the native socket implementation. More...
|
|
endpoint_type | local_endpoint () const |
| Get the local endpoint of the socket. More...
|
|
endpoint_type | local_endpoint (asio::error_code &ec) const |
| Get the local endpoint of the socket. More...
|
|
endpoint_type | remote_endpoint () const |
| Get the remote endpoint of the socket. More...
|
|
endpoint_type | remote_endpoint (asio::error_code &ec) const |
| Get the remote endpoint of the socket. More...
|
|
void | shutdown (shutdown_type what) |
| Disable sends or receives on the socket. More...
|
|
asio::error_code | shutdown (shutdown_type what, asio::error_code &ec) |
| Disable sends or receives on the socket. More...
|
|
asio::io_service & | get_io_service () |
| Get the io_service associated with the object. More...
|
|
| ASIO_STATIC_CONSTANT (int, message_peek=ASIO_OS_DEF(MSG_PEEK)) |
|
| ASIO_STATIC_CONSTANT (int, message_out_of_band=ASIO_OS_DEF(MSG_OOB)) |
|
| ASIO_STATIC_CONSTANT (int, message_do_not_route=ASIO_OS_DEF(MSG_DONTROUTE)) |
|
| ASIO_STATIC_CONSTANT (int, message_end_of_record=ASIO_OS_DEF(MSG_EOR)) |
|
| ASIO_STATIC_CONSTANT (int, max_connections=ASIO_OS_DEF(SOMAXCONN)) |
| The maximum length of the queue of pending incoming connections. More...
|
|
template<typename Protocol, typename StreamSocketService = stream_socket_service<Protocol>, typename Time = steady_timer::clock_type, typename TimeTraits = steady_timer::traits_type, typename TimerService = steady_timer::service_type>
class asio::basic_socket_streambuf< Protocol, StreamSocketService, Time, TimeTraits, TimerService >
Iostream streambuf for a socket.
Definition at line 101 of file basic_socket_streambuf.hpp.