17#include "RtypesCore.h"
29 virtual Int_t
Open(
const char *host, Int_t port, Bool_t keepservsock = kFALSE);
30 virtual Int_t
Close(Option_t *opt =
"");
32 virtual Int_t
Send(TObject *obj);
33 virtual Int_t
Send(
const char *name);
34 virtual TObject *
Recv(
const char *name =
nullptr);
35 virtual char *
RecvRaw(
const char *name =
nullptr);
83 void ReallocBuffer(TBuffer *buffer, Int_t oldsize, Int_t newsize);
Int_t ReceiveBuffer()
Receive raw buffer and fill the internal TBuffer of this socket instance with it.
Bool_t fbOpen
True if connection is open.
TServerSocket * fxServerSocket
Server Socket (server mode only)
static const Int_t fguOPENWAIT
Time to sleep between client open retries.
static const Int_t fgiBUFINITSIZE
Initial size for object receive buffer (TBuffer)
TSocket * fxSocket
root TSocket class doing the work
virtual Int_t Send(TObject *obj)
virtual Int_t Close(Option_t *opt="")
static const Int_t fgiBUFEXTRASPACE
ROOT internal constant: extra space for reallocating object receive buffer (TBuffer)
static const Int_t fgiBUFLENGTH
Raw transport buffer size.
TGo4Socket(Bool_t IsClient)
const TBuffer * GetBuffer() const
Access the internal receiving buffer of this socket.
virtual Int_t Open(const char *host, Int_t port, Bool_t keepservsock=kFALSE)
virtual TObject * Recv(const char *name=nullptr)
Bool_t IsClientMode() const
Bool_t fbClientMode
True if instance runs in as client.
static const char * fgcGOON
First connection string, we are told to go on...
static const Int_t fgiOPENCYCLES
Number of retries for client open.
TBuffer * fxBuffer
aggregation 1
Int_t SendBuffer(TBuffer *buf)
Send raw buffer of external TBuffer object.
Int_t fiPort
Connected port number (of server socket which opened with portnumberscan)
void ReallocBuffer(TBuffer *buffer, Int_t oldsize, Int_t newsize)
Reallocate the fixed input buffer if necessary.
virtual char * RecvRaw(const char *name=nullptr)