Kea 2.5.8
isc::asiolink::TLSAcceptor< C > Class Template Reference

Provides a service for accepting new TLS connections. More...

#include <tls_acceptor.h>

+ Inheritance diagram for isc::asiolink::TLSAcceptor< C >:

Public Member Functions

 TLSAcceptor (const IOServicePtr &io_service)
 Constructor.
 
virtual ~TLSAcceptor ()
 Destructor.
 
template<typename SocketCallback >
void asyncAccept (const TLSSocket< SocketCallback > &socket, C &callback)
 Asynchronously accept new connection.
 

Additional Inherited Members

Detailed Description

template<typename C>
class isc::asiolink::TLSAcceptor< C >

Provides a service for accepting new TLS connections.

Template Parameters
CAcceptor callback type.

Definition at line 31 of file tls_acceptor.h.

Constructor & Destructor Documentation

◆ TLSAcceptor()

template<typename C >
isc::asiolink::TLSAcceptor< C >::TLSAcceptor ( const IOServicePtr io_service)
inlineexplicit

Constructor.

Parameters
io_serviceIO service.

Definition at line 37 of file tls_acceptor.h.

◆ ~TLSAcceptor()

template<typename C >
virtual isc::asiolink::TLSAcceptor< C >::~TLSAcceptor ( )
inlinevirtual

Destructor.

Definition at line 41 of file tls_acceptor.h.

Member Function Documentation

◆ asyncAccept()

template<typename C >
template<typename SocketCallback >
void isc::asiolink::TLSAcceptor< C >::asyncAccept ( const TLSSocket< SocketCallback > &  socket,
C &  callback 
)
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.

Parameters
socketSocket into which connection should be accepted.
callbackCallback function to be invoked when the new connection arrives.
Template Parameters
SocketCallbackType of the callback for the TLSSocket.

Definition at line 55 of file tls_acceptor.h.

References isc::asiolink::TLSSocket< C >::getASIOSocket().

+ Here is the call graph for this function:

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