SNode.C
|
#include <SocketConnection.h>
Public Types | |
using | SocketAddress = typename Super::SocketAddress |
Public Member Functions | |
SocketConnection (const std::string &instanceName, PhysicalSocket &&physicalSocket, const std::function< void(SocketConnection *)> &onDisconnect, const std::string &configuredServer, const SocketAddress &localAddress, const SocketAddress &remoteAddress, const utils::Timeval &readTimeout, const utils::Timeval &writeTimeout, std::size_t readBlockSize, std::size_t writeBlockSize, const utils::Timeval &terminateTimeout) | |
SSL * | getSSL () const |
Private Types | |
using | Super |
using | PhysicalSocket = PhysicalSocketT |
using | SocketReader = typename Super::SocketReader |
using | SocketWriter = typename Super::SocketWriter |
Private Member Functions | |
SSL * | startSSL (int fd, SSL_CTX *ctx, const utils::Timeval &sslInitTimeout, const utils::Timeval &sslShutdownTimeout, bool closeNotifyIsEOF) |
void | stopSSL () |
bool | doSSLHandshake (const std::function< void()> &onSuccess, const std::function< void()> &onTimeout, const std::function< void(int)> &onStatus) final |
void | doSSLShutdown () |
void | onReadShutdown () final |
void | doWriteShutdown (const std::function< void()> &onShutdown) final |
Private Attributes | |
SSL * | ssl = nullptr |
utils::Timeval | sslInitTimeout |
utils::Timeval | sslShutdownTimeout |
Friends | |
template<typename PhysicalSocket , typename Config > | |
class | SocketAcceptor |
template<typename PhysicalSocket , typename Config > | |
class | SocketConnector |
Definition at line 27 of file SocketAcceptor.h.
|
private |
Definition at line 48 of file SocketConnection.h.
using core::socket::stream::tls::SocketConnection< PhysicalSocketT >::SocketAddress = typename Super::SocketAddress |
Definition at line 53 of file SocketConnection.h.
|
private |
Definition at line 49 of file SocketConnection.h.
|
private |
Definition at line 50 of file SocketConnection.h.
|
private |
Definition at line 45 of file SocketConnection.h.
core::socket::stream::tls::SocketConnection< PhysicalSocket >::SocketConnection | ( | const std::string & | instanceName, |
PhysicalSocket && | physicalSocket, | ||
const std::function< void(SocketConnection< PhysicalSocketT > *)> & | onDisconnect, | ||
const std::string & | configuredServer, | ||
const SocketAddress & | localAddress, | ||
const SocketAddress & | remoteAddress, | ||
const utils::Timeval & | readTimeout, | ||
const utils::Timeval & | writeTimeout, | ||
std::size_t | readBlockSize, | ||
std::size_t | writeBlockSize, | ||
const utils::Timeval & | terminateTimeout ) |
Definition at line 39 of file SocketConnection.hpp.
References core::socket::stream::tls::SocketConnection< PhysicalSocketT >::SocketConnection().
Referenced by core::socket::stream::tls::SocketConnection< PhysicalSocketT >::SocketConnection().
|
finalprivate |
Definition at line 109 of file SocketConnection.hpp.
References core::socket::stream::tls::SocketConnection< PhysicalSocketT >::ssl.
|
private |
Definition at line 140 of file SocketConnection.hpp.
Referenced by core::socket::stream::tls::SocketConnection< PhysicalSocketT >::doWriteShutdown(), and core::socket::stream::tls::SocketConnection< PhysicalSocketT >::onReadShutdown().
|
finalprivate |
Definition at line 224 of file SocketConnection.hpp.
References core::socket::stream::tls::SocketConnection< PhysicalSocketT >::doSSLShutdown(), and core::socket::stream::tls::SocketConnection< PhysicalSocketT >::ssl.
SSL * core::socket::stream::tls::SocketConnection< PhysicalSocket >::getSSL | ( | ) | const |
Definition at line 67 of file SocketConnection.hpp.
References core::socket::stream::tls::SocketConnection< PhysicalSocketT >::ssl.
|
finalprivate |
Definition at line 204 of file SocketConnection.hpp.
References core::socket::stream::tls::SocketConnection< PhysicalSocketT >::doSSLShutdown(), and core::socket::stream::tls::SocketConnection< PhysicalSocketT >::ssl.
|
private |
Definition at line 72 of file SocketConnection.hpp.
References core::socket::stream::tls::SocketConnection< PhysicalSocketT >::ssl.
|
private |
Definition at line 98 of file SocketConnection.hpp.
References core::socket::stream::tls::SocketConnection< PhysicalSocketT >::ssl.
|
friend |
Definition at line 91 of file SocketConnection.h.
|
friend |
Definition at line 94 of file SocketConnection.h.
|
private |
Definition at line 85 of file SocketConnection.h.
Referenced by core::socket::stream::tls::SocketConnection< PhysicalSocketT >::doSSLHandshake(), core::socket::stream::tls::SocketConnection< PhysicalSocketT >::doWriteShutdown(), core::socket::stream::tls::SocketConnection< PhysicalSocketT >::getSSL(), core::socket::stream::tls::SocketConnection< PhysicalSocketT >::onReadShutdown(), core::socket::stream::tls::SocketConnection< PhysicalSocketT >::startSSL(), and core::socket::stream::tls::SocketConnection< PhysicalSocketT >::stopSSL().
|
private |
Definition at line 87 of file SocketConnection.h.
|
private |
Definition at line 88 of file SocketConnection.h.