#include <TGo4ObjClient.h>
Public Member Functions | |
TGo4ObjClient () | |
TGo4ObjClient (const char *clientname, const char *base=0, const char *passwd=0, const char *host=0, Int_t port=0) | |
virtual | ~TGo4ObjClient () |
TGo4AnalysisObjectNames * | RequestNamesList (const char *base=0, const char *passwd=0, const char *host=0, Int_t port=0) |
Get nameslist object from client. | |
TObject * | RequestObject (const char *objectname, const char *base=0, const char *passwd=0, const char *host=0, Int_t port=0) |
Get object by name from client. | |
void | SetBase (const char *serverbase) |
void | SetPasswd (const char *serverpasswd) |
void | SetHost (const char *serverhost) |
void | SetPort (Int_t port) |
const char * | GetBase () const |
const char * | GetPasswd () const |
const char * | GetHost () const |
Int_t | GetPort () const |
Protected Member Functions | |
void | SendCommand (const char *com) |
Send (command) string to server. | |
TObject * | ReceiveObject () |
Receive root object streamed from server. | |
Private Member Functions | |
void | SetParms (const char *base, const char *passwd, const char *host, Int_t port) |
Set server parameters if necessary. | |
Int_t | ConnectServer () |
Int_t | DisconnectServer () |
TBuffer * | ReceiveBuffer () |
Receive root buffer containing requested object. | |
Private Attributes | |
TString | fxServerName |
contains api basename | |
TString | fxServerPass |
contains api password | |
TString | fxHostname |
hostname of the server to connect to | |
Int_t | fiPort |
serversocket port number | |
TGo4Socket * | fxTransport |
transport socket for connection to server |
Definition at line 32 of file TGo4ObjClient.h.
|
Definition at line 33 of file TGo4ObjClient.cxx. |
|
Definition at line 43 of file TGo4ObjClient.cxx. References fxTransport, and SetParms(). |
|
Definition at line 59 of file TGo4ObjClient.cxx. References fxTransport. |
|
Get nameslist object from client. basename, password,host and portnumber may be specified at any time new if left out (default), the previously stored values are used Definition at line 77 of file TGo4ObjClient.cxx. References ConnectServer(), DisconnectServer(), TGo4HistogramServer::fgcCOMGETLIST, ReceiveObject(), SendCommand(), and SetParms(). Referenced by main(). |
|
Get object by name from client. basename, password, host and portnumber may be specified at any time new if left out (default), the previously stored values are used Definition at line 109 of file TGo4ObjClient.cxx. References ConnectServer(), DisconnectServer(), ReceiveObject(), SendCommand(), and SetParms(). Referenced by main(). |
|
Definition at line 62 of file TGo4ObjClient.h. References fxServerName. Referenced by SetParms(). |
|
Definition at line 63 of file TGo4ObjClient.h. References fxServerPass. Referenced by SetParms(). |
|
Definition at line 64 of file TGo4ObjClient.h. References fxHostname. Referenced by SetParms(). |
|
Definition at line 65 of file TGo4ObjClient.h. References fiPort. Referenced by SetParms(). |
|
Definition at line 67 of file TGo4ObjClient.h. References fxServerName. Referenced by ConnectServer(). |
|
Definition at line 68 of file TGo4ObjClient.h. References fxServerPass. Referenced by ConnectServer(). |
|
Definition at line 69 of file TGo4ObjClient.h. References fxHostname. Referenced by ConnectServer(). |
|
Definition at line 70 of file TGo4ObjClient.h. References fiPort. Referenced by ConnectServer(). |
|
Send (command) string to server. Command may be just name of requested object Definition at line 170 of file TGo4ObjClient.cxx. References fxTransport, and TGo4Socket::Send(). Referenced by RequestNamesList(), and RequestObject(). |
|
Receive root object streamed from server.
Definition at line 133 of file TGo4ObjClient.cxx. References fxTransport, TGo4TaskHandler::Get_fgcOK(), ReceiveBuffer(), TGo4Socket::RecvRaw(), and TGo4Socket::Send(). Referenced by RequestNamesList(), and RequestObject(). |
|
Set server parameters if necessary.
Definition at line 64 of file TGo4ObjClient.cxx. References SetBase(), SetHost(), SetPasswd(), and SetPort(). Referenced by RequestNamesList(), RequestObject(), and TGo4ObjClient(). |
|
Definition at line 176 of file TGo4ObjClient.cxx. References TGo4Log::Debug(), fxTransport, TGo4TaskHandler::Get_fgcOK(), GetBase(), GetHost(), GetPasswd(), GetPort(), TGo4Socket::Open(), TGo4Socket::RecvRaw(), and TGo4Socket::Send(). Referenced by RequestNamesList(), and RequestObject(). |
|
Definition at line 202 of file TGo4ObjClient.cxx. References TGo4Socket::Close(), and fxTransport. Referenced by RequestNamesList(), and RequestObject(). |
|
Receive root buffer containing requested object.
Definition at line 208 of file TGo4ObjClient.cxx. References TGo4Log::Debug(), fxTransport, TGo4Socket::GetBuffer(), TGo4SocketSignalHandler::GetLastSignal(), TGo4Socket::ReceiveBuffer(), and TGo4SocketSignalHandler::SetLastSignal(). Referenced by ReceiveObject(). |
|
contains api basename
Definition at line 83 of file TGo4ObjClient.h. |
|
contains api password
Definition at line 86 of file TGo4ObjClient.h. Referenced by GetPasswd(), and SetPasswd(). |
|
hostname of the server to connect to
Definition at line 89 of file TGo4ObjClient.h. |
|
serversocket port number
Definition at line 92 of file TGo4ObjClient.h. |
|
transport socket for connection to server
Definition at line 95 of file TGo4ObjClient.h. Referenced by ConnectServer(), DisconnectServer(), ReceiveBuffer(), ReceiveObject(), SendCommand(), TGo4ObjClient(), and ~TGo4ObjClient(). |