asio C++ library

PrevUpHomeNext

socket_acceptor_service

Default service implementation for a socket acceptor.

template<
    typename Protocol>
class socket_acceptor_service :
  public io_service::service
Types

Name

Description

endpoint_type

The endpoint type.

implementation_type

The native type of the socket acceptor.

native_handle_type

The native acceptor type.

native_type

(Deprecated: Use native_handle_type.) The native acceptor type.

protocol_type

The protocol type.

Member Functions

Name

Description

accept

Accept a new connection.

assign

Assign an existing native acceptor to a socket acceptor.

async_accept

Start an asynchronous accept.

bind

Bind the socket acceptor to the specified local endpoint.

cancel

Cancel all asynchronous operations associated with the acceptor.

close

Close a socket acceptor implementation.

construct

Construct a new socket acceptor implementation.

converting_move_construct

Move-construct a new socket acceptor implementation from another protocol type.

destroy

Destroy a socket acceptor 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.

is_open

Determine whether the acceptor is open.

listen

Place the socket acceptor into the state where it will listen for new connections.

local_endpoint

Get the local endpoint.

move_assign

Move-assign from another socket acceptor implementation.

move_construct

Move-construct a new socket acceptor implementation.

native

(Deprecated: Use native_handle().) Get the native acceptor implementation.

native_handle

Get the native acceptor implementation.

native_non_blocking

Gets the non-blocking mode of the native acceptor implementation.

Sets the non-blocking mode of the native acceptor implementation.

non_blocking

Gets the non-blocking mode of the acceptor.

Sets the non-blocking mode of the acceptor.

open

Open a new socket acceptor implementation.

set_option

Set a socket option.

socket_acceptor_service

Construct a new socket acceptor service for the specified io_service.

Data Members

Name

Description

id

The unique service identifier.

Requirements

Header: asio/socket_acceptor_service.hpp

Convenience header: asio.hpp


PrevUpHomeNext