|
| stream_socket_service (boost::asio::io_service &io_service) |
| Construct a new stream socket service for the specified io_service. More...
|
|
void | construct (implementation_type &impl) |
| Construct a new stream socket implementation. More...
|
|
void | destroy (implementation_type &impl) |
| Destroy a stream socket implementation. More...
|
|
boost::system::error_code | open (implementation_type &impl, const protocol_type &protocol, boost::system::error_code &ec) |
| Open a stream socket. More...
|
|
boost::system::error_code | assign (implementation_type &impl, const protocol_type &protocol, const native_handle_type &native_socket, boost::system::error_code &ec) |
| Assign an existing native socket to a stream socket. More...
|
|
bool | is_open (const implementation_type &impl) const |
| Determine whether the socket is open. More...
|
|
boost::system::error_code | close (implementation_type &impl, boost::system::error_code &ec) |
| Close a stream socket implementation. More...
|
|
native_type | native (implementation_type &impl) |
| (Deprecated: Use native_handle().) Get the native socket implementation. More...
|
|
native_handle_type | native_handle (implementation_type &impl) |
| Get the native socket implementation. More...
|
|
boost::system::error_code | cancel (implementation_type &impl, boost::system::error_code &ec) |
| Cancel all asynchronous operations associated with the socket. More...
|
|
bool | at_mark (const implementation_type &impl, boost::system::error_code &ec) const |
| Determine whether the socket is at the out-of-band data mark. More...
|
|
std::size_t | available (const implementation_type &impl, boost::system::error_code &ec) const |
| Determine the number of bytes available for reading. More...
|
|
boost::system::error_code | bind (implementation_type &impl, const endpoint_type &endpoint, boost::system::error_code &ec) |
| Bind the stream socket to the specified local endpoint. More...
|
|
boost::system::error_code | connect (implementation_type &impl, const endpoint_type &peer_endpoint, boost::system::error_code &ec) |
| Connect the stream socket to the specified endpoint. More...
|
|
template<typename ConnectHandler > |
| BOOST_ASIO_INITFN_RESULT_TYPE (ConnectHandler, void(boost::system::error_code)) async_connect(implementation_type &impl |
| Start an asynchronous connect. More...
|
|
const endpoint_type | BOOST_ASIO_MOVE_ARG (ConnectHandler) handler) |
|
template<typename SettableSocketOption > |
boost::system::error_code | set_option (implementation_type &impl, const SettableSocketOption &option, boost::system::error_code &ec) |
| Set a socket option. More...
|
|
template<typename GettableSocketOption > |
boost::system::error_code | get_option (const implementation_type &impl, GettableSocketOption &option, boost::system::error_code &ec) const |
| Get a socket option. More...
|
|
template<typename IoControlCommand > |
boost::system::error_code | io_control (implementation_type &impl, IoControlCommand &command, boost::system::error_code &ec) |
| Perform an IO control command on the socket. More...
|
|
bool | non_blocking (const implementation_type &impl) const |
| Gets the non-blocking mode of the socket. More...
|
|
boost::system::error_code | non_blocking (implementation_type &impl, bool mode, boost::system::error_code &ec) |
| Sets the non-blocking mode of the socket. More...
|
|
bool | native_non_blocking (const implementation_type &impl) const |
| Gets the non-blocking mode of the native socket implementation. More...
|
|
boost::system::error_code | native_non_blocking (implementation_type &impl, bool mode, boost::system::error_code &ec) |
| Sets the non-blocking mode of the native socket implementation. More...
|
|
endpoint_type | local_endpoint (const implementation_type &impl, boost::system::error_code &ec) const |
| Get the local endpoint. More...
|
|
endpoint_type | remote_endpoint (const implementation_type &impl, boost::system::error_code &ec) const |
| Get the remote endpoint. More...
|
|
boost::system::error_code | shutdown (implementation_type &impl, socket_base::shutdown_type what, boost::system::error_code &ec) |
| Disable sends or receives on the socket. More...
|
|
template<typename ConstBufferSequence > |
std::size_t | send (implementation_type &impl, const ConstBufferSequence &buffers, socket_base::message_flags flags, boost::system::error_code &ec) |
| Send the given data to the peer. More...
|
|
template<typename ConstBufferSequence , typename WriteHandler > |
| BOOST_ASIO_INITFN_RESULT_TYPE (WriteHandler, void(boost::system::error_code, std::size_t)) async_send(implementation_type &impl |
| Start an asynchronous send. More...
|
|
const ConstBufferSequence
socket_base::message_flags | BOOST_ASIO_MOVE_ARG (WriteHandler) handler) |
|
template<typename MutableBufferSequence > |
std::size_t | receive (implementation_type &impl, const MutableBufferSequence &buffers, socket_base::message_flags flags, boost::system::error_code &ec) |
| Receive some data from the peer. More...
|
|
template<typename MutableBufferSequence , typename ReadHandler > |
| BOOST_ASIO_INITFN_RESULT_TYPE (ReadHandler, void(boost::system::error_code, std::size_t)) async_receive(implementation_type &impl |
| Start an asynchronous receive. More...
|
|
const MutableBufferSequence
socket_base::message_flags | BOOST_ASIO_MOVE_ARG (ReadHandler) handler) |
|
boost::asio::io_service & | get_io_service () |
| Get the io_service object that owns the service. More...
|
|
template<typename Protocol>
class boost::asio::stream_socket_service< Protocol >
Default service implementation for a stream socket.