v2.10-0 (21000JUN2005)

Go4HistogramServer
Class TGo4ObjClient


class TGo4ObjClient
derived from TNamed

Client for the go4 object server delivering root objects.

Author:
J. Adamczewski
Since: 17-Jan-2003

Field Summary
 private Int_tfiPort
          serversocket port number
 private TStringfxHostname
          hostname of the server to connect to
 private TStringfxServerName
          contains api basename
 private TStringfxServerPass
          contains api password
 private TGo4Socket*fxTransport
          transport socket for connection to server

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4ObjClient(const Text_t* clientname, const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)
           
TGo4ObjClient()
           

Destructor Summary
 virtual synchronized ~TGo4ObjClient()
           

Method Summary
 private Int_tConnectServer()
           
 private Int_tDisconnectServer()
           
 const const char *GetBase()
           
 const const char *GetHost()
           
 const const char *GetPasswd()
           
 const Int_tGetPort()
           
 private TBuffer*ReceiveBuffer()
          Receive root buffer containing requested object
 protected TObject*ReceiveObject()
          Receive root object streamed from server
 TGo4AnalysisObjectNames*RequestNamesList(const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)
          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
 TObject*RequestObject(const Text_t* objectname, const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)
          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
 protected voidSendCommand(const Text_t* com)
          Send (command) string to server.
 voidSetBase(const char * serverbase)
           
 voidSetHost(const char * serverhost)
           
 private voidSetParms(const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)
          Set server parameters if necessary
 voidSetPasswd(const char * serverpasswd)
           
 voidSetPort(Int_t port)
           

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fiPort

private Int_t fiPort
serversocket port number

fxHostname

private TString fxHostname
hostname of the server to connect to

fxServerName

private TString fxServerName
contains api basename

fxServerPass

private TString fxServerPass
contains api password

fxTransport

private TGo4Socket* fxTransport
transport socket for connection to server
Constructor Detail

TGo4ObjClient

public TGo4ObjClient(const Text_t* clientname, const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)

TGo4ObjClient

public TGo4ObjClient()
Method Detail

~TGo4ObjClient

public virtual synchronized ~TGo4ObjClient()
Method Detail

ConnectServer

private Int_t ConnectServer()

DisconnectServer

private Int_t DisconnectServer()

GetBase

public const const char * GetBase()

GetHost

public const const char * GetHost()

GetPasswd

public const const char * GetPasswd()

GetPort

public const Int_t GetPort()

ReceiveBuffer

private TBuffer* ReceiveBuffer()
Receive root buffer containing requested object

ReceiveObject

protected TObject* ReceiveObject()
Receive root object streamed from server

RequestNamesList

public TGo4AnalysisObjectNames* RequestNamesList(const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)
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

RequestObject

public TObject* RequestObject(const Text_t* objectname, const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)
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

SendCommand

protected void SendCommand(const Text_t* com)
Send (command) string to server. Command may be just name of requested object

SetBase

public void SetBase(const char * serverbase)

SetHost

public void SetHost(const char * serverhost)

SetParms

private void SetParms(const Text_t* base, const Text_t* passwd, const Text_t* host, Int_t port)
Set server parameters if necessary

SetPasswd

public void SetPasswd(const char * serverpasswd)

SetPort

public void SetPort(Int_t port)

Association Links

to Class TGo4Socket

transport socket for connection to server

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005