ROOT logo
ROOT » PROOF » PROOFX » TXUnixSocket

class TXUnixSocket: public TXSocket


TXUnixSocket

Implementation of TXSocket using PF_UNIX sockets.
Used for the internal connection between coordinator and proofserv.


Function Members (Methods)

public:
TXUnixSocket(const char* u, Int_t psid = -1, Char_t ver = -1, TXHandler* handler = 0)
virtual~TXUnixSocket()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
static TClass*TXSocket::Class()
static TClass*TSocket::Class()
static TClass*TNamed::Class()
static TClass*TObject::Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TObject*TObject::Clone(const char* newname = "") const
virtual voidTXSocket::Close(Option_t* opt = "")
virtual voidTSocket::Close(Option_t* opt = "")
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Copy(TObject& object) const
Bool_tTXSocket::Create(Bool_t attach = kFALSE)
static TSocket*TSocket::CreateAuthSocket(const char* url, Int_t size = 0, Int_t tcpwindowsize = -1, TSocket* s = 0)
static TSocket*TSocket::CreateAuthSocket(const char* user, const char* host, Int_t port, Int_t size = 0, Int_t tcpwindowsize = -1, TSocket* s = 0)
virtual voidTObject::Delete(Option_t* option = "")MENU
voidTXSocket::DisableTimeout()
voidTXSocket::DisconnectSession(Int_t id, Option_t* opt = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTXSocket::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
voidTXSocket::EnableTimeout()
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tTXSocket::Flush()
UInt_tTSocket::GetBytesRecv() const
UInt_tTSocket::GetBytesSent() const
virtual Int_tGetClientID() const
virtual Int_tTXSocket::GetClientID() const
virtual Int_tGetClientIDSize() const
virtual Int_tTXSocket::GetClientIDSize() const
static Int_tTSocket::GetClientProtocol()
Int_tTSocket::GetCompressionLevel() const
virtual Int_tTSocket::GetDescriptor() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tTSocket::GetErrorCode() const
virtual const char*TObject::GetIconName() const
TInetAddressTSocket::GetInetAddress() const
Int_tTXSocket::GetInterrupt(Bool_t& forward)
TTimeStampTSocket::GetLastUsage()
virtual TInetAddressTSocket::GetLocalInetAddress()
virtual Int_tTSocket::GetLocalPort()
Int_tTXSocket::GetLogConnID() const
virtual const char*TNamed::GetName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
Int_tTXSocket::GetOpenError() const
virtual Option_t*TObject::GetOption() const
virtual Int_tTSocket::GetOption(ESockOptions opt, Int_t& val)
Int_tTSocket::GetPort() const
Int_tTSocket::GetRemoteProtocol() const
TSecContext*TSocket::GetSecContext() const
const char*TSocket::GetService() const
Int_tTXSocket::GetServType() const
Int_tTSocket::GetServType() const
Int_tTXSocket::GetSessionID() const
static ULong64_tTSocket::GetSocketBytesRecv()
static ULong64_tTSocket::GetSocketBytesSent()
Int_tTSocket::GetTcpWindowSize() const
virtual const char*TNamed::GetTitle() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
const char*TSocket::GetUrl() const
Int_tTXSocket::GetXrdProofdVersion() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual TClass*TXSocket::IsA() const
virtual TClass*TSocket::IsA() const
virtual TClass*TNamed::IsA() const
virtual TClass*TObject::IsA() const
virtual Bool_tTSocket::IsAuthenticated() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tTXSocket::IsServProofd()
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTObject::IsSortable() const
virtual Bool_tTXSocket::IsValid() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
static voidTSocket::NetError(const char* where, Int_t error)
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TXSocket&TXSocket::operator=(const TXSocket& xs)
TNamed&TNamed::operator=(const TNamed& rhs)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
Bool_tTXSocket::Ping(const char* ord = 0)
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidTObject::Print(Option_t* option = "") const
virtual UnsolRespProcResultTXSocket::ProcessUnsolicitedMsg(XrdClientUnsolMsgSender* s, XrdClientMessage* msg)
virtual Int_tTObject::Read(const char* name)
virtual Int_tReconnect()
virtual Int_tTXSocket::Reconnect()
virtual Int_tTSocket::Reconnect()
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual Int_tTXSocket::Recv(TMessage*& mess)
virtual Int_tTSocket::Recv(TMessage*& mess)
virtual Int_tTXSocket::Recv(Int_t& status, Int_t& kind)
virtual Int_tTXSocket::Recv(char* mess, Int_t max)
virtual Int_tTSocket::Recv(Int_t& status, Int_t& kind)
virtual Int_tTSocket::Recv(char* mess, Int_t max)
virtual Int_tTXSocket::Recv(char* mess, Int_t max, Int_t& kind)
virtual Int_tTSocket::Recv(char* mess, Int_t max, Int_t& kind)
virtual Int_tTXSocket::RecvRaw(void* buf, Int_t len, ESendRecvOptions opt = kDefault)
virtual Int_tTSocket::RecvRaw(void* buffer, Int_t length, ESendRecvOptions opt = kDefault)
voidTXSocket::RemoteTouch()
virtual voidRemoveClientID()
virtual voidTXSocket::RemoveClientID()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
virtual Int_tTSocket::Select(Int_t interest = kRead, Long_t timeout = -1)
virtual Int_tTXSocket::Send(const TMessage& mess)
virtual Int_tTXSocket::Send(Int_t kind)
virtual Int_tTSocket::Send(const TMessage& mess)
virtual Int_tTSocket::Send(Int_t kind)
virtual Int_tTXSocket::Send(Int_t status, Int_t kind)
virtual Int_tTXSocket::Send(const char* mess, Int_t kind = kMESS_STRING)
virtual Int_tTSocket::Send(Int_t status, Int_t kind)
virtual Int_tTSocket::Send(const char* mess, Int_t kind = kMESS_STRING)
TObjString*TXSocket::SendCoordinator(Int_t kind, const char* msg = 0, Int_t int2 = 0, Long64_t l64 = 0, Int_t int3 = 0, const char* opt = 0)
Int_tTXSocket::SendInterrupt(Int_t type)
virtual Int_tTSocket::SendObject(const TObject* obj, Int_t kind = kMESS_OBJECT)
virtual Int_tTXSocket::SendRaw(const void* buf, Int_t len, ESendRecvOptions opt = kDontBlock)
virtual Int_tTSocket::SendRaw(const void* buffer, Int_t length, ESendRecvOptions opt = kDefault)
voidTXSocket::SendUrgent(Int_t type, Int_t int1, Int_t int2)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetClientID(Int_t cid)
virtual voidTXSocket::SetClientID(Int_t)
voidTSocket::SetCompressionLevel(Int_t level = 1)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidTXSocket::SetInterrupt()
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual Int_tTXSocket::SetOption(ESockOptions, Int_t)
virtual Int_tTSocket::SetOption(ESockOptions opt, Int_t val)
voidTSocket::SetRemoteProtocol(Int_t rproto)
voidTSocket::SetSecContext(TSecContext* ctx)
voidTXSocket::SetSendOpt(ESendRecvOptions o)
voidTSocket::SetService(const char* service)
voidTSocket::SetServType(Int_t st)
voidTXSocket::SetSessionID(Int_t id)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidTSocket::SetUrl(const char* url)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTXSocket::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTSocket::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTNamed::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
virtual voidTXSocket::Streamer(TBuffer& b)
virtual voidTSocket::Streamer(TBuffer& b)
virtual voidTNamed::Streamer(TBuffer& b)
virtual voidTObject::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTXSocket::StreamerNVirtual(TBuffer& b)
voidTSocket::StreamerNVirtual(TBuffer& b)
voidTNamed::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
voidTSocket::Touch()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
Bool_tTSocket::Authenticate(const char* user)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
Bool_tTSocket::RecvProcessIDs(TMessage* mess)
Bool_tTSocket::RecvStreamerInfos(TMessage* mess)
voidTSocket::SendProcessIDs(const TMessage& mess)
voidTSocket::SendStreamerInfos(const TMessage& mess)
voidTSocket::SetDescriptor(Int_t desc)

Data Members

private:
enum TXSocket::EUrgentMsgType { kStopProcess
};
enum TSocket::EStatusBits { kIsUnix
};
enum TSocket::EInterest { kRead
kWrite
};
enum TSocket::EServiceType { kSOCKD
kROOTD
kPROOFD
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TInetAddressTSocket::fAddressremote internet address and port #
TBitsTSocket::fBitsInfobits array to mark TStreamerInfo classes already sent
UInt_tTSocket::fBytesRecvtotal bytes received over this socket
UInt_tTSocket::fBytesSenttotal bytes sent using this socket
Int_tTSocket::fCompresscompression level from 0 (not compressed)
TTimeStampTSocket::fLastUsageTime stamp of last usage
TVirtualMutex*TSocket::fLastUsageMtxProtect last usage setting / reading
TInetAddressTSocket::fLocalAddresslocal internet address and port #
TStringTNamed::fNameobject identifier
Int_tTSocket::fRemoteProtocolprotocol of remote daemon
TSecContext*TSocket::fSecContextafter a successful Authenticate call
TSocket::EServiceTypeTSocket::fServTyperemote service type
TStringTSocket::fServicename of service (matches remote port #)
Int_tTSocket::fSocketsocket descriptor
Int_tTSocket::fTcpWindowSizeTCP window size (default 65535);
TStringTNamed::fTitleobject title
TList*TSocket::fUUIDslist of TProcessIDs already sent through the socket
TStringTSocket::fUrlneeds this for special authentication options
static ULong64_tTSocket::fgBytesRecvtotal bytes received by all socket objects
static ULong64_tTSocket::fgBytesSenttotal bytes sent by all socket objects
static Int_tTSocket::fgClientProtocolclient "protocol" version
private:
list<Int_t>fClientIDs

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TXUnixSocket(const char* u, Int_t psid = -1, Char_t ver = -1, TXHandler* handler = 0)
 Constructor
Int_t Reconnect()
 Try reconnection after failure
virtual ~TXUnixSocket()
{ fSessionID = -1; }
Int_t GetClientID() const
{ return (fClientIDs.size() > 0) ? fClientIDs.front() : -1; }
Int_t GetClientIDSize() const
{ return fClientIDs.size(); }
void RemoveClientID()
{ if (fClientIDs.size() > 1) fClientIDs.pop_front(); }
void SetClientID(Int_t cid)
{ fClientIDs.push_front(cid); }