Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | Public Attributes | List of all members
asio::socket_acceptor_service< Protocol > Class Template Reference

Default service implementation for a socket acceptor. More...

#include <socket_acceptor_service.hpp>

Inheritance diagram for asio::socket_acceptor_service< Protocol >:
asio::detail::service_base< socket_acceptor_service< Protocol > > asio::io_service::service asio::detail::noncopyable

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_serviceget_io_service ()
 Get the io_service object that owns the service. More...
 

Public Attributes

basic_socket< Protocol1, SocketService > & peer
 
basic_socket< Protocol1, SocketService > endpoint_typepeer_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...
 

Detailed Description

template<typename Protocol>
class asio::socket_acceptor_service< Protocol >

Default service implementation for a socket acceptor.

Definition at line 38 of file socket_acceptor_service.hpp.

Member Typedef Documentation

template<typename Protocol >
typedef protocol_type::endpoint asio::socket_acceptor_service< Protocol >::endpoint_type

The endpoint type.

Definition at line 55 of file socket_acceptor_service.hpp.

The native type of the socket acceptor.

Definition at line 72 of file socket_acceptor_service.hpp.

The native acceptor type.

Definition at line 86 of file socket_acceptor_service.hpp.

template<typename Protocol >
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.

template<typename Protocol >
typedef Protocol asio::socket_acceptor_service< Protocol >::protocol_type

The protocol type.

Definition at line 52 of file socket_acceptor_service.hpp.

Constructor & Destructor Documentation

template<typename Protocol >
asio::socket_acceptor_service< Protocol >::socket_acceptor_service ( asio::io_service io_service)
inlineexplicit

Construct a new socket acceptor service for the specified io_service.

Definition at line 90 of file socket_acceptor_service.hpp.

Member Function Documentation

template<typename Protocol >
template<typename Protocol1 , typename SocketService >
asio::error_code asio::socket_acceptor_service< Protocol >::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 
)
inline

Accept a new connection.

Definition at line 260 of file socket_acceptor_service.hpp.

template<typename Protocol >
template<typename Protocol1 , typename SocketService , typename AcceptHandler >
asio::socket_acceptor_service< Protocol >::ASIO_INITFN_RESULT_TYPE ( AcceptHandler  ,
void(asio::error_code  
)

Start an asynchronous accept.

template<typename Protocol >
basic_socket<Protocol1, SocketService> endpoint_type asio::socket_acceptor_service< Protocol >::ASIO_MOVE_ARG ( AcceptHandler  )
template<typename Protocol >
asio::error_code asio::socket_acceptor_service< Protocol >::assign ( implementation_type impl,
const protocol_type protocol,
const native_handle_type native_acceptor,
asio::error_code ec 
)
inline

Assign an existing native acceptor to a socket acceptor.

Definition at line 147 of file socket_acceptor_service.hpp.

template<typename Protocol >
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 168 of file socket_acceptor_service.hpp.

template<typename Protocol >
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 161 of file socket_acceptor_service.hpp.

template<typename Protocol >
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 183 of file socket_acceptor_service.hpp.

template<typename Protocol >
void asio::socket_acceptor_service< Protocol >::construct ( implementation_type impl)
inline

Construct a new socket acceptor implementation.

Definition at line 98 of file socket_acceptor_service.hpp.

template<typename Protocol >
void asio::socket_acceptor_service< Protocol >::destroy ( implementation_type impl)
inline

Destroy a socket acceptor implementation.

Definition at line 134 of file socket_acceptor_service.hpp.

template<typename Protocol >
template<typename GettableSocketOption >
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 211 of file socket_acceptor_service.hpp.

template<typename Protocol >
template<typename IoControlCommand >
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 219 of file socket_acceptor_service.hpp.

template<typename Protocol >
bool asio::socket_acceptor_service< Protocol >::is_open ( const implementation_type impl) const
inline

Determine whether the acceptor is open.

Definition at line 155 of file socket_acceptor_service.hpp.

template<typename Protocol >
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 176 of file socket_acceptor_service.hpp.

template<typename Protocol >
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 252 of file socket_acceptor_service.hpp.

template<typename Protocol >
native_type asio::socket_acceptor_service< Protocol >::native ( implementation_type impl)
inline

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

Definition at line 190 of file socket_acceptor_service.hpp.

template<typename Protocol >
native_handle_type asio::socket_acceptor_service< Protocol >::native_handle ( implementation_type impl)
inline

Get the native acceptor implementation.

Definition at line 196 of file socket_acceptor_service.hpp.

template<typename Protocol >
bool asio::socket_acceptor_service< Protocol >::native_non_blocking ( const implementation_type impl) const
inline

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

Definition at line 239 of file socket_acceptor_service.hpp.

template<typename Protocol >
asio::error_code asio::socket_acceptor_service< Protocol >::native_non_blocking ( implementation_type impl,
bool  mode,
asio::error_code ec 
)
inline

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

Definition at line 245 of file socket_acceptor_service.hpp.

template<typename Protocol >
bool asio::socket_acceptor_service< Protocol >::non_blocking ( const implementation_type impl) const
inline

Gets the non-blocking mode of the acceptor.

Definition at line 226 of file socket_acceptor_service.hpp.

template<typename Protocol >
asio::error_code asio::socket_acceptor_service< Protocol >::non_blocking ( implementation_type impl,
bool  mode,
asio::error_code ec 
)
inline

Sets the non-blocking mode of the acceptor.

Definition at line 232 of file socket_acceptor_service.hpp.

template<typename Protocol >
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 140 of file socket_acceptor_service.hpp.

template<typename Protocol >
template<typename SettableSocketOption >
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 203 of file socket_acceptor_service.hpp.

Member Data Documentation

template<typename Protocol >
basic_socket<Protocol1, SocketService>& asio::socket_acceptor_service< Protocol >::peer

Definition at line 273 of file socket_acceptor_service.hpp.

template<typename Protocol >
basic_socket<Protocol1, SocketService> endpoint_type* asio::socket_acceptor_service< Protocol >::peer_endpoint

Definition at line 273 of file socket_acceptor_service.hpp.


The documentation for this class was generated from the following file: