|
| TLSAcceptor (const IOServicePtr &io_service) |
| Constructor.
|
|
virtual | ~TLSAcceptor () |
| Destructor.
|
|
template<typename SocketCallback > |
void | asyncAccept (const TLSSocket< SocketCallback > &socket, C &callback) |
| Asynchronously accept new connection.
|
|
| TCPAcceptor (const IOServicePtr &io_service) |
| Constructor.
|
|
template<typename SocketCallback > |
void | asyncAccept (const TCPSocket< SocketCallback > &socket, C &callback) |
| Asynchronously accept new connection.
|
|
virtual int | getProtocol () const final |
| Returns protocol of the socket.
|
|
| IOAcceptor (const IOServicePtr &io_service) |
| Constructor.
|
|
virtual | ~IOAcceptor () |
| Destructor.
|
|
void | bind (const EndpointType &endpoint) |
| Binds socket to an endpoint.
|
|
void | close () const |
| Closes the acceptor.
|
|
virtual int | getNative () const |
| Returns file descriptor of the underlying socket.
|
|
bool | isOpen () const |
| Checks if the acceptor is open.
|
|
void | listen () |
| Starts listening new connections.
|
|
void | open (const EndpointType &endpoint) |
| Opens acceptor socket given the endpoint.
|
|
void | setOption (const SettableSocketOption &socket_option) |
| Sets socket option.
|
|
virtual | ~IOSocket () |
| The destructor.
|
|
template<typename C>
class isc::asiolink::TLSAcceptor< C >
Provides a service for accepting new TLS connections.
- Template Parameters
-
Definition at line 31 of file tls_acceptor.h.
template<typename C >
template<typename SocketCallback >
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.
- Parameters
-
socket | Socket into which connection should be accepted. |
callback | Callback function to be invoked when the new connection arrives. |
- Template Parameters
-
SocketCallback | Type of the callback for the TLSSocket. |
Definition at line 55 of file tls_acceptor.h.
References isc::asiolink::TLSSocket< C >::getASIOSocket().