Kea
1.9.9-git
|
Provides a service for accepting new TLS connections. More...
#include <tls_acceptor.h>
Public Member Functions | |
TLSAcceptor (IOService &io_service) | |
Constructor. More... | |
virtual | ~TLSAcceptor () |
Destructor. More... | |
template<typename SocketCallback > | |
void | asyncAccept (const TLSSocket< SocketCallback > &socket, C &callback) |
Asynchronously accept new connection. More... | |
Public Member Functions inherited from isc::asiolink::TCPAcceptor< C > | |
TCPAcceptor (IOService &io_service) | |
Constructor. More... | |
template<typename SocketCallback > | |
void | asyncAccept (const TCPSocket< SocketCallback > &socket, C &callback) |
Asynchronously accept new connection. More... | |
virtual int | getProtocol () const final |
Returns protocol of the socket. More... | |
Public Member Functions inherited from isc::asiolink::IOAcceptor< boost::asio::ip::tcp, C > | |
IOAcceptor (IOService &io_service) | |
Constructor. More... | |
virtual | ~IOAcceptor () |
Destructor. More... | |
void | bind (const EndpointType &endpoint) |
Binds socket to an endpoint. More... | |
void | close () const |
Closes the acceptor. More... | |
virtual int | getNative () const |
Returns file descriptor of the underlying socket. More... | |
bool | isOpen () const |
Checks if the acceptor is open. More... | |
void | listen () |
Starts listening new connections. More... | |
void | open (const EndpointType &endpoint) |
Opens acceptor socket given the endpoint. More... | |
void | setOption (const SettableSocketOption &socket_option) |
Sets socket option. More... | |
Public Member Functions inherited from isc::asiolink::IOSocket | |
virtual | ~IOSocket () |
The destructor. More... | |
Additional Inherited Members | |
Public Types inherited from isc::asiolink::IOSocket | |
typedef boost::asio::socket_base::reuse_address | ReuseAddress |
Represents SO_REUSEADDR socket option. More... | |
Static Public Member Functions inherited from isc::asiolink::IOSocket | |
static IOSocket & | getDummyTCPSocket () |
Return a non-usable "dummy" TCP socket for testing. More... | |
static IOSocket & | getDummyUDPSocket () |
Return a non-usable "dummy" UDP socket for testing. More... | |
Protected Member Functions inherited from isc::asiolink::IOAcceptor< boost::asio::ip::tcp, C > | |
void | asyncAcceptInternal (const SocketType &socket, const C &callback) |
Asynchronously accept new connection. More... | |
Protected Member Functions inherited from isc::asiolink::IOSocket | |
IOSocket () | |
The default constructor. More... | |
Protected Attributes inherited from isc::asiolink::IOAcceptor< boost::asio::ip::tcp, C > | |
boost::shared_ptr< typename boost::asio::ip::tcp::acceptor > | acceptor_ |
Underlying ASIO acceptor implementation. More... | |
Provides a service for accepting new TLS connections.
C | Acceptor callback type. |
Definition at line 31 of file tls_acceptor.h.
|
inlineexplicit |
|
inlinevirtual |
Destructor.
Definition at line 41 of file tls_acceptor.h.
|
inline |
Asynchronously accept new connection.
This method accepts new connection into the specified socket. When the new connection arrives or an error occurs the specified callback function is invoked.
socket | Socket into which connection should be accepted. |
callback | Callback function to be invoked when the new connection arrives. |
SocketCallback | Type of the callback for the TLSSocket. |
Definition at line 54 of file tls_acceptor.h.
References isc::asiolink::TLSSocket< C >::getASIOSocket().