#include <socket_acceptor_service.hpp>

Public Types | |
| typedef Protocol | protocol_type |
| The protocol type. | |
| typedef protocol_type::endpoint | endpoint_type |
| The endpoint type. | |
| typedef service_impl_type::implementation_type | implementation_type |
| The native type of the socket acceptor. | |
| typedef service_impl_type::native_type | native_type |
| The native acceptor type. | |
Public Member Functions | |
| socket_acceptor_service (asio::io_service &io_service) | |
| Construct a new socket acceptor service for the specified io_service. | |
| void | shutdown_service () |
| Destroy all user-defined handler objects owned by the service. | |
| void | construct (implementation_type &impl) |
| Construct a new socket acceptor implementation. | |
| void | destroy (implementation_type &impl) |
| Destroy a socket acceptor implementation. | |
| asio::error_code | open (implementation_type &impl, const protocol_type &protocol, asio::error_code &ec) |
| Open a new socket acceptor implementation. | |
| asio::error_code | assign (implementation_type &impl, const protocol_type &protocol, const native_type &native_acceptor, asio::error_code &ec) |
| Assign an existing native acceptor to a socket acceptor. | |
| bool | is_open (const implementation_type &impl) const |
| Determine whether the acceptor is open. | |
| asio::error_code | cancel (implementation_type &impl, asio::error_code &ec) |
| Cancel all asynchronous operations associated with the acceptor. | |
| asio::error_code | bind (implementation_type &impl, const endpoint_type &endpoint, asio::error_code &ec) |
| Bind the socket acceptor to the specified local endpoint. | |
| asio::error_code | listen (implementation_type &impl, int backlog, asio::error_code &ec) |
| asio::error_code | close (implementation_type &impl, asio::error_code &ec) |
| Close a socket acceptor implementation. | |
| native_type | native (implementation_type &impl) |
| Get the native acceptor implementation. | |
| template<typename SettableSocketOption> | |
| asio::error_code | set_option (implementation_type &impl, const SettableSocketOption &option, asio::error_code &ec) |
| Set a socket option. | |
| template<typename GettableSocketOption> | |
| asio::error_code | get_option (const implementation_type &impl, GettableSocketOption &option, asio::error_code &ec) const |
| Get a socket option. | |
| template<typename IoControlCommand> | |
| asio::error_code | io_control (implementation_type &impl, IoControlCommand &command, asio::error_code &ec) |
| Perform an IO control command on the socket. | |
| endpoint_type | local_endpoint (const implementation_type &impl, asio::error_code &ec) const |
| Get the local endpoint. | |
| template<typename SocketService> | |
| asio::error_code | accept (implementation_type &impl, basic_socket< protocol_type, SocketService > &peer, endpoint_type *peer_endpoint, asio::error_code &ec) |
| Accept a new connection. | |
| template<typename SocketService, typename AcceptHandler> | |
| void | async_accept (implementation_type &impl, basic_socket< protocol_type, SocketService > &peer, endpoint_type *peer_endpoint, AcceptHandler handler) |
| Start an asynchronous accept. | |
Private Types | |
| typedef detail::reactive_socket_service < Protocol, detail::select_reactor< false > > | service_impl_type |
Private Attributes | |
| service_impl_type & | service_impl_ |
Definition at line 34 of file socket_acceptor_service.hpp.
| typedef Protocol asio::socket_acceptor_service< Protocol >::protocol_type |
| typedef protocol_type::endpoint asio::socket_acceptor_service< Protocol >::endpoint_type |
typedef detail::reactive_socket_service< Protocol, detail::select_reactor<false> > asio::socket_acceptor_service< Protocol >::service_impl_type [private] |
Definition at line 65 of file socket_acceptor_service.hpp.
| typedef service_impl_type::implementation_type asio::socket_acceptor_service< Protocol >::implementation_type |
| typedef service_impl_type::native_type asio::socket_acceptor_service< Protocol >::native_type |
| asio::socket_acceptor_service< Protocol >::socket_acceptor_service | ( | asio::io_service & | io_service | ) | [inline, explicit] |
Construct a new socket acceptor service for the specified io_service.
Definition at line 84 of file socket_acceptor_service.hpp.
| void asio::socket_acceptor_service< Protocol >::shutdown_service | ( | ) | [inline, virtual] |
Destroy all user-defined handler objects owned by the service.
Implements asio::io_service::service.
Definition at line 92 of file socket_acceptor_service.hpp.
| void asio::socket_acceptor_service< Protocol >::construct | ( | implementation_type & | impl | ) | [inline] |
Construct a new socket acceptor implementation.
Definition at line 97 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::construct(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| void asio::socket_acceptor_service< Protocol >::destroy | ( | implementation_type & | impl | ) | [inline] |
Destroy a socket acceptor implementation.
Definition at line 103 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::destroy(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::open | ( | implementation_type & | impl, | |
| const protocol_type & | protocol, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Open a new socket acceptor implementation.
Definition at line 109 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::open(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::assign | ( | implementation_type & | impl, | |
| const protocol_type & | protocol, | |||
| const native_type & | native_acceptor, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Assign an existing native acceptor to a socket acceptor.
Definition at line 116 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::assign(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| bool asio::socket_acceptor_service< Protocol >::is_open | ( | const implementation_type & | impl | ) | const [inline] |
Determine whether the acceptor is open.
Definition at line 124 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::is_open(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::cancel | ( | implementation_type & | impl, | |
| asio::error_code & | ec | |||
| ) | [inline] |
Cancel all asynchronous operations associated with the acceptor.
Definition at line 130 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::cancel(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::bind | ( | implementation_type & | impl, | |
| const endpoint_type & | endpoint, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Bind the socket acceptor to the specified local endpoint.
Definition at line 137 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::bind(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::listen | ( | implementation_type & | impl, | |
| int | backlog, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Place the socket acceptor into the state where it will listen for new connections.
Definition at line 145 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::listen(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::close | ( | implementation_type & | impl, | |
| asio::error_code & | ec | |||
| ) | [inline] |
Close a socket acceptor implementation.
Definition at line 152 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::close(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| native_type asio::socket_acceptor_service< Protocol >::native | ( | implementation_type & | impl | ) | [inline] |
Get the native acceptor implementation.
Definition at line 159 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::native(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::set_option | ( | implementation_type & | impl, | |
| const SettableSocketOption & | option, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Set a socket option.
Definition at line 166 of file socket_acceptor_service.hpp.
References asio::socket_acceptor_service< Protocol >::service_impl_, and asio::detail::reactive_socket_service< Protocol, Reactor >::set_option().
| asio::error_code asio::socket_acceptor_service< Protocol >::get_option | ( | const implementation_type & | impl, | |
| GettableSocketOption & | option, | |||
| asio::error_code & | ec | |||
| ) | const [inline] |
Get a socket option.
Definition at line 174 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::get_option(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::io_control | ( | implementation_type & | impl, | |
| IoControlCommand & | command, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Perform an IO control command on the socket.
Definition at line 182 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::io_control(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| endpoint_type asio::socket_acceptor_service< Protocol >::local_endpoint | ( | const implementation_type & | impl, | |
| asio::error_code & | ec | |||
| ) | const [inline] |
Get the local endpoint.
Definition at line 189 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::local_endpoint(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| asio::error_code asio::socket_acceptor_service< Protocol >::accept | ( | implementation_type & | impl, | |
| basic_socket< protocol_type, SocketService > & | peer, | |||
| endpoint_type * | peer_endpoint, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Accept a new connection.
Definition at line 197 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::accept(), and asio::socket_acceptor_service< Protocol >::service_impl_.
| void asio::socket_acceptor_service< Protocol >::async_accept | ( | implementation_type & | impl, | |
| basic_socket< protocol_type, SocketService > & | peer, | |||
| endpoint_type * | peer_endpoint, | |||
| AcceptHandler | handler | |||
| ) | [inline] |
Start an asynchronous accept.
Definition at line 206 of file socket_acceptor_service.hpp.
References asio::detail::reactive_socket_service< Protocol, Reactor >::async_accept(), and asio::socket_acceptor_service< Protocol >::service_impl_.
service_impl_type& asio::socket_acceptor_service< Protocol >::service_impl_ [private] |
Definition at line 215 of file socket_acceptor_service.hpp.
Referenced by asio::socket_acceptor_service< Protocol >::accept(), asio::socket_acceptor_service< Protocol >::assign(), asio::socket_acceptor_service< Protocol >::async_accept(), asio::socket_acceptor_service< Protocol >::bind(), asio::socket_acceptor_service< Protocol >::cancel(), asio::socket_acceptor_service< Protocol >::close(), asio::socket_acceptor_service< Protocol >::construct(), asio::socket_acceptor_service< Protocol >::destroy(), asio::socket_acceptor_service< Protocol >::get_option(), asio::socket_acceptor_service< Protocol >::io_control(), asio::socket_acceptor_service< Protocol >::is_open(), asio::socket_acceptor_service< Protocol >::listen(), asio::socket_acceptor_service< Protocol >::local_endpoint(), asio::socket_acceptor_service< Protocol >::native(), asio::socket_acceptor_service< Protocol >::open(), and asio::socket_acceptor_service< Protocol >::set_option().
1.5.6