14#ifndef TGO4TASKMANAGER_H
15#define TGO4TASKMANAGER_H
Go4CommandMode_t
These values define command execution rights.
This class is responsible for the interconnection of two tasks: provided are three communication chan...
TGo4TaskHandler * NextTaskHandler(Bool_t reset=kFALSE)
For iteration over all connected task handlers.
TGo4TaskHandler * NewTaskHandler(const char *name)
creates new task handler with given name and adds it into array
TGo4TaskManager(const char *name, TGo4ServerTask *server, UInt_t negotiationport=0, Bool_t createconnector=kTRUE)
TGo4TaskManager(const TGo4TaskManager &right)
TIterator * fxTaskIter
Iterator over list of tasks.
UInt_t GetTaskCount() const
Number of entries in taskhandler list, i.e.
Go4CommandMode_t ClientLogin()
Check account and password of the client that requests a connection to this server.
TGo4TaskHandler * GetLastTaskHandler()
returns last task handler in list
UInt_t fuNegotiationPort
port number for the server client negotiation connections
Bool_t AddClient(const char *client, const char *host, Go4CommandMode_t role)
adds client task of name to manager: create server task handler and try to connect to client Command ...
Bool_t RemoveTaskHandler(const char *name)
removes task handler from array by name
UInt_t GetNegotiationPort()
returns the portnumber for client server negotiation port which is actually used by the running taskm...
Bool_t AddTaskHandler(TGo4TaskHandler *han)
adds external task handler to array
Int_t ServeClient()
used by connector runnable to wait for a client connect/disonnect request
TGo4TaskHandler * GetTaskHandler(const char *name)
returns certain task handler by name
TGo4ServerTask * fxServer
Bool_t fbHasControllerConnection
True if this server already has one connection to a master client that has the controller role.
static const Int_t fgiDISCONCYCLES
cycles to wait for client disconnection
Int_t WaitForClientRemoved()
Bool_t HasControllerTask()
static const UInt_t fguDISCONTIME
time for each disonnection wait cycle
Bool_t fbClientIsRemoved
True if the last specified client is removed from server.
virtual ~TGo4TaskManager()
Int_t ConnectClient(const char *client, const char *host, Go4CommandMode_t role=kGo4ComModeController)
used by connector runnable to wait for a client request to connect to this server task.
Int_t DisConnectClient(const char *name, Bool_t clientwait=kTRUE)
disonnect an existing client by name, wait for negotiation OK if clientwait is true