sptk2 logo
SPTK Home Page
Classes | Public Member Functions | List of all members
sptk::WSConnection Class Reference
Inheritance diagram for sptk::WSConnection:
sptk::ServerConnection sptk::Runable sptk::WSSSLConnection

Classes

struct  Options
 
class  Paths
 

Public Member Functions

 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
 

Constructor & Destructor Documentation

◆ WSConnection()

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

Constructor

Parameters
serverServer object
connectionSocketIncoming connection socket
serviceWeb service object
logEngineLogger engine
optionsConnection options

◆ ~WSConnection()

sptk::WSConnection::~WSConnection ( )
overridedefault

Destructor

Member Function Documentation

◆ run()

void sptk::WSConnection::run ( )
overridevirtual

Thread function

Reimplemented from sptk::ServerConnection.


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

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