GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGo4ConnectorRunnable Class Reference

#include <TGo4ConnectorRunnable.h>

+ Inheritance diagram for TGo4ConnectorRunnable:

Public Member Functions

 TGo4ConnectorRunnable (const char *name, TGo4ServerTask *man)
 
virtual ~TGo4ConnectorRunnable ()
 
Int_t Run (void *ptr) override
 
- Public Member Functions inherited from TGo4Runnable
 TGo4Runnable (const TGo4Runnable &right)
 
 TGo4Runnable (const char *name, TGo4ThreadManager *man)
 
virtual ~TGo4Runnable ()
 
void SetThread (TGo4Thread *gthread)
 
TGo4ThreadGetThread () const
 
TGo4ThreadManagerGetThreadManager () const
 

Private Member Functions

 TGo4ConnectorRunnable ()
 

Private Attributes

TGo4TaskManagerfxTaskManager {nullptr}
 

Additional Inherited Members

- Protected Member Functions inherited from TGo4Runnable
 TGo4Runnable ()
 
virtual Int_t PreRun (void *ptr)
 
virtual Int_t PostRun (void *ptr)
 
virtual void ThreadCatch (TGo4Exception &ex)
 
virtual void UnexpectedCatch ()
 
- Protected Attributes inherited from TGo4Runnable
TGo4ThreadManagerfxManager {nullptr}
 
TGo4ThreadfxGo4Thread {nullptr}
 

Detailed Description

Runnable to handle connection request from a new client which connects to a listening Transport channel (socket) on a fixed port number (e.g. 5000). When client asks the connector runnable for a new task handler connection (in method Connect of client task handler in client mode), this runnable tells him the first port number and machine name of the server, creates a new task handler in server mode, adds it to the task manager and invokes the server task handler's Connect. Then the three transport channels with the correct port numbers should be established... thread

Definition at line 34 of file TGo4ConnectorRunnable.h.

Constructor & Destructor Documentation

◆ TGo4ConnectorRunnable() [1/2]

TGo4ConnectorRunnable::TGo4ConnectorRunnable ( const char *  name,
TGo4ServerTask man 
)

Definition at line 20 of file TGo4ConnectorRunnable.cxx.

References fxTaskManager, and TGo4ServerTask::GetTaskManager().

◆ ~TGo4ConnectorRunnable()

virtual TGo4ConnectorRunnable::~TGo4ConnectorRunnable ( )
inlinevirtual

Definition at line 39 of file TGo4ConnectorRunnable.h.

References Run(), and TGo4ConnectorRunnable().

◆ TGo4ConnectorRunnable() [2/2]

TGo4ConnectorRunnable::TGo4ConnectorRunnable ( )
private

Referenced by ~TGo4ConnectorRunnable().

Member Function Documentation

◆ Run()

Int_t TGo4ConnectorRunnable::Run ( void *  ptr)
overridevirtual

The working function which runs in the thread

Implements TGo4Runnable.

Definition at line 26 of file TGo4ConnectorRunnable.cxx.

References TGo4Runnable::fxGo4Thread, fxTaskManager, TGo4TaskManager::ServeClient(), and TGo4Thread::Stop().

Referenced by ~TGo4ConnectorRunnable().

Member Data Documentation

◆ fxTaskManager

TGo4TaskManager* TGo4ConnectorRunnable::fxTaskManager {nullptr}
private

1

Definition at line 50 of file TGo4ConnectorRunnable.h.

Referenced by Run(), and TGo4ConnectorRunnable().


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