14#ifndef TGO4CLIENTTASK_H
15#define TGO4CLIENTTASK_H
39 const char *serverhost =
"localhost",
40 UInt_t negotiationport = 0,
41 Bool_t blockingmode = kTRUE,
42 Bool_t standalone = kFALSE,
43 Bool_t autostart = kFALSE,
44 Bool_t autocreate = kTRUE,
45 Bool_t ismaster = kFALSE,
46 Bool_t autoconnect = kTRUE);
91 const char *passwd =
nullptr);
Go4CommandMode_t
These values define command execution rights.
Class containing a pointer queue for TBuffers.
This class controls a client application running in a task which is controlled by another server task...
virtual ~TGo4ClientTask()
Bool_t IsConnected() const
TGo4ClientTask(const char *name, const char *serverhost="localhost", UInt_t negotiationport=0, Bool_t blockingmode=kTRUE, Bool_t standalone=kFALSE, Bool_t autostart=kFALSE, Bool_t autocreate=kTRUE, Bool_t ismaster=kFALSE, Bool_t autoconnect=kTRUE)
TGo4BufferQueue * fxStatusQ
void UpdateStatus(TGo4TaskStatus *state) override
method needed by method CreateStatus of any status subclasses to set the values of the clienttask spe...
TGo4TaskHandler * fxTaskHandler
aggregationByValue
TGo4BufferQueue * GetStatusQueue(const char *task=nullptr) override
Int_t Initialization() override
override the ThreadManager Initialization used by AppControlTimer to let this thing initialize the cl...
TGo4BufferQueue * GetDataQueue(const char *task=nullptr) override
const char * GetServerHostName() const
TGo4BufferQueue * fxDataQ
Bool_t fbAutoConnect
!True if client task shall try to connect automatically at Initialization.
Bool_t ConnectServer(const char *node, UInt_t negport, Go4CommandMode_t role=kGo4ComModeRefused, const char *passwd=nullptr)
Connect this client to a waiting server task on node with negotiation channel negport.
TGo4BufferQueue * fxCommandQ
void AddLocalCommand(TGo4Command *com)
Put command into the command queue for local execution in main thread.
Bool_t fbServerConnected
true if connection to server is established, otherwise false
TGo4TaskStatus * CreateStatus() override
create a status object with information on the current client state.
Bool_t DisconnectServer(Bool_t isterminating=kFALSE)
Disconnect the current server task, but do not terminate the client.
TGo4BufferQueue * GetCommandQueue(const char *task=nullptr) override
TGo4TaskHandler * GetTaskHandler() override
void Quit() override
Quit the client; method to be called from command object, may be overridden in user implementation.
TString fxServerHostname
hostname of server machine
This is the Go4 Abstract Command Class; part of the Base command pattern.
This class is responsible for the interconnection of two tasks: provided are three communication chan...
TGo4Task(const char *name, Bool_t blockingmode, Bool_t autostart=kFALSE, Bool_t autocreate=kTRUE, Bool_t ismaster=kFALSE)