| Home | Libraries | People | FAQ | More

### stream_socket_service

Default service implementation for a stream socket.

    template<
        typename Protocol>
    class stream_socket_service :
      public io_service::service

##### Types

Name | Description
--- | ---
endpoint_type | The endpoint type.
implementation_type | The type of a stream socket implementation.
native_type | The native socket type.
protocol_type | The protocol type.

##### Member Functions

Name | Description
--- | ---
assign | Assign an existing native socket to a stream socket.
async_connect | Start an asynchronous connect.
async_receive | Start an asynchronous receive.
async_send | Start an asynchronous send.
at_mark | Determine whether the socket is at the out-of-band data mark.
available | Determine the number of bytes available for reading.
bind | Bind the stream socket to the specified local endpoint.
cancel | Cancel all asynchronous operations associated with the socket.
close | Close a stream socket implementation.
connect | Connect the stream socket to the specified endpoint.
construct | Construct a new stream socket implementation.
destroy | Destroy a stream socket implementation.
get_io_service | Get the io_service object that owns the service.
get_option | Get a socket option.
io_control | Perform an IO control command on the socket.
io_service | (Deprecated: use get_io_service().) Get the io_service object that owns the service.
is_open | Determine whether the socket is open.
local_endpoint | Get the local endpoint.
native | Get the native socket implementation.
open | Open a stream socket.
receive | Receive some data from the peer.
remote_endpoint | Get the remote endpoint.
send | Send the given data to the peer.
set_option | Set a socket option.
shutdown | Disable sends or receives on the socket.
shutdown_service | Destroy all user-defined handler objects owned by the service.
stream_socket_service | Construct a new stream socket service for the specified io_service.

##### Data Members

Name | Description
--- | ---
id | The unique service identifier.

##### Requirements

Header: `boost/asio/stream_socket_service.hpp`

Convenience header: `boost/asio.hpp`