Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::RWebWindow::WebConn Struct Reference

Definition at line 69 of file RWebWindow.hxx.

Public Member Functions

 WebConn ()=default
 
 WebConn (unsigned connid)
 
 WebConn (unsigned connid, bool headless_mode, const std::string &key)
 
 WebConn (unsigned connid, unsigned wsid)
 
 ~WebConn ()
 Destructor for WebConn Notify special HTTP request which blocks headless browser from exit.
 
void ResetData ()
 
void ResetStamps ()
 

Public Attributes

bool fActive {false}
 ! flag indicates if connection is active
 
int fClientCredits {0}
 ! number of credits received from client
 
unsigned fConnId {0}
 ! connection id (unique inside the window)
 
std::unique_ptr< RWebDisplayHandlefDisplayHandle
 ! handle assigned with started web display (when exists)
 
bool fDoingSend {false}
 ! true when performing send operation
 
std::map< int, std::shared_ptr< RWebWindow > > fEmbed
 ! map of embed window for that connection, key value is channel id
 
bool fHeadlessMode {false}
 ! indicate if connection represent batch job
 
std::shared_ptr< THttpCallArgfHold
 ! request used to hold headless browser
 
std::string fKey
 ! key value supplied to the window (when exists)
 
int fKeyUsed {0}
 ! key value used to verify connection
 
std::mutex fMutex
 ! mutex must be used to protect all following data
 
std::string fNewKey
 ! new key if connection request reload
 
std::queue< QueueItemfQueue
 ! output queue
 
int fReady {0}
 ! 0 - not ready, 1..9 - interim, 10 - done
 
int fRecvCount {0}
 ! number of received packets, should return back with next sending
 
unsigned long fRecvSeq {0}
 ! sequence id of last received packet
 
timestamp_t fRecvStamp
 ! last receive operation, protected with connection mutex
 
int fSendCredits {0}
 ! how many send operation can be performed without confirmation from other side
 
unsigned long fSendSeq {1}
 ! sequence id of last send packet
 
timestamp_t fSendStamp
 ! last server operation, always used from window thread
 
unsigned fWSId {0}
 ! websocket id
 

Constructor & Destructor Documentation

◆ WebConn() [1/4]

ROOT::RWebWindow::WebConn::WebConn ( )
default

◆ WebConn() [2/4]

ROOT::RWebWindow::WebConn::WebConn ( unsigned  connid)
inline

Definition at line 92 of file RWebWindow.hxx.

◆ WebConn() [3/4]

ROOT::RWebWindow::WebConn::WebConn ( unsigned  connid,
unsigned  wsid 
)
inline

Definition at line 93 of file RWebWindow.hxx.

◆ WebConn() [4/4]

ROOT::RWebWindow::WebConn::WebConn ( unsigned  connid,
bool  headless_mode,
const std::string &  key 
)
inline

Definition at line 94 of file RWebWindow.hxx.

◆ ~WebConn()

RWebWindow::WebConn::~WebConn ( )

Destructor for WebConn Notify special HTTP request which blocks headless browser from exit.

Definition at line 42 of file RWebWindow.cxx.

Member Function Documentation

◆ ResetData()

void ROOT::RWebWindow::WebConn::ResetData ( )
inline

Definition at line 103 of file RWebWindow.hxx.

◆ ResetStamps()

void ROOT::RWebWindow::WebConn::ResetStamps ( )
inline

Definition at line 101 of file RWebWindow.hxx.

Member Data Documentation

◆ fActive

bool ROOT::RWebWindow::WebConn::fActive {false}

! flag indicates if connection is active

Definition at line 78 of file RWebWindow.hxx.

◆ fClientCredits

int ROOT::RWebWindow::WebConn::fClientCredits {0}

! number of credits received from client

Definition at line 85 of file RWebWindow.hxx.

◆ fConnId

unsigned ROOT::RWebWindow::WebConn::fConnId {0}

! connection id (unique inside the window)

Definition at line 70 of file RWebWindow.hxx.

◆ fDisplayHandle

std::unique_ptr<RWebDisplayHandle> ROOT::RWebWindow::WebConn::fDisplayHandle

! handle assigned with started web display (when exists)

Definition at line 75 of file RWebWindow.hxx.

◆ fDoingSend

bool ROOT::RWebWindow::WebConn::fDoingSend {false}

! true when performing send operation

Definition at line 86 of file RWebWindow.hxx.

◆ fEmbed

std::map<int,std::shared_ptr<RWebWindow> > ROOT::RWebWindow::WebConn::fEmbed

! map of embed window for that connection, key value is channel id

Definition at line 90 of file RWebWindow.hxx.

◆ fHeadlessMode

bool ROOT::RWebWindow::WebConn::fHeadlessMode {false}

! indicate if connection represent batch job

Definition at line 71 of file RWebWindow.hxx.

◆ fHold

std::shared_ptr<THttpCallArg> ROOT::RWebWindow::WebConn::fHold

! request used to hold headless browser

Definition at line 76 of file RWebWindow.hxx.

◆ fKey

std::string ROOT::RWebWindow::WebConn::fKey

! key value supplied to the window (when exists)

Definition at line 72 of file RWebWindow.hxx.

◆ fKeyUsed

int ROOT::RWebWindow::WebConn::fKeyUsed {0}

! key value used to verify connection

Definition at line 73 of file RWebWindow.hxx.

◆ fMutex

std::mutex ROOT::RWebWindow::WebConn::fMutex
mutable

! mutex must be used to protect all following data

Definition at line 81 of file RWebWindow.hxx.

◆ fNewKey

std::string ROOT::RWebWindow::WebConn::fNewKey

! new key if connection request reload

Definition at line 74 of file RWebWindow.hxx.

◆ fQueue

std::queue<QueueItem> ROOT::RWebWindow::WebConn::fQueue

! output queue

Definition at line 89 of file RWebWindow.hxx.

◆ fReady

int ROOT::RWebWindow::WebConn::fReady {0}

! 0 - not ready, 1..9 - interim, 10 - done

Definition at line 80 of file RWebWindow.hxx.

◆ fRecvCount

int ROOT::RWebWindow::WebConn::fRecvCount {0}

! number of received packets, should return back with next sending

Definition at line 83 of file RWebWindow.hxx.

◆ fRecvSeq

unsigned long ROOT::RWebWindow::WebConn::fRecvSeq {0}

! sequence id of last received packet

Definition at line 87 of file RWebWindow.hxx.

◆ fRecvStamp

timestamp_t ROOT::RWebWindow::WebConn::fRecvStamp

! last receive operation, protected with connection mutex

Definition at line 82 of file RWebWindow.hxx.

◆ fSendCredits

int ROOT::RWebWindow::WebConn::fSendCredits {0}

! how many send operation can be performed without confirmation from other side

Definition at line 84 of file RWebWindow.hxx.

◆ fSendSeq

unsigned long ROOT::RWebWindow::WebConn::fSendSeq {1}

! sequence id of last send packet

Definition at line 88 of file RWebWindow.hxx.

◆ fSendStamp

timestamp_t ROOT::RWebWindow::WebConn::fSendStamp

! last server operation, always used from window thread

Definition at line 77 of file RWebWindow.hxx.

◆ fWSId

unsigned ROOT::RWebWindow::WebConn::fWSId {0}

! websocket id

Definition at line 79 of file RWebWindow.hxx.

Collaboration diagram for ROOT::RWebWindow::WebConn:
[legend]

The documentation for this struct was generated from the following files: