GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Server task. More...
#include <TGo4ServerTask.h>
Public Types | |
enum | ELaunchmodes { kSecureShell = BIT(0) , kGuiEmbed = BIT(1) } |
![]() | |
enum | { fguTEXTLENGTH = 256 } |
Default textlength for char arrays. More... | |
Public Member Functions | |
TGo4ServerTask (const char *name, UInt_t negotiationport=0, Bool_t blockingmode=kFALSE, Bool_t standalone=kFALSE, Bool_t autostart=kTRUE, Bool_t autocreate=kTRUE, Bool_t ismaster=kTRUE) | |
virtual | ~TGo4ServerTask () |
Bool_t | ConnectorThreadIsStopped () |
Returns the waiting state fbIsWaiting of the Connector Thread;. | |
TGo4BufferQueue * | GetCommandQueue (const char *task=nullptr) override |
const char * | GetConnectHost () const |
const char * | GetConnectorName () const |
TGo4Socket * | GetConnectTransport () |
TGo4TaskHandler * | GetCurrentTaskHandler () |
Get task handler of the currently activated client connection. | |
TGo4BufferQueue * | GetDataQueue (const char *task=nullptr) override |
TGo4BufferQueue * | GetStatusQueue (const char *task=nullptr) override |
TGo4TaskHandler * | GetTaskHandler () override |
Get task handler for client specified by name. | |
TGo4TaskHandler * | GetTaskHandler (const char *name) |
Get task handler for client specified by name. | |
TGo4TaskManager * | GetTaskManager () |
TGo4Command * | NextCommand () override |
Delivers next command. | |
void | Quit () override |
Quit method used by quit command; may be overridden in special application. | |
virtual Int_t | RemoveAllClients (Bool_t force=false) |
Remove all connected client task from this server. | |
virtual Bool_t | RemoveClient (const char *name, Bool_t clientwait=kTRUE, Bool_t isterminating=kFALSE) |
Remove the client task specified by name from this server. | |
Bool_t | RemoveCurrentClient () |
removes the currently active client from server (disconnect) | |
void | SendStatus (TGo4Status *stat, const char *receiver=nullptr) override |
Send status object via status channel to the master. | |
void | SendStatusBuffer () override |
Send internal status buffer to the master(s). | |
void | SetConnect (TGo4Socket *trans, const char *host, UInt_t port, Bool_t keepserv=kFALSE) |
void | SetCurrentTask (const char *name) |
sets current client task (i.e. | |
void | SetDisConnect (TGo4Socket *trans) |
void | Shutdown () |
Fast Quit() without waiting for proper disconnection. | |
virtual Bool_t | StartConnectorThread () |
starts the thread that listens to the connector port for a client negotiation request; used after launching an rsh client from server | |
virtual Bool_t | StopConnectorThread () |
stops the thread that listens to the connector port for a client negotiation request; used before launching an rsh client from server. | |
virtual Int_t | TimerConnect () |
this method is used by the connectortimer Notify to connect or disconnect a transportchannel (TSocket) on demand; the connection process itself is handled by the connector runnable which uses services of the TaskManager class | |
Int_t | WaitForClose () |
Int_t | WaitForConnection () |
Int_t | WaitForOpen () |
![]() | |
TGo4Task (const char *name, Bool_t blockingmode, Bool_t autostart=kFALSE, Bool_t autocreate=kTRUE, Bool_t ismaster=kFALSE) | |
virtual | ~TGo4Task () |
void | AddUserCommand (TGo4Command *com) |
Add a user command object to the existing command list. | |
void | AddUserCommandList (TGo4CommandProtoList *comlist) |
Add a user command list to the existing command list. | |
virtual TGo4TaskStatus * | CreateStatus () |
create a status object with information on the current (slave) task. | |
virtual void | ExecuteString (const char *command) |
Execute string command. | |
TBuffer * | GetAbortBuffer () |
Use preallocated abort buffer to stop remote socket wait from taskhandler itself. | |
const char * | GetCommanderName () const |
TGo4Master * | GetMaster () const |
TGo4Slave * | GetSlave () const |
virtual void | GetStatus () |
Send current status information of the task to the master; may be re-implemented by application subclass of TGo4Task. | |
TMutex * | GetStatusBufferMutex () |
Access to the mutex of status buffer. | |
Int_t | Initialization () override |
Overrides the ThreadManager Initialization; is used to setup the client connections on demand; checks for fbConnectRequest flag. | |
Bool_t | IsMaster () const |
Bool_t | IsWorkStopped () const |
virtual void | KillMain () |
Kill the main thread; method to be called from command, should be overridden in user implementation. | |
TGo4Command * | MakeCommand (const char *name) |
Method using internal command prototype list to produce a clone of the specified command. | |
TObject * | NextObject (Bool_t wait=kTRUE) |
Delivers next object from data queue. | |
TGo4Status * | NextStatus (Bool_t wait=kTRUE) |
Delivers next status object from status queue. | |
virtual void | RestartMain () |
Restart the main thread; method to be called from command, should be overridden in user implementation. | |
void | SendObject (TObject *obj, const char *receiver=nullptr) |
Send object via data channel to the master. | |
void | SendStatusMessage (Int_t level, Bool_t printout, const char *text,...) |
Send message string in a status object to the gui. | |
void | SendStopBuffers (const char *taskname=nullptr) |
Send message buffers with stop values into queues and via socket connections. | |
void | SetOwner (TGo4TaskOwner *owner) |
Set owner object and switch automatically in master or slave mode, depending on owner type. | |
virtual void | Start () |
General start method of client application to be called from remote command; should be re-implemented by application. | |
virtual Int_t | StartWorkThreads () |
start the working threads of the task implementation; this method is used after the current connection has changed, to continue reading/writing the queues. | |
virtual void | Stop () |
General stop method of client application to be called from remote command; should be re-implemented by application. | |
virtual Int_t | StopWorkThreads () |
stop the working threads of the task implementation; this method is used before the current connection is changed to prevent reading/writing and waiting for the wrong queues. | |
Bool_t | SubmitCommand (const char *name) |
send command specified by name to the current client task | |
Bool_t | SubmitCommand (TGo4Command *com) |
send given command to the current client task. | |
Bool_t | SubmitEmergencyCommand (Go4EmergencyCommand_t val) |
send emergency quit command to the current client task | |
Bool_t | SubmitEmergencyData (Go4EmergencyCommand_t val, const char *receiver=nullptr) |
Send emergency command via data channel. | |
Bool_t | SubmitLocalCommand (TGo4Command *com) |
Send given command to the current client task. | |
void | Terminate (Bool_t termapp=kTRUE) override |
deletes the Manager instance via Control timer. | |
void | TerminateFast () override |
Overwrites the Threadmanager TerminateFast to shutdown the objectserver properly. | |
void | UpdateStatusBuffer () |
Create status object and stream it into the status send buffer. | |
void | WakeCommandQueue (Int_t id=0) |
Put dummy object into command queue to wake up user threads which might wait for a command. | |
![]() | |
TGo4ThreadManager (const char *name, Bool_t blockingmode=kTRUE, Bool_t autostart=kTRUE, Bool_t autocreate=kTRUE) | |
Normal constructor. | |
TGo4ThreadManager (const TGo4ThreadManager &right) | |
virtual | ~TGo4ThreadManager () |
Bool_t | BlockApp () |
Blocks gSystem by means of the blocking timer. | |
TGo4ThreadHandler * | GetWorkHandler () const |
Access to ThreadHandler for working threads. | |
Bool_t | IsAppBlocking () const |
Returns true if threadmanager works in root system blocking mode. | |
Bool_t | IsBeingQuit () const |
Returns true if threadmanager works in root system blocking mode. | |
Bool_t | IsInitDone () const |
Bool_t | IsTerminateApp () const |
Bool_t | IsTerminating () const |
returns termination status of Threadmanager | |
void | Launch () |
This Method has to be called to create the startup threads and to turn on the application control timer. | |
void | SetBeingQuit (Bool_t on) |
void | SetTimer (TGo4AppControlTimer *ctrltimer) |
user can exchange the standard control timer by an own derived one by this method | |
Bool_t | UnBlockApp (Int_t mode=0) |
Wakes up the control timer waiting for his condition; parameter mode specifies whether timer will block again at next turn (mode = 0), timer will block when all threads are up (mode = 1), or timer will not block again unless the next Block call, i.e. | |
![]() | |
TGo4CommandReceiver () | |
virtual | ~TGo4CommandReceiver () |
Static Public Member Functions | |
static const char * | Get_fgcLAUNCHPREFSFILE () |
![]() | |
static Int_t | Get_fgiTERMID () |
Static Protected Attributes | |
static const char * | fgcLAUNCHPREFSFILE = "etc/Go4LaunchPrefs.txt" |
Name of the Preferences file for the client startup. | |
static const Int_t | fgiCLOSEWAITCYCLES =100 |
maximum cycles to wait until transport is closed | |
static const Int_t | fgiCONNECTWAITCYCLES =20 |
maximum cycles to wait until transport is connected | |
static const Int_t | fgiOPENWAITCYCLES =100 |
maximum cycles to wait until transport is open | |
static const UInt_t | fguCLOSEWAITCYCLETIME =100 |
time for each close wait cycle | |
static const UInt_t | fguCONNECTTIMERPERIOD =100 |
period of task connector timer | |
static const UInt_t | fguCONNECTWAITCYCLETIME =200 |
time for each connect wait cycle | |
static const UInt_t | fguOPENWAITCYCLETIME =100 |
time for each open wait cycle | |
Private Attributes | |
Bool_t | fbConnectIsClose {kFALSE} |
True if fxConnectTransport has returned from Close(), i.e. | |
Bool_t | fbConnectIsDone {kFALSE} |
True if fxConnectTransport has returned from Open(), i.e. | |
Bool_t | fbConnectIsOpen {kFALSE} |
True if fxConnectTransport waits in server Open() call. | |
Bool_t | fbConnectRequest {kFALSE} |
True if fxConnectTransport shall be Open() by AppControlTimer. | |
Bool_t | fbDisConnectRequest {kFALSE} |
True if fxConnectTransport shall be Close() by AppControlTimer. | |
Bool_t | fbKeepServerSocket {kFALSE} |
True if open in server mode shall keep the server socket instance. | |
UInt_t | fuConnectPort {0} |
port number for timer connect | |
TString | fxConnectHost |
hostname for timer connect | |
TString | fxConnectorName |
remember name of connector thread | |
TGo4TaskConnectorTimer * | fxConnectorTimer {nullptr} |
timer responsible for the connection/disconnection of clients; independent of application control timer aggregationByValue 1 | |
TGo4Socket * | fxConnectTransport {nullptr} |
link to the next TaskHandler transport instance that shall be connected by the Application Control Timer with the client | |
TGo4TaskHandler * | fxCurrentTaskHandler {nullptr} |
1 | |
TGo4Socket * | fxDisConnectTransport {nullptr} |
link to the next TaskHandler transport instance that shall be disconnected by the Application Control Timer with the client | |
TGo4TaskManager * | fxTaskManager {nullptr} |
aggregationByValue 1 | |
Additional Inherited Members | |
![]() | |
static const Long_t | fglTIMERPERIOD = 200 |
Period in ms for the application control timer. | |
![]() | |
virtual TGo4TaskHandlerCommandList * | CreateCommandList () |
factory method for command list; overridden by implementation | |
TGo4ObjectQueue * | GetLocalCommandQueue () |
TGo4TaskHandlerCommandList * | GetPrototype () |
get pointer to currently valid command list | |
void | SetMaster (Bool_t on=kTRUE) |
void | SetWorkIsStopped (Bool_t on) |
virtual void | UpdateStatus (TGo4TaskStatus *state) |
method needed by method CreateStatus of any status subclasses to set the values of the clienttask specific part of the status object. | |
![]() | |
TBuffer * | fxStatusBuffer {nullptr} |
Buffer containing the analysis status which is updated by the main thread. | |
TMutex * | fxStatusMutex {nullptr} |
Mutex protecting status buffer between main and watch thread. | |
![]() | |
Bool_t | fbAppBlocking {kFALSE} |
true if threadmanager shall block root gSystem using the AppControlTimer; false if gSystem shall never be blocked (necessary for gui) | |
Bool_t | fbAutoCreate {kFALSE} |
If true, TThreads of all go4threads in list shall be created automatically on calling Launch(). | |
Bool_t | fbAutoStart {kFALSE} |
If true, workfunctions (runnable Run()) of all go4threads in list shall be started automatically on Initialization. | |
Int_t | fbBeingQuit {0} |
Bool_t | fbInitDone {kFALSE} |
is set kTRUE after first Initialize is done | |
Bool_t | fbTerminateApplication {kFALSE} |
If true, terminate complete application. | |
Bool_t | fbTerminating {kFALSE} |
flag showing termination status | |
TGo4AppControlTimer * | fxBlocker {nullptr} |
Composition of Application control timer. | |
TGo4ThreadHandler * | fxWorkHandler {nullptr} |
Thread handler aggregate (threadsafe list of go4 threads) aggregationByValue 1 1. | |
Server task.
Definition at line 31 of file TGo4ServerTask.h.
Enumerator | |
---|---|
kSecureShell | |
kGuiEmbed |
Definition at line 264 of file TGo4ServerTask.h.
TGo4ServerTask::TGo4ServerTask | ( | const char * | name, |
UInt_t | negotiationport = 0, | ||
Bool_t | blockingmode = kFALSE, | ||
Bool_t | standalone = kFALSE, | ||
Bool_t | autostart = kTRUE, | ||
Bool_t | autocreate = kTRUE, | ||
Bool_t | ismaster = kTRUE ) |
Definition at line 48 of file TGo4ServerTask.cxx.
References TGo4Task::TGo4Task(), fbConnectIsClose, fbConnectIsDone, fbConnectIsOpen, fbConnectRequest, fbDisConnectRequest, fbKeepServerSocket, fguCONNECTTIMERPERIOD, fuConnectPort, fxConnectorName, fxConnectorTimer, fxConnectTransport, fxCurrentTaskHandler, fxDisConnectTransport, fxTaskManager, TGo4ThreadManager::fxWorkHandler, GetConnectorName(), TGo4CommandInvoker::Instance(), TGo4ThreadManager::Launch(), and TGo4CommandInvoker::Register().
Referenced by TGo4ExampleServer::TGo4ExampleServer().
|
virtual |
Definition at line 92 of file TGo4ServerTask.cxx.
References TGo4ThreadHandler::CancelAll(), fxConnectorTimer, fxTaskManager, TGo4ThreadManager::GetWorkHandler(), and TGo4CommandInvoker::UnRegister().
Bool_t TGo4ServerTask::ConnectorThreadIsStopped | ( | ) |
Returns the waiting state fbIsWaiting of the Connector Thread;.
Definition at line 548 of file TGo4ServerTask.cxx.
References GetConnectorName(), TGo4ThreadHandler::GetThread(), TGo4ThreadManager::GetWorkHandler(), and TGo4Thread::IsWaiting().
|
static |
Definition at line 599 of file TGo4ServerTask.cxx.
References fgcLAUNCHPREFSFILE.
Referenced by TGo4ServerProxy::GetLaunchString().
|
overridevirtual |
Reimplemented from TGo4Task.
Definition at line 430 of file TGo4ServerTask.cxx.
References TGo4TaskHandler::GetCommandQueue(), GetCurrentTaskHandler(), and GetTaskHandler().
|
inline |
Definition at line 126 of file TGo4ServerTask.h.
References fxConnectHost.
Referenced by TimerConnect().
|
inline |
Definition at line 124 of file TGo4ServerTask.h.
References fxConnectorName.
Referenced by TGo4ServerTask(), ConnectorThreadIsStopped(), StartConnectorThread(), and StopConnectorThread().
TGo4Socket * TGo4ServerTask::GetConnectTransport | ( | ) |
Definition at line 425 of file TGo4ServerTask.cxx.
References fxConnectTransport.
TGo4TaskHandler * TGo4ServerTask::GetCurrentTaskHandler | ( | ) |
Get task handler of the currently activated client connection.
Definition at line 254 of file TGo4ServerTask.cxx.
References fxCurrentTaskHandler.
Referenced by GetCommandQueue(), GetDataQueue(), GetStatusQueue(), GetTaskHandler(), TGo4TaskOwner::IsConnected(), RemoveClient(), and RemoveCurrentClient().
|
overridevirtual |
Reimplemented from TGo4Task.
Definition at line 456 of file TGo4ServerTask.cxx.
References GetCurrentTaskHandler(), TGo4TaskHandler::GetDataQueue(), and GetTaskHandler().
Referenced by TGo4ExampleServer::StopWorkThreads().
|
overridevirtual |
Reimplemented from TGo4Task.
Definition at line 443 of file TGo4ServerTask.cxx.
References GetCurrentTaskHandler(), TGo4TaskHandler::GetStatusQueue(), and GetTaskHandler().
Referenced by TGo4ExampleServer::StopWorkThreads().
|
overridevirtual |
Get task handler for client specified by name.
Reimplemented from TGo4Task.
Definition at line 249 of file TGo4ServerTask.cxx.
References GetCurrentTaskHandler().
Referenced by GetCommandQueue(), GetDataQueue(), GetStatusQueue(), and RemoveClient().
TGo4TaskHandler * TGo4ServerTask::GetTaskHandler | ( | const char * | name | ) |
Get task handler for client specified by name.
Definition at line 244 of file TGo4ServerTask.cxx.
References fxTaskManager.
TGo4TaskManager * TGo4ServerTask::GetTaskManager | ( | ) |
Definition at line 259 of file TGo4ServerTask.cxx.
References fxTaskManager.
Referenced by TGo4ConnectorRunnable::TGo4ConnectorRunnable(), TGo4AnalysisProxy::ConnectorPort(), TGo4TaskOwner::GetTaskManagerMutex(), and TGo4AnalysisProxy::LaunchAsClient().
|
overridevirtual |
Delivers next command.
This implementation will poll over command queues of all existing connections. Command is labeled with name of ordering task, so data may be returned to command sender only.
Reimplemented from TGo4Task.
Definition at line 469 of file TGo4ServerTask.cxx.
References fxTaskManager, TGo4Queue::IsEmpty(), TGo4Task::IsMaster(), TGo4Command::SetMode(), TGo4Command::SetTaskName(), TGo4LockGuard, and TGo4BufferQueue::WaitObjectFromBuffer().
|
overridevirtual |
Quit method used by quit command; may be overridden in special application.
Reimplemented from TGo4Task.
Definition at line 554 of file TGo4ServerTask.cxx.
References TGo4Log::Debug(), fxTaskManager, TGo4Task::Get_fgiTERMID(), TGo4Task::GetSlave(), TGo4Task::IsMaster(), RemoveAllClients(), TGo4Task::SendStatusMessage(), TGo4Task::Terminate(), and TGo4Task::WakeCommandQueue().
Referenced by TGo4ComServerQuit::ExeCom().
|
virtual |
Remove all connected client task from this server.
with option force=true, remove without waiting
Definition at line 171 of file TGo4ServerTask.cxx.
References fxTaskManager, and RemoveClient().
Referenced by Quit(), and Shutdown().
|
virtual |
Remove the client task specified by name from this server.
If clientwait=true, remove with client handshake. If isterminating=true, do not restart workthreads after removing the client.
Definition at line 100 of file TGo4ServerTask.cxx.
References TGo4Log::Debug(), fxTaskManager, GetCurrentTaskHandler(), GetTaskHandler(), TGo4Task::IsMaster(), kComQuit, TGo4Task::SendStopBuffers(), TGo4Task::StartWorkThreads(), TGo4Task::StopWorkThreads(), TGo4Task::SubmitEmergencyCommand(), and TGo4Task::SubmitEmergencyData().
Referenced by TGo4Master::DisconnectSlave(), TGo4ComRemoveClient::ExeCom(), RemoveAllClients(), and RemoveCurrentClient().
Bool_t TGo4ServerTask::RemoveCurrentClient | ( | ) |
removes the currently active client from server (disconnect)
Definition at line 192 of file TGo4ServerTask.cxx.
References TGo4Log::Debug(), GetCurrentTaskHandler(), and RemoveClient().
|
overridevirtual |
Send status object via status channel to the master.
Master name may be specified, if more than one master is connected. By default, object is send to all connected tasks
Reimplemented from TGo4Task.
Definition at line 493 of file TGo4ServerTask.cxx.
References TGo4Log::Debug(), fxTaskManager, TGo4Task::IsMaster(), TGo4Task::SendStatus(), and TGo4LockGuard.
|
overridevirtual |
Send internal status buffer to the master(s).
Reimplemented from TGo4Task.
Definition at line 513 of file TGo4ServerTask.cxx.
References TGo4BufferQueue::AddBuffer(), TGo4Log::Debug(), TGo4Task::fxStatusBuffer, TGo4Task::fxStatusMutex, fxTaskManager, TGo4Task::IsMaster(), and TGo4LockGuard.
void TGo4ServerTask::SetConnect | ( | TGo4Socket * | trans, |
const char * | host, | ||
UInt_t | port, | ||
Bool_t | keepserv = kFALSE ) |
Definition at line 264 of file TGo4ServerTask.cxx.
References fbConnectRequest, fbKeepServerSocket, fuConnectPort, fxConnectHost, and fxConnectTransport.
Referenced by TGo4TaskHandler::ConnectServerChannel().
void TGo4ServerTask::SetCurrentTask | ( | const char * | name | ) |
sets current client task (i.e.
taskhandler) by name
Definition at line 206 of file TGo4ServerTask.cxx.
References TGo4Log::Debug(), fxCurrentTaskHandler, fxTaskManager, TGo4Task::IsWorkStopped(), TGo4Task::StartWorkThreads(), and TGo4Task::StopWorkThreads().
void TGo4ServerTask::SetDisConnect | ( | TGo4Socket * | trans | ) |
Definition at line 273 of file TGo4ServerTask.cxx.
References fbDisConnectRequest, and fxDisConnectTransport.
void TGo4ServerTask::Shutdown | ( | ) |
Fast Quit() without waiting for proper disconnection.
For analysis server shutdown.
Definition at line 575 of file TGo4ServerTask.cxx.
References TGo4Log::Debug(), fguCONNECTTIMERPERIOD, fxTaskManager, TGo4Task::Get_fgiTERMID(), TGo4Task::GetSlave(), RemoveAllClients(), TGo4Task::SendStatusMessage(), TGo4Thread::Sleep(), TGo4Task::StopWorkThreads(), and TGo4Task::WakeCommandQueue().
|
virtual |
starts the thread that listens to the connector port for a client negotiation request; used after launching an rsh client from server
Definition at line 528 of file TGo4ServerTask.cxx.
References GetConnectorName(), TGo4ThreadManager::GetWorkHandler(), and TGo4ThreadHandler::Start().
Referenced by TGo4AnalysisProxy::LaunchAsClient().
|
virtual |
stops the thread that listens to the connector port for a client negotiation request; used before launching an rsh client from server.
A dummy connection is performed to release socket pending in listening state, thus runnable may wait afterwards, and no server socket is listening on spawning the client. Tests showed that any child process took over the listening server socket, which is not desired here and probably a bug of the system.
Definition at line 533 of file TGo4ServerTask.cxx.
References TGo4Socket::Close(), fxTaskManager, TGo4TaskHandler::Get_fgcERROR(), GetConnectorName(), TGo4ThreadManager::GetWorkHandler(), TGo4Socket::Open(), TGo4Socket::Send(), and TGo4ThreadHandler::Stop().
|
virtual |
this method is used by the connectortimer Notify to connect or disconnect a transportchannel (TSocket) on demand; the connection process itself is handled by the connector runnable which uses services of the TaskManager class
Definition at line 279 of file TGo4ServerTask.cxx.
References fbConnectIsClose, fbConnectIsDone, fbConnectIsOpen, fbConnectRequest, fbDisConnectRequest, fbKeepServerSocket, fuConnectPort, fxConnectTransport, fxDisConnectTransport, and GetConnectHost().
Int_t TGo4ServerTask::WaitForClose | ( | ) |
Definition at line 378 of file TGo4ServerTask.cxx.
References fbConnectIsClose, fgiCLOSEWAITCYCLES, fguCLOSEWAITCYCLETIME, and TGo4Thread::Sleep().
Int_t TGo4ServerTask::WaitForConnection | ( | ) |
Definition at line 398 of file TGo4ServerTask.cxx.
References fbConnectIsDone, fguCONNECTWAITCYCLETIME, TGo4ThreadManager::IsTerminating(), and TGo4Thread::Sleep().
Referenced by TGo4TaskHandler::ConnectServerChannel().
Int_t TGo4ServerTask::WaitForOpen | ( | ) |
Definition at line 356 of file TGo4ServerTask.cxx.
References fbConnectIsOpen, fgiOPENWAITCYCLES, fguOPENWAITCYCLETIME, and TGo4Thread::Sleep().
Referenced by TGo4TaskHandler::ConnectServerChannel().
|
private |
True if fxConnectTransport has returned from Close(), i.e.
connection was established
Definition at line 254 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), TimerConnect(), and WaitForClose().
|
private |
True if fxConnectTransport has returned from Open(), i.e.
connection was established
Definition at line 248 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), TimerConnect(), and WaitForConnection().
|
private |
True if fxConnectTransport waits in server Open() call.
Definition at line 242 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), TimerConnect(), and WaitForOpen().
|
private |
True if fxConnectTransport shall be Open() by AppControlTimer.
Definition at line 232 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), SetConnect(), and TimerConnect().
|
private |
True if fxConnectTransport shall be Close() by AppControlTimer.
Definition at line 237 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), SetDisConnect(), and TimerConnect().
|
private |
True if open in server mode shall keep the server socket instance.
Definition at line 227 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), SetConnect(), and TimerConnect().
|
staticprotected |
Name of the Preferences file for the client startup.
Definition at line 186 of file TGo4ServerTask.h.
Referenced by Get_fgcLAUNCHPREFSFILE().
|
staticprotected |
maximum cycles to wait until transport is closed
Definition at line 171 of file TGo4ServerTask.h.
Referenced by WaitForClose().
|
staticprotected |
maximum cycles to wait until transport is connected
Definition at line 177 of file TGo4ServerTask.h.
|
staticprotected |
maximum cycles to wait until transport is open
Definition at line 165 of file TGo4ServerTask.h.
Referenced by WaitForOpen().
|
staticprotected |
time for each close wait cycle
Definition at line 174 of file TGo4ServerTask.h.
Referenced by WaitForClose().
|
staticprotected |
period of task connector timer
Definition at line 183 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), and Shutdown().
|
staticprotected |
time for each connect wait cycle
Definition at line 180 of file TGo4ServerTask.h.
Referenced by WaitForConnection().
|
staticprotected |
time for each open wait cycle
Definition at line 168 of file TGo4ServerTask.h.
Referenced by WaitForOpen().
|
private |
port number for timer connect
Definition at line 222 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), SetConnect(), and TimerConnect().
|
private |
hostname for timer connect
Definition at line 217 of file TGo4ServerTask.h.
Referenced by GetConnectHost(), and SetConnect().
|
private |
remember name of connector thread
Definition at line 193 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), and GetConnectorName().
|
private |
timer responsible for the connection/disconnection of clients; independent of application control timer aggregationByValue 1
Definition at line 261 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), and ~TGo4ServerTask().
|
private |
link to the next TaskHandler transport instance that shall be connected by the Application Control Timer with the client
Definition at line 206 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), GetConnectTransport(), SetConnect(), and TimerConnect().
|
private |
1
Definition at line 200 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), GetCurrentTaskHandler(), and SetCurrentTask().
|
private |
link to the next TaskHandler transport instance that shall be disconnected by the Application Control Timer with the client
Definition at line 212 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), SetDisConnect(), and TimerConnect().
|
private |
aggregationByValue 1
Definition at line 197 of file TGo4ServerTask.h.
Referenced by TGo4ServerTask(), ~TGo4ServerTask(), GetTaskHandler(), GetTaskManager(), NextCommand(), Quit(), RemoveAllClients(), RemoveClient(), SendStatus(), SendStatusBuffer(), SetCurrentTask(), Shutdown(), and StopConnectorThread().