2
3
4
5
7#ifndef APPS_TLSLEGACY_TLSLEGACYSOCKETCONTEXT_H
8#define APPS_TLSLEGACY_TLSLEGACYSOCKETCONTEXT_H
10#include "core/socket/stream/SocketContext.h"
11#include "core/socket/stream/SocketContextFactory.h"
12#include "core/timer/Timer.h"
14namespace core::socket::
stream {
core::socket::stream::SocketContext * create(core::socket::stream::SocketConnection *socketConnection) override
core::socket::stream::SocketContext * create(core::socket::stream::SocketConnection *socketConnection) override
std::string inboundBuffer
void onClientLine(const std::string &line)
std::size_t onReceivedFromPeer() override
void onConnected() override
void onServerLine(const std::string &line)
bool onSignal(int signum) override
void onDisconnected() override
void startLegacyRetryTimer(const std::string &payload)
TlsLegacySocketContext(core::socket::stream::SocketConnection *socketConnection, Role role)
core::timer::Timer legacyRetryTimer
static void init(int argc, char *argv[])
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
Config * getConfig() const
bool operator==(const int &state) const
static constexpr int ERROR
const SocketClient & connect(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
LogMessage(Level level, int verboseLevel=-1, bool withErrno=false)
const std::string & getInstanceName() const
ConfigTls * setNoCloseNotifyIsEOF(bool noCloseNotifyIsEOF=true)
ConfigTls * setCertKey(const std::string &certKey)
ConfigTls * setCaCert(const std::string &caCert)
ConfigTls * setCert(const std::string &cert)
ConfigTls * setCaCertAcceptUnknown(bool set=true)
ConfigTls * setCertKeyPassword(const std::string &certKeyPassword)
std::string toString(bool expanded=true) const override
int main(int argc, char *argv[])
net::in::stream::SocketClient< core::socket::stream::tls::SocketConnector, net::in::stream::tls::config::ConfigSocketClient, SocketContextFactoryT, Args... > SocketClient