Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TSocket Class Reference

#include <TSocket.h>

Inheritance diagram for TSocket:

Inheritance graph
[legend]
Collaboration diagram for TSocket:

Collaboration graph
[legend]
List of all members.

Public Methods

 TSocket (TInetAddress address, const char *service, Int_t tcpwindowsize=-1)
 TSocket (TInetAddress address, Int_t port, Int_t tcpwindowsize=-1)
 TSocket (const char *host, const char *service, Int_t tcpwindowsize=-1)
 TSocket (const char *host, Int_t port, Int_t tcpwindowsize=-1)
 TSocket (Int_t descriptor)
 TSocket (const TSocket &s)
virtual ~TSocket ()
virtual void Close (Option_t *opt="")
virtual Int_t GetDescriptor () const
TInetAddress GetInetAddress () const
virtual TInetAddress GetLocalInetAddress ()
Int_t GetPort () const
const char * GetService () const
virtual Int_t GetLocalPort ()
UInt_t GetBytesSent () const
UInt_t GetBytesRecv () const
virtual Int_t Send (const TMessage &mess)
virtual Int_t Send (Int_t kind)
virtual Int_t Send (Int_t status, Int_t kind)
virtual Int_t Send (const char *mess, Int_t kind=kMESS_STRING)
virtual Int_t SendObject (const TObject *obj, Int_t kind=kMESS_OBJECT)
virtual Int_t SendRaw (const void *buffer, Int_t length, ESendRecvOptions opt=kDefault)
virtual Int_t Recv (TMessage *&mess)
virtual Int_t Recv (Int_t &status, Int_t &kind)
virtual Int_t Recv (char *mess, Int_t max)
virtual Int_t Recv (char *mess, Int_t max, Int_t &kind)
virtual Int_t RecvRaw (void *buffer, Int_t length, ESendRecvOptions opt=kDefault)
virtual Bool_t IsValid () const
Int_t GetErrorCode () const
virtual Int_t SetOption (ESockOptions opt, Int_t val)
virtual Int_t GetOption (ESockOptions opt, Int_t &val)

Static Public Methods

UInt_t GetSocketBytesSent ()
UInt_t GetSocketBytesRecv ()

Protected Methods

 TSocket ()

Protected Attributes

Int_t fSocket
TString fService
TInetAddress fAddress
TInetAddress fLocalAddress

Friends

class TServerSocket
class TProofServ

Constructor & Destructor Documentation

TSocket::TSocket   [protected]
 

Definition at line 71 of file TSocket.h.

References fSocket.

TSocket::TSocket TInetAddress    address,
const char *    service,
Int_t    tcpwindowsize = -1
 

TSocket::TSocket TInetAddress    address,
Int_t    port,
Int_t    tcpwindowsize = -1
 

TSocket::TSocket const char *    host,
const char *    service,
Int_t    tcpwindowsize = -1
 

TSocket::TSocket const char *    host,
Int_t    port,
Int_t    tcpwindowsize = -1
 

TSocket::TSocket Int_t    descriptor
 

TSocket::TSocket const TSocket &    s
 

virtual TSocket::~TSocket   [virtual]
 

Definition at line 91 of file TSocket.h.

References Close().


Member Function Documentation

virtual void TSocket::Close Option_t *    opt = "" [virtual]
 

Reimplemented in TPSocket.

Referenced by TServerSocket::~TServerSocket(), and ~TSocket().

virtual Int_t TSocket::GetDescriptor   const [virtual]
 

Reimplemented in TPSocket.

Definition at line 94 of file TSocket.h.

References fSocket.

Referenced by TPSocket::GetDescriptor().

TInetAddress TSocket::GetInetAddress   const
 

Definition at line 95 of file TSocket.h.

virtual TInetAddress TSocket::GetLocalInetAddress   [virtual]
 

Reimplemented in TPSocket, and TServerSocket.

Int_t TSocket::GetPort   const
 

Definition at line 97 of file TSocket.h.

References TInetAddress::GetPort().

const char* TSocket::GetService   const
 

Definition at line 98 of file TSocket.h.

virtual Int_t TSocket::GetLocalPort   [virtual]
 

Reimplemented in TServerSocket.

UInt_t TSocket::GetBytesSent   const
 

Definition at line 100 of file TSocket.h.

UInt_t TSocket::GetBytesRecv   const
 

Definition at line 101 of file TSocket.h.

virtual Int_t TSocket::Send const TMessage   mess [virtual]
 

Reimplemented in TPSocket, and TServerSocket.

Referenced by TPSocket::Send().

virtual Int_t TSocket::Send Int_t    kind [virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Int_t TSocket::Send Int_t    status,
Int_t    kind
[virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Int_t TSocket::Send const char *    mess,
Int_t    kind = kMESS_STRING
[virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Int_t TSocket::SendObject const TObject   obj,
Int_t    kind = kMESS_OBJECT
[virtual]
 

Reimplemented in TServerSocket.

virtual Int_t TSocket::SendRaw const void *    buffer,
Int_t    length,
ESendRecvOptions    opt = kDefault
[virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Int_t TSocket::Recv TMessage *&    mess [virtual]
 

Reimplemented in TPSocket, and TServerSocket.

Referenced by TPSocket::Recv().

virtual Int_t TSocket::Recv Int_t &    status,
Int_t &    kind
[virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Int_t TSocket::Recv char *    mess,
Int_t    max
[virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Int_t TSocket::Recv char *    mess,
Int_t    max,
Int_t &    kind
[virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Int_t TSocket::RecvRaw void *    buffer,
Int_t    length,
ESendRecvOptions    opt = kDefault
[virtual]
 

Reimplemented in TPSocket, and TServerSocket.

virtual Bool_t TSocket::IsValid   const [virtual]
 

Reimplemented in TPSocket.

Definition at line 113 of file TSocket.h.

References fSocket.

Int_t TSocket::GetErrorCode   const
 

Reimplemented in TPSocket.

virtual Int_t TSocket::SetOption ESockOptions    opt,
Int_t    val
[virtual]
 

Reimplemented in TPSocket.

virtual Int_t TSocket::GetOption ESockOptions    opt,
Int_t &    val
[virtual]
 

Reimplemented in TPSocket.

UInt_t TSocket::GetSocketBytesSent   [static]
 

Definition at line 118 of file TSocket.h.

UInt_t TSocket::GetSocketBytesRecv   [static]
 

Definition at line 119 of file TSocket.h.


Friends And Related Function Documentation

friend class TServerSocket [friend]
 

Definition at line 62 of file TSocket.h.

friend class TProofServ [friend]
 

Definition at line 63 of file TSocket.h.


Member Data Documentation

Int_t TSocket::fSocket [protected]
 

Definition at line 66 of file TSocket.h.

Referenced by GetDescriptor(), IsValid(), and TSocket().

TString TSocket::fService [protected]
 

Definition at line 67 of file TSocket.h.

TInetAddress TSocket::fAddress [protected]
 

Definition at line 68 of file TSocket.h.

TInetAddress TSocket::fLocalAddress [protected]
 

Definition at line 69 of file TSocket.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 18 15:06:50 2003 for ROOT by doxygen1.2.16