SNode.C
Loading...
Searching...
No Matches
core::socket::Socket< ConfigT > Class Template Reference

#include <Socket.h>

Collaboration diagram for core::socket::Socket< ConfigT >:

Public Types

using Config = ConfigT

Public Member Functions

 Socket (const std::string &name)
 Socket (const std::shared_ptr< Config > &config)
 Socket (Socket &&) noexcept=delete
Socketoperator= (Socket &&) noexcept=delete
virtual ~Socket ()
ConfiggetConfig () const

Protected Member Functions

 Socket (const Socket &)=default
Socketoperator= (const Socket &)=default

Protected Attributes

std::shared_ptr< Configconfig

Detailed Description

template<typename ConfigT>
class core::socket::Socket< ConfigT >

Definition at line 55 of file Socket.h.

Member Typedef Documentation

◆ Config

template<typename ConfigT>
using core::socket::Socket< ConfigT >::Config = ConfigT

Definition at line 57 of file Socket.h.

Constructor & Destructor Documentation

◆ Socket() [1/4]

template<typename Config>
core::socket::Socket< Config >::Socket ( const std::string & name)
explicit

Definition at line 51 of file Socket.hpp.

53 }
std::shared_ptr< Config > config
Definition Socket.h:75

References config.

◆ Socket() [2/4]

template<typename Config>
core::socket::Socket< Config >::Socket ( const std::shared_ptr< Config > & config)

Definition at line 56 of file Socket.hpp.

57 : config(config) {
58 }

References config.

◆ Socket() [3/4]

template<typename ConfigT>
core::socket::Socket< ConfigT >::Socket ( const Socket< ConfigT > & )
protecteddefault

◆ Socket() [4/4]

template<typename ConfigT>
core::socket::Socket< ConfigT >::Socket ( Socket< ConfigT > && )
deletenoexcept

◆ ~Socket()

template<typename Config>
core::socket::Socket< Config >::~Socket ( )
virtual

Definition at line 61 of file Socket.hpp.

61 {
62 }

Member Function Documentation

◆ getConfig()

template<typename Config>
Config & core::socket::Socket< Config >::getConfig ( ) const

Definition at line 65 of file Socket.hpp.

65 {
66 return *config;
67 }

References config.

Referenced by tls::getClient(), legacy::getLegacyClient(), main(), express::legacy::in6::Server(), express::legacy::in::Server(), express::legacy::rc::Server(), express::legacy::un::Server(), express::tls::in6::Server(), express::tls::in::Server(), express::tls::rc::Server(), and express::tls::un::Server().

Here is the caller graph for this function:

◆ operator=() [1/2]

template<typename ConfigT>
Socket & core::socket::Socket< ConfigT >::operator= ( const Socket< ConfigT > & )
protecteddefault

◆ operator=() [2/2]

template<typename ConfigT>
Socket & core::socket::Socket< ConfigT >::operator= ( Socket< ConfigT > && )
deletenoexcept

Member Data Documentation

◆ config

template<typename ConfigT>
std::shared_ptr<Config> core::socket::Socket< ConfigT >::config
protected

Definition at line 75 of file Socket.h.

Referenced by getConfig(), Socket(), and Socket().


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