33 #ifndef ROOT_TInetAddress 36 #ifndef ROOT_MessageTypes 39 #ifndef ROOT_TVirtualAuth 42 #ifndef ROOT_TSecContext 45 #ifndef ROOT_TTimeStamp 48 #ifndef ROOT_TVirtualMutex 114 TSocket() : fAddress(), fBytesRecv(0), fBytesSent(0), fCompress(0),
115 fLocalAddress(), fRemoteProtocol(), fSecContext(0), fService(),
116 fServType(
kSOCKD), fSocket(-1), fTcpWindowSize(0), fUrl(),
117 fBitsInfo(), fUUIDs(0), fLastUsageMtx(0), fLastUsage() { }
133 TSocket(
const char *host,
const char *service,
Int_t tcpwindowsize = -1);
185 void SetUrl(
const char *url) { fUrl = url; }
void SetRemoteProtocol(Int_t rproto)
Bool_t RecvStreamerInfos(TMessage *mess)
Receive a message containing streamer infos.
Int_t GetRemoteProtocol() const
void SetCompressionSettings(Int_t settings=1)
Used to specify the compression level and algorithm: settings = 100 * algorithm + level...
Int_t GetServType() const
virtual Bool_t IsValid() const
virtual Int_t Reconnect()
Bool_t RecvProcessIDs(TMessage *mess)
Receive a message containing process ids.
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
Option_t * GetOption() const
virtual Int_t SetOption(ESockOptions opt, Int_t val)
Set socket options.
static Int_t fgClientProtocol
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
This class represents an Internet Protocol (IP) address.
This class implements a mutex interface.
static ULong64_t GetSocketBytesRecv()
Get total number of bytes received via all sockets.
void SendStreamerInfos(const TMessage &mess)
Check if TStreamerInfo must be sent.
Int_t GetCompressionLevel() const
virtual Int_t SendObject(const TObject *obj, Int_t kind=kMESS_OBJECT)
Send an object.
void SetSecContext(TSecContext *ctx)
Int_t GetCompressionAlgorithm() const
TInetAddress fLocalAddress
virtual Int_t GetDescriptor() const
void SetServType(Int_t st)
UInt_t GetBytesSent() const
TTimeStamp GetLastUsage()
UInt_t GetBytesRecv() const
virtual Int_t SendRaw(const void *buffer, Int_t length, ESendRecvOptions opt=kDefault)
Send a raw buffer of specified length.
TVirtualMutex * fLastUsageMtx
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
static TSocket * CreateAuthSocket(const char *user, const char *host, Int_t port, Int_t size=0, Int_t tcpwindowsize=-1, TSocket *s=0, Int_t *err=0)
Creates a socket or a parallel socket and authenticates to the remote server specified in 'url' on re...
void Set()
Set Date/Time to current time as reported by the system.
virtual Bool_t IsAuthenticated() const
virtual Option_t * GetOption() const
void SetCompressionLevel(Int_t level=1)
See comments for function SetCompressionSettings.
virtual Int_t GetLocalPort()
Return the local port # to which the socket is bound.
void SetDescriptor(Int_t desc)
Int_t GetCompressionSettings() const
virtual void Close(Option_t *opt="")
Close the socket.
virtual Int_t Select(Int_t interest=kRead, Long_t timeout=-1)
Waits for this socket to change status.
Class providing the PROOF server.
static void NetError(const char *where, Int_t error)
Print error string depending on error code.
static ULong64_t GetSocketBytesSent()
Get total number of bytes sent via all sockets.
Int_t GetTcpWindowSize() const
void SetCompressionAlgorithm(Int_t algorithm=0)
See comments for function SetCompressionSettings.
#define R__LOCKGUARD2(mutex)
virtual TInetAddress GetLocalInetAddress()
Return internet address of local host to which the socket is bound.
const char * GetService() const
const char * GetUrl() const
TSocket & operator=(const TSocket &)
unsigned long long ULong64_t
The TTimeStamp encapsulates seconds and ns since EPOCH.
Int_t GetErrorCode() const
Returns error code.
Mother of all ROOT objects.
static ULong64_t fgBytesSent
TSecContext * GetSecContext() const
void SendProcessIDs(const TMessage &mess)
Check if TProcessIDs must be sent.
static ULong64_t fgBytesRecv
static Int_t GetClientProtocol()
Static method returning supported client protocol.
void SetUrl(const char *url)
void SetService(const char *service)
Class describing a PROOF worker server.
virtual Int_t RecvRaw(void *buffer, Int_t length, ESendRecvOptions opt=kDefault)
Receive a raw buffer of specified length bytes.
TInetAddress GetInetAddress() const
TSecContext * fSecContext
Bool_t Authenticate(const char *user)
Authenticated the socket with specified user.