![]() |
TSDuck v3.45-4725
MPEG Transport Stream Toolkit
|
This interface creates server-side client sessions used by ReactiveServer. More...
#include <tsReactiveServerFactoryInterface.h>
Public Member Functions | |
| virtual ReactiveServerSessionInterface * | newClientSession ()=0 |
| Create a new ReactiveServerSessionInterface. | |
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.
|
pure virtual |
Create a new ReactiveServerSessionInterface.