TSDuck v3.45-4725
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::ReactiveServerFactoryInterface Class Referenceabstract

This interface creates server-side client sessions used by ReactiveServer. More...

#include <tsReactiveServerFactoryInterface.h>

Public Member Functions

virtual ReactiveServerSessionInterfacenewClientSession ()=0
 Create a new ReactiveServerSessionInterface.
 

Detailed Description

This interface creates server-side client sessions used by ReactiveServer.

Each time a new incoming client is accepted by a ReactiveServer, the server uses an instance of ReactiveServerFactoryInterface to create the object which drives the session.

Each new instance of the ReactiveServerSessionInterface must be allocated using the "new" operator. The ownership of the allocated object is transfered to the ReactiveServer. The object will be automatically deleted by the ReactiveServer when the session is closed. The method handleTCPClosed() on the closed session is the last time the ReactiveServerSessionInterface object can be used. All additional cleanup must be done in its virtual destructor.

Member Function Documentation

◆ newClientSession()

virtual ReactiveServerSessionInterface * ts::ReactiveServerFactoryInterface::newClientSession ( )
pure virtual

Create a new ReactiveServerSessionInterface.

Returns
Pointer to a new instance of ReactiveServerSessionInterface. The ownership of the allocated object is transfered to the server. The object will be automatically deleted by the ReactiveServer.

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