Realistic 3D camera system
3D camera system components
|
Default service implementation for a socket acceptor. More...
#include <socket_acceptor_service.hpp>
Public Types | |
typedef Protocol | protocol_type |
The protocol type. More... | |
typedef protocol_type::endpoint | endpoint_type |
The endpoint type. More... | |
typedef service_impl_type::implementation_type | implementation_type |
The native type of the socket acceptor. More... | |
typedef service_impl_type::native_handle_type | native_type |
(Deprecated: Use native_handle_type.) The native acceptor type. More... | |
typedef service_impl_type::native_handle_type | native_handle_type |
The native acceptor type. More... | |
Public Member Functions | |
socket_acceptor_service (asio::io_service &io_service) | |
Construct a new socket acceptor service for the specified io_service. More... | |
void | construct (implementation_type &impl) |
Construct a new socket acceptor implementation. More... | |
void | destroy (implementation_type &impl) |
Destroy a socket acceptor implementation. More... | |
asio::error_code | open (implementation_type &impl, const protocol_type &protocol, asio::error_code &ec) |
Open a new socket acceptor implementation. More... | |
asio::error_code | assign (implementation_type &impl, const protocol_type &protocol, const native_handle_type &native_acceptor, asio::error_code &ec) |
Assign an existing native acceptor to a socket acceptor. More... | |
bool | is_open (const implementation_type &impl) const |
Determine whether the acceptor is open. More... | |
asio::error_code | cancel (implementation_type &impl, asio::error_code &ec) |
Cancel all asynchronous operations associated with the acceptor. More... | |
asio::error_code | bind (implementation_type &impl, const endpoint_type &endpoint, asio::error_code &ec) |
Bind the socket acceptor to the specified local endpoint. More... | |
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. More... | |
native_type | native (implementation_type &impl) |
(Deprecated: Use native_handle().) Get the native acceptor implementation. More... | |
native_handle_type | native_handle (implementation_type &impl) |
Get the native acceptor implementation. More... | |
template<typename SettableSocketOption > | |
asio::error_code | set_option (implementation_type &impl, const SettableSocketOption &option, asio::error_code &ec) |
Set a socket option. More... | |
template<typename GettableSocketOption > | |
asio::error_code | get_option (const implementation_type &impl, GettableSocketOption &option, asio::error_code &ec) const |
Get a socket option. More... | |
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. More... | |
bool | non_blocking (const implementation_type &impl) const |
Gets the non-blocking mode of the acceptor. More... | |
asio::error_code | non_blocking (implementation_type &impl, bool mode, asio::error_code &ec) |
Sets the non-blocking mode of the acceptor. More... | |
bool | native_non_blocking (const implementation_type &impl) const |
Gets the non-blocking mode of the native acceptor implementation. More... | |
asio::error_code | native_non_blocking (implementation_type &impl, bool mode, asio::error_code &ec) |
Sets the non-blocking mode of the native acceptor implementation. More... | |
endpoint_type | local_endpoint (const implementation_type &impl, asio::error_code &ec) const |
Get the local endpoint. More... | |
template<typename Protocol1 , typename SocketService > | |
asio::error_code | accept (implementation_type &impl, basic_socket< Protocol1, SocketService > &peer, endpoint_type *peer_endpoint, asio::error_code &ec, typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type *=0) |
Accept a new connection. More... | |
template<typename Protocol1 , typename SocketService , typename AcceptHandler > | |
ASIO_INITFN_RESULT_TYPE (AcceptHandler, void(asio::error_code)) async_accept(implementation_type &impl | |
Start an asynchronous accept. More... | |
basic_socket< Protocol1, SocketService > endpoint_type | ASIO_MOVE_ARG (AcceptHandler) handler |
Public Member Functions inherited from asio::detail::service_base< socket_acceptor_service< Protocol > > | |
service_base (asio::io_service &io_service) | |
Public Member Functions inherited from asio::io_service::service | |
asio::io_service & | get_io_service () |
Get the io_service object that owns the service. More... | |
Public Attributes | |
basic_socket< Protocol1, SocketService > & | peer |
basic_socket< Protocol1, SocketService > endpoint_type * | peer_endpoint |
Additional Inherited Members | |
Static Public Attributes inherited from asio::detail::service_base< socket_acceptor_service< Protocol > > | |
static asio::detail::service_id< socket_acceptor_service< Protocol > > | id |
Protected Member Functions inherited from asio::io_service::service | |
ASIO_DECL | service (asio::io_service &owner) |
Constructor. More... | |
virtual ASIO_DECL | ~service () |
Destructor. More... | |
Default service implementation for a socket acceptor.
Definition at line 38 of file socket_acceptor_service.hpp.
typedef protocol_type::endpoint asio::socket_acceptor_service< Protocol >::endpoint_type |
The endpoint type.
Definition at line 55 of file socket_acceptor_service.hpp.
typedef service_impl_type::implementation_type asio::socket_acceptor_service< Protocol >::implementation_type |
The native type of the socket acceptor.
Definition at line 72 of file socket_acceptor_service.hpp.
typedef service_impl_type::native_handle_type asio::socket_acceptor_service< Protocol >::native_handle_type |
The native acceptor type.
Definition at line 86 of file socket_acceptor_service.hpp.
typedef service_impl_type::native_handle_type asio::socket_acceptor_service< Protocol >::native_type |
(Deprecated: Use native_handle_type.) The native acceptor type.
Definition at line 79 of file socket_acceptor_service.hpp.
typedef Protocol asio::socket_acceptor_service< Protocol >::protocol_type |
The protocol type.
Definition at line 52 of file socket_acceptor_service.hpp.
|
inlineexplicit |
Construct a new socket acceptor service for the specified io_service.
Definition at line 90 of file socket_acceptor_service.hpp.
|
inline |
Accept a new connection.
Definition at line 260 of file socket_acceptor_service.hpp.
asio::socket_acceptor_service< Protocol >::ASIO_INITFN_RESULT_TYPE | ( | AcceptHandler | , |
void(asio::error_code) | |||
) |
Start an asynchronous accept.
basic_socket<Protocol1, SocketService> endpoint_type asio::socket_acceptor_service< Protocol >::ASIO_MOVE_ARG | ( | AcceptHandler | ) |
|
inline |
Assign an existing native acceptor to a socket acceptor.
Definition at line 147 of file socket_acceptor_service.hpp.
|
inline |
Bind the socket acceptor to the specified local endpoint.
Definition at line 168 of file socket_acceptor_service.hpp.
|
inline |
Cancel all asynchronous operations associated with the acceptor.
Definition at line 161 of file socket_acceptor_service.hpp.
|
inline |
Close a socket acceptor implementation.
Definition at line 183 of file socket_acceptor_service.hpp.
|
inline |
Construct a new socket acceptor implementation.
Definition at line 98 of file socket_acceptor_service.hpp.
|
inline |
Destroy a socket acceptor implementation.
Definition at line 134 of file socket_acceptor_service.hpp.
|
inline |
Get a socket option.
Definition at line 211 of file socket_acceptor_service.hpp.
|
inline |
Perform an IO control command on the socket.
Definition at line 219 of file socket_acceptor_service.hpp.
|
inline |
Determine whether the acceptor is open.
Definition at line 155 of file socket_acceptor_service.hpp.
|
inline |
Place the socket acceptor into the state where it will listen for new connections.
Definition at line 176 of file socket_acceptor_service.hpp.
|
inline |
Get the local endpoint.
Definition at line 252 of file socket_acceptor_service.hpp.
|
inline |
(Deprecated: Use native_handle().) Get the native acceptor implementation.
Definition at line 190 of file socket_acceptor_service.hpp.
|
inline |
Get the native acceptor implementation.
Definition at line 196 of file socket_acceptor_service.hpp.
|
inline |
Gets the non-blocking mode of the native acceptor implementation.
Definition at line 239 of file socket_acceptor_service.hpp.
|
inline |
Sets the non-blocking mode of the native acceptor implementation.
Definition at line 245 of file socket_acceptor_service.hpp.
|
inline |
Gets the non-blocking mode of the acceptor.
Definition at line 226 of file socket_acceptor_service.hpp.
|
inline |
Sets the non-blocking mode of the acceptor.
Definition at line 232 of file socket_acceptor_service.hpp.
|
inline |
Open a new socket acceptor implementation.
Definition at line 140 of file socket_acceptor_service.hpp.
|
inline |
Set a socket option.
Definition at line 203 of file socket_acceptor_service.hpp.
basic_socket<Protocol1, SocketService>& asio::socket_acceptor_service< Protocol >::peer |
Definition at line 273 of file socket_acceptor_service.hpp.
basic_socket<Protocol1, SocketService> endpoint_type* asio::socket_acceptor_service< Protocol >::peer_endpoint |
Definition at line 273 of file socket_acceptor_service.hpp.