MeVisLab Toolbox Reference
asio::SocketCreationSession< SessionType > Class Template Reference

Class template facilitating the definition of asio::Socket generators. More...

#include <SocketCreationSession.h>

Inheritance diagram for asio::SocketCreationSession< SessionType >:

Public Member Functions

template<typename Slot >
SignalConnection observeConnectionEstablished (Slot &&slot)
 
template<typename Slot >
SignalConnection observeErrorOccured (Slot &&slot)
 
template<typename Slot >
SignalConnection observeAboutToBeDestroyed (Slot &&slot)
 
 ~SocketCreationSession ()
 

Static Public Member Functions

template<typename... Arguments>
static std::shared_ptr< SessionType > create (Arguments &&... arguments)
 

Protected Member Functions

void emitConnectionEstablished (std::unique_ptr< Socket > socket)
 
void emitErrorOccured (const ErrorCode &ec)
 

Detailed Description

template<typename SessionType>
class asio::SocketCreationSession< SessionType >

Class template facilitating the definition of asio::Socket generators.

This class template exists to avoid code duplication for different socket setups.

For more information have a look at asio::TcpConnectorSession, asio::TlsConnectorSession, asio::TcpAcceptorSession, asio::TlsAcceptorSession.

Definition at line 23 of file SocketCreationSession.h.

Constructor & Destructor Documentation

◆ ~SocketCreationSession()

template<typename SessionType >
asio::SocketCreationSession< SessionType >::~SocketCreationSession ( )
inline

Definition at line 51 of file SocketCreationSession.h.

Member Function Documentation

◆ create()

template<typename SessionType >
template<typename... Arguments>
static std::shared_ptr<SessionType> asio::SocketCreationSession< SessionType >::create ( Arguments &&...  arguments)
inlinestatic

Definition at line 28 of file SocketCreationSession.h.

◆ emitConnectionEstablished()

template<typename SessionType >
void asio::SocketCreationSession< SessionType >::emitConnectionEstablished ( std::unique_ptr< Socket socket)
inlineprotected

Definition at line 58 of file SocketCreationSession.h.

◆ emitErrorOccured()

template<typename SessionType >
void asio::SocketCreationSession< SessionType >::emitErrorOccured ( const ErrorCode ec)
inlineprotected

Definition at line 63 of file SocketCreationSession.h.

◆ observeAboutToBeDestroyed()

template<typename SessionType >
template<typename Slot >
SignalConnection asio::SocketCreationSession< SessionType >::observeAboutToBeDestroyed ( Slot &&  slot)
inline

Definition at line 46 of file SocketCreationSession.h.

◆ observeConnectionEstablished()

template<typename SessionType >
template<typename Slot >
SignalConnection asio::SocketCreationSession< SessionType >::observeConnectionEstablished ( Slot &&  slot)
inline

Definition at line 34 of file SocketCreationSession.h.

◆ observeErrorOccured()

template<typename SessionType >
template<typename Slot >
SignalConnection asio::SocketCreationSession< SessionType >::observeErrorOccured ( Slot &&  slot)
inline

Definition at line 40 of file SocketCreationSession.h.


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