sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::WSSSLConnection Class Reference

#include <WSConnection.h>

Inheritance diagram for sptk::WSSSLConnection:
sptk::WSConnection sptk::ServerConnection sptk::Runable

Public Member Functions

 WSSSLConnection (TCPServer &server, SOCKET connectionSocket, const sockaddr_in *addr, WSServices &services, LogEngine &logEngine, const Options &options)
 
 ~WSSSLConnection () override=default
 
- Public Member Functions inherited from sptk::WSConnection
 WSConnection (TCPServer &server, SOCKET connectionSocket, const sockaddr_in *connectionAddress, WSServices &services, LogEngine &logEngine, const Options &options)
 
 ~WSConnection () override=default
 
void run () override
 
- Public Member Functions inherited from sptk::ServerConnection
 ServerConnection (TCPServer &server, SOCKET connectionSocket, Type type, const sockaddr_in *connectionAddress, const String &taskName, const ServerConnection::Function &connectionFunction={})
 
TCPSocketsocket () const
 
TCPServerserver () const
 
String address () const
 
size_t serial () const
 
- Public Member Functions inherited from sptk::Runable
 Runable (const String &name)
 
virtual ~Runable ()=default
 
void execute ()
 
virtual void terminate ()
 
bool terminated () const
 
String name () const
 

Additional Inherited Members

- Public Types inherited from sptk::ServerConnection
enum class  Type { TCP , SSL }
 
using Function = std::function< void(const Runable &task, TCPSocket &socket, const String &address)>
 
- Protected Member Functions inherited from sptk::ServerConnection
void setSocket (const STCPSocket &socket)
 
void parseAddress (const sockaddr_in *connectionAddress)
 
void run () override
 
virtual void run ()=0
 

Detailed Description

WS server connection

Constructor & Destructor Documentation

◆ WSSSLConnection()

sptk::WSSSLConnection::WSSSLConnection ( TCPServer server,
SOCKET  connectionSocket,
const sockaddr_in *  addr,
WSServices services,
LogEngine logEngine,
const Options options 
)

Constructor

Parameters
serverTCP server
connectionSocketIncoming connection socket, accepted by accept() function
addrIncoming connection info
servicesRegistered services to process incoming connection
logEngineLog engine
optionsConnection options

◆ ~WSSSLConnection()

sptk::WSSSLConnection::~WSSSLConnection ( )
overridedefault

Destructor


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

Fri Oct 14 2022 09:58:48: SPTK 5.4.1