#include <TSocket.h>
Inheritance diagram for TSocket:
Public Types | |
enum | EStatusBits |
enum | EInterest |
enum | EServiceType |
enum | EStatusBits |
enum | EInterest |
enum | EServiceType |
Public Member Functions | |
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 (const char *sockpath) | |
TSocket (Int_t descriptor) | |
TSocket (Int_t descriptor, const char *sockpath) | |
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 |
Int_t | GetServType () const |
virtual Int_t | GetLocalPort () |
UInt_t | GetBytesSent () const |
UInt_t | GetBytesRecv () const |
Int_t | GetCompressionLevel () const |
Int_t | GetErrorCode () const |
virtual Int_t | GetOption (ESockOptions opt, Int_t &val) |
Int_t | GetRemoteProtocol () const |
TSecContext * | GetSecContext () const |
Int_t | GetTcpWindowSize () const |
TTimeStamp | GetLastUsage () |
const char * | GetUrl () const |
virtual Bool_t | IsAuthenticated () const |
virtual Bool_t | IsValid () const |
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 Int_t | Reconnect () |
virtual Int_t | Select (Int_t interest=kRead, Long_t timeout=-1) |
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) |
void | SetCompressionLevel (Int_t level=1) |
virtual Int_t | SetOption (ESockOptions opt, Int_t val) |
void | SetRemoteProtocol (Int_t rproto) |
void | SetSecContext (TSecContext *ctx) |
void | SetService (const char *service) |
void | SetServType (Int_t st) |
void | SetUrl (const char *url) |
void | Touch () |
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 (const char *sockpath) | |
TSocket (Int_t descriptor) | |
TSocket (Int_t descriptor, const char *sockpath) | |
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 |
Int_t | GetServType () const |
virtual Int_t | GetLocalPort () |
UInt_t | GetBytesSent () const |
UInt_t | GetBytesRecv () const |
Int_t | GetCompressionLevel () const |
Int_t | GetErrorCode () const |
virtual Int_t | GetOption (ESockOptions opt, Int_t &val) |
Int_t | GetRemoteProtocol () const |
TSecContext * | GetSecContext () const |
Int_t | GetTcpWindowSize () const |
TTimeStamp | GetLastUsage () |
const char * | GetUrl () const |
virtual Bool_t | IsAuthenticated () const |
virtual Bool_t | IsValid () const |
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 Int_t | Reconnect () |
virtual Int_t | Select (Int_t interest=kRead, Long_t timeout=-1) |
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) |
void | SetCompressionLevel (Int_t level=1) |
virtual Int_t | SetOption (ESockOptions opt, Int_t val) |
void | SetRemoteProtocol (Int_t rproto) |
void | SetSecContext (TSecContext *ctx) |
void | SetService (const char *service) |
void | SetServType (Int_t st) |
void | SetUrl (const char *url) |
void | Touch () |
Static Public Member Functions | |
static Int_t | GetClientProtocol () |
static ULong64_t | GetSocketBytesSent () |
static ULong64_t | GetSocketBytesRecv () |
static TSocket * | CreateAuthSocket (const char *user, const char *host, Int_t port, Int_t size=0, Int_t tcpwindowsize=-1, TSocket *s=0) |
static TSocket * | CreateAuthSocket (const char *url, Int_t size=0, Int_t tcpwindowsize=-1, TSocket *s=0) |
static void | NetError (const char *where, Int_t error) |
static Int_t | GetClientProtocol () |
static ULong64_t | GetSocketBytesSent () |
static ULong64_t | GetSocketBytesRecv () |
static TSocket * | CreateAuthSocket (const char *user, const char *host, Int_t port, Int_t size=0, Int_t tcpwindowsize=-1, TSocket *s=0) |
static TSocket * | CreateAuthSocket (const char *url, Int_t size=0, Int_t tcpwindowsize=-1, TSocket *s=0) |
static void | NetError (const char *where, Int_t error) |
Protected Member Functions | |
TSocket () | |
Bool_t | Authenticate (const char *user) |
void | SetDescriptor (Int_t desc) |
void | SendStreamerInfos (const TMessage &mess) |
Bool_t | RecvStreamerInfos (TMessage *mess) |
void | SendProcessIDs (const TMessage &mess) |
Bool_t | RecvProcessIDs (TMessage *mess) |
TSocket () | |
Bool_t | Authenticate (const char *user) |
void | SetDescriptor (Int_t desc) |
void | SendStreamerInfos (const TMessage &mess) |
Bool_t | RecvStreamerInfos (TMessage *mess) |
void | SendProcessIDs (const TMessage &mess) |
Bool_t | RecvProcessIDs (TMessage *mess) |
Protected Attributes | |
TInetAddress | fAddress |
UInt_t | fBytesRecv |
UInt_t | fBytesSent |
Int_t | fCompress |
TInetAddress | fLocalAddress |
Int_t | fRemoteProtocol |
TSecContext * | fSecContext |
TString | fService |
EServiceType | fServType |
Int_t | fSocket |
Int_t | fTcpWindowSize |
TString | fUrl |
TBits | fBitsInfo |
TList * | fUUIDs |
TVirtualMutex * | fLastUsageMtx |
TTimeStamp | fLastUsage |
TSecContext * | fSecContext |
TList * | fUUIDs |
TVirtualMutex * | fLastUsageMtx |
Static Protected Attributes | |
static ULong64_t | fgBytesRecv |
static ULong64_t | fgBytesSent |
static Int_t | fgClientProtocol |
Private Member Functions | |
TSocket & | operator= (const TSocket &) |
Option_t * | GetOption () const |
TSocket & | operator= (const TSocket &) |
Option_t * | GetOption () const |
Friends | |
class | TServerSocket |
class | TProofServ |
class | TSlave |
Definition at line 76 of file TSocket.h.
enum TSocket::EStatusBits |
enum TSocket::EInterest |
enum TSocket::EStatusBits |
enum TSocket::EInterest |
TSocket::TSocket | ( | ) | [inline, protected] |
Definition at line 113 of file TSocket.h.
Referenced by TPServerSocket::Accept(), CreateAuthSocket(), and TPSocket::TPSocket().
TSocket::TSocket | ( | TInetAddress | address, | |
const char * | service, | |||
Int_t | tcpwindowsize = -1 | |||
) |
TSocket::TSocket | ( | TInetAddress | address, | |
Int_t | port, | |||
Int_t | tcpwindowsize = -1 | |||
) |
Definition at line 113 of file TSocket.cxx.
References TSeqCollection::Add(), TString::Contains(), fAddress, fBytesRecv, fBytesSent, fCompress, fLastUsageMtx, TInetAddress::fPort, fRemoteProtocol, fSecContext, fService, fServType, fSocket, fTcpWindowSize, fUUIDs, TROOT::GetListOfSockets(), TInetAddress::GetPort(), TSystem::GetServiceByPort(), gROOT, gROOTMutex, gSystem, kPROOFD, kROOTD, kSOCKD, TSystem::OpenConnection(), R__ASSERT, R__LOCKGUARD2, and TNamed::SetTitle().
TSocket::TSocket | ( | const char * | host, | |
const char * | service, | |||
Int_t | tcpwindowsize = -1 | |||
) |
Definition at line 157 of file TSocket.cxx.
References TSeqCollection::Add(), TString::Contains(), fAddress, fBytesRecv, fBytesSent, fCompress, fLastUsageMtx, TInetAddress::fPort, fRemoteProtocol, fSecContext, fService, fServType, fSocket, fTcpWindowSize, fUUIDs, TSystem::GetHostByName(), TInetAddress::GetHostName(), TROOT::GetListOfSockets(), TInetAddress::GetPort(), TSystem::GetServiceByName(), gROOT, gROOTMutex, gSystem, kPROOFD, kROOTD, kSOCKD, TSystem::OpenConnection(), R__ASSERT, R__LOCKGUARD2, and TNamed::SetName().
Definition at line 201 of file TSocket.cxx.
References TSeqCollection::Add(), TString::Contains(), fAddress, fBytesRecv, fBytesSent, fCompress, fLastUsageMtx, TInetAddress::fPort, fRemoteProtocol, fSecContext, fService, fServType, fSocket, fTcpWindowSize, fUrl, fUUIDs, TSystem::GetHostByName(), TInetAddress::GetHostName(), TROOT::GetListOfSockets(), TInetAddress::GetPort(), TSystem::GetServiceByPort(), gROOT, gROOTMutex, gSystem, kPROOFD, kROOTD, kSOCKD, TSystem::OpenConnection(), R__ASSERT, R__LOCKGUARD2, TNamed::SetName(), and TNamed::SetTitle().
TSocket::TSocket | ( | const char * | sockpath | ) |
Definition at line 250 of file TSocket.cxx.
References TSeqCollection::Add(), fAddress, fBytesRecv, fBytesSent, fCompress, fLastUsageMtx, TNamed::fName, TString::Form(), TInetAddress::fPort, fRemoteProtocol, fSecContext, fService, fServType, fSocket, fTcpWindowSize, fUrl, fUUIDs, TROOT::GetListOfSockets(), gROOT, gROOTMutex, gSystem, kSOCKD, TSystem::OpenConnection(), R__ASSERT, R__LOCKGUARD2, and TNamed::SetTitle().
TSocket::TSocket | ( | Int_t | descriptor | ) |
Definition at line 285 of file TSocket.cxx.
References TSeqCollection::Add(), fAddress, fBytesRecv, fBytesSent, fCompress, fLastUsageMtx, fRemoteProtocol, fSecContext, fService, fServType, fSocket, fTcpWindowSize, fUUIDs, TROOT::GetListOfSockets(), TSystem::GetPeerName(), gROOT, gROOTMutex, gSystem, kSOCKD, R__ASSERT, and R__LOCKGUARD2.
TSocket::TSocket | ( | Int_t | descriptor, | |
const char * | sockpath | |||
) |
Definition at line 314 of file TSocket.cxx.
References TSeqCollection::Add(), fAddress, fBytesRecv, fBytesSent, fCompress, fLastUsageMtx, TNamed::fName, TString::Form(), TInetAddress::fPort, fRemoteProtocol, fSecContext, fService, fServType, fSocket, fTcpWindowSize, fUrl, fUUIDs, TROOT::GetListOfSockets(), gROOT, gROOTMutex, gSystem, kSOCKD, R__ASSERT, R__LOCKGUARD2, and TNamed::SetTitle().
TSocket::TSocket | ( | const TSocket & | s | ) |
Definition at line 349 of file TSocket.cxx.
References TSeqCollection::Add(), fAddress, fBytesRecv, fBytesSent, fCompress, fLastUsageMtx, fLocalAddress, fRemoteProtocol, fSecContext, fService, fServType, fSocket, fUUIDs, TROOT::GetListOfSockets(), gROOT, gROOTMutex, R__LOCKGUARD2, and s.
virtual TSocket::~TSocket | ( | ) | [inline, virtual] |
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 * | sockpath | ) |
TSocket::TSocket | ( | Int_t | descriptor | ) |
TSocket::TSocket | ( | Int_t | descriptor, | |
const char * | sockpath | |||
) |
TSocket::TSocket | ( | const TSocket & | s | ) |
virtual TSocket::~TSocket | ( | ) | [inline, virtual] |
Bool_t TSocket::Authenticate | ( | const char * | user | ) | [protected] |
Definition at line 1029 of file TSocket.cxx.
References TVirtualAuth::Authenticate(), TString::Contains(), TString::Data(), TObject::Error(), fgClientProtocol, TPluginManager::FindHandler(), Form(), fRemoteProtocol, fSecContext, fServType, fUrl, gDebug, TInetAddress::GetHostName(), GetInetAddress(), TROOT::GetPluginManager(), TSystem::GetUserInfo(), gROOT, gSystem, h, TObject::Info(), TROOT::IsProofServ(), kFALSE, kPROOFD, kROOTD, kROOTD_AUTH, kROOTD_ERR, kROOTD_PROTOCOL, kROOTD_USER, kSOCKD, kTRUE, NetError(), opts, Recv(), Send(), stat, u, and TObject::Warning().
Referenced by CreateAuthSocket(), and TPSocket::TPSocket().
void TSocket::SetDescriptor | ( | Int_t | desc | ) | [inline, protected] |
void TSocket::SendStreamerInfos | ( | const TMessage & | mess | ) | [protected] |
Definition at line 631 of file TSocket.cxx.
References TList::Add(), TList::Clear(), fBitsInfo, TMessage::fInfos, gDebug, TCollection::GetEntries(), info, TObject::Info(), kMESS_STREAMERINFO, Send(), TBits::SetBitNumber(), TBits::TestBitNumber(), and TMessage::WriteObject().
Referenced by Send(), TXSocket::Send(), and TPSocket::Send().
Definition at line 895 of file TSocket.cxx.
References xmlio::Class, gDebug, TObject::GetName(), TObjLink::GetObject(), info, TObject::Info(), kFALSE, kMESS_STREAMERINFO, kTRUE, list, TObjLink::Next(), TBufferFile::ReadObject(), and TMessage::What().
Referenced by Recv(), TPSocket::Recv(), and TXSocket::Recv().
void TSocket::SendProcessIDs | ( | const TMessage & | mess | ) | [protected] |
Definition at line 665 of file TSocket.cxx.
References TList::Add(), TList::FindObject(), fUUIDs, gDebug, TProcessID::GetPIDs(), TNamed::GetTitle(), TObject::GetUniqueID(), TObject::Info(), kMESS_PROCESSID, Send(), TMessage::TestBitNumber(), and TMessage::WriteObject().
Referenced by Send(), TXSocket::Send(), and TPSocket::Send().
Definition at line 942 of file TSocket.cxx.
References TObjArray::Add(), xmlio::Class, gDebug, TProcessID::GetPIDs(), TNamed::GetTitle(), TProcessID::IncrementCount(), TObjArray::IndexOf(), TObject::Info(), kFALSE, kMESS_PROCESSID, kTRUE, list, p, TBufferFile::ReadObject(), TObject::SetUniqueID(), and TMessage::What().
Referenced by Recv(), TPSocket::Recv(), and TXSocket::Recv().
Option_t* TSocket::GetOption | ( | ) | const [inline, private, virtual] |
Reimplemented from TObject.
Definition at line 127 of file TSocket.h.
References TObject::GetOption().
Referenced by TPSocket::GetOption(), TApplicationServer::HandleUrgentData(), TProofServ::HandleUrgentData(), hserv(), and TApplicationRemote::Interrupt().
void TSocket::Close | ( | Option_t * | opt = "" |
) | [virtual] |
Definition at line 373 of file TSocket.cxx.
References TSystem::CloseConnection(), fLastUsageMtx, fSocket, fUUIDs, TROOT::GetListOfSockets(), gROOT, gROOTMutex, gSystem, kFALSE, kTRUE, R__LOCKGUARD2, TCollection::Remove(), and SafeDelete.
Referenced by TAuthenticate::CatchTimeOut(), TXSlave::Close(), TPSocket::Close(), TSlaveLite::Close(), CreateAuthSocket(), hclient(), hserv(), TPSocket::Init(), Recv(), RecvRaw(), Send(), SendRaw(), TPSocket::TPSocket(), and ~TSocket().
virtual Int_t TSocket::GetDescriptor | ( | ) | const [inline, virtual] |
Definition at line 141 of file TSocket.h.
References fSocket.
Referenced by TKSocket::BlockRead(), TKSocket::BlockWrite(), TKSocket::Connect(), TProofServLite::CreateServer(), TXProofServ::CreateServer(), TPSocket::GetDescriptor(), TPSocket::GetLocalInetAddress(), GlobusAuthenticate(), Krb5Authenticate(), TProofServLite::SetupOnFork(), ROOT::SrvSetSocket(), and TPSocket::TPSocket().
TInetAddress TSocket::GetInetAddress | ( | ) | const [inline] |
Definition at line 142 of file TSocket.h.
References fAddress.
Referenced by TPServerSocket::Accept(), Authenticate(), TProof::Collect(), TMonitor::GetActive(), GlobusAuthenticate(), hserv(), Krb5Authenticate(), ROOT::NetGetRemoteHost(), SrvAuthImpl(), and TPSocket::TPSocket().
TInetAddress TSocket::GetLocalInetAddress | ( | ) | [virtual] |
Definition at line 394 of file TSocket.cxx.
References fLocalAddress, fSocket, TInetAddress::GetPort(), TSystem::GetSockName(), gSystem, and IsValid().
Referenced by TPSocket::GetLocalInetAddress(), GetLocalPort(), and TPSocket::TPSocket().
Int_t TSocket::GetPort | ( | ) | const [inline] |
Definition at line 144 of file TSocket.h.
References fAddress, and TInetAddress::GetPort().
Referenced by TAuthenticate::Authenticate(), CreateAuthSocket(), TXProofMgr::MatchUrl(), and TAuthenticate::SshAuth().
const char* TSocket::GetService | ( | ) | const [inline] |
Int_t TSocket::GetServType | ( | ) | const [inline] |
Definition at line 146 of file TSocket.h.
References fServType.
Referenced by TAuthenticate::Authenticate(), TAuthenticate::AuthExists(), TAuthenticate::ClearAuth(), Krb5Authenticate(), TAuthenticate::SshAuth(), and TPSocket::TPSocket().
Int_t TSocket::GetLocalPort | ( | ) | [virtual] |
Definition at line 408 of file TSocket.cxx.
References fLocalAddress, GetLocalInetAddress(), TInetAddress::GetPort(), and IsValid().
UInt_t TSocket::GetBytesSent | ( | ) | const [inline] |
Definition at line 148 of file TSocket.h.
References fBytesSent.
Referenced by hserv(), TSlaveLite::Print(), and TPSocket::TPSocket().
UInt_t TSocket::GetBytesRecv | ( | ) | const [inline] |
Definition at line 149 of file TSocket.h.
References fBytesRecv.
Referenced by hserv(), TSlaveLite::Print(), and TPSocket::TPSocket().
Int_t TSocket::GetCompressionLevel | ( | ) | const [inline] |
Int_t TSocket::GetErrorCode | ( | ) | const |
Definition at line 1002 of file TSocket.cxx.
References fSocket, and IsValid().
Referenced by TPSocket::GetErrorCode().
Int_t TSocket::GetOption | ( | ESockOptions | opt, | |
Int_t & | val | |||
) | [virtual] |
Int_t TSocket::GetRemoteProtocol | ( | ) | const [inline] |
Definition at line 153 of file TSocket.h.
References fRemoteProtocol.
Referenced by TAuthenticate::Authenticate(), TAuthenticate::AuthExists(), TNetFile::ConnectServer(), TNetSystem::Create(), GlobusAuthenticate(), TXSlave::Init(), TXProofMgr::Init(), TFTP::Init(), OldSlaveAuthSetup(), TFTP::Print(), TAuthenticate::SshAuth(), and TPSocket::TPSocket().
TSecContext* TSocket::GetSecContext | ( | ) | const [inline] |
Definition at line 154 of file TSocket.h.
References fSecContext.
Referenced by TPServerSocket::Accept(), TNetSystem::Create(), TFTP::Init(), OldSlaveAuthSetup(), TFTP::Print(), TAuthenticate::ProofAuthSetup(), and TPSocket::TPSocket().
Int_t TSocket::GetTcpWindowSize | ( | ) | const [inline] |
Definition at line 155 of file TSocket.h.
References fTcpWindowSize.
Referenced by TPSocket::TPSocket().
TTimeStamp TSocket::GetLastUsage | ( | ) | [inline] |
Definition at line 156 of file TSocket.h.
References fLastUsage, fLastUsageMtx, and R__LOCKGUARD2.
Referenced by TMonitor::GetActive(), and TShutdownTimer::Notify().
const char* TSocket::GetUrl | ( | ) | const [inline] |
virtual Bool_t TSocket::IsAuthenticated | ( | ) | const [inline, virtual] |
Definition at line 158 of file TSocket.h.
References fSecContext, kFALSE, and kTRUE.
Referenced by TPServerSocket::Accept(), TNetFile::ConnectServer(), CreateAuthSocket(), TFTP::Init(), and TFTP::Print().
virtual Bool_t TSocket::IsValid | ( | ) | const [inline, virtual] |
Definition at line 159 of file TSocket.h.
References fSocket, kFALSE, and kTRUE.
Referenced by TRootSecContext::CleanupSecContext(), CreateAuthSocket(), TProofServLite::CreateServer(), TXProofServ::CreateServer(), Spy::DoButton(), GetErrorCode(), TWebFile::GetFromWeb10(), GetLocalInetAddress(), GetLocalPort(), TXSlave::HandleError(), TXProofServ::HandleError(), TXSlave::Init(), TPSocket::Init(), TWebSocket::ReOpen(), TProofServLite::SetupOnFork(), TProofLite::SetupWorkers(), SpyServ::SpyServ(), TApplicationRemote::TApplicationRemote(), TProof::TerminateWorker(), TPSocket::TPSocket(), TPacketizer::ValidateFiles(), and TPacketizerAdaptive::ValidateFiles().
Definition at line 786 of file TSocket.cxx.
References buf, Close(), fBytesRecv, fBytesSent, fgBytesRecv, fgBytesSent, fSocket, gSystem, kMESS_ACK, len, n, net2host(), ok, RecvProcessIDs(), TSystem::RecvRaw(), RecvStreamerInfos(), TSystem::ResetErrno(), TSystem::SendRaw(), and Touch().
Referenced by TPServerSocket::Accept(), TFTP::AccessPathName(), TAuthenticate::Authenticate(), Authenticate(), TAuthenticate::AuthExists(), TFTP::ChangeDirectory(), TFTP::ChangePermission(), TApplicationRemote::CheckFile(), TAuthenticate::ClearAuth(), TApplicationRemote::CollectInput(), TFTP::DeleteDirectory(), TFTP::DeleteFile(), Spy::DoButton(), TFTP::FreeDirectory(), TProofServ::Get(), TFTP::GetDirEntry(), TFTP::GetFile(), TProofServ::GetNextPacket(), TFTP::GetPathInfo(), TProof::GetTreeHeader(), GlobusAuthenticate(), TApplicationServer::HandleSocketInput(), TProofServ::HandleSocketInput(), hclient(), Krb5Authenticate(), TFTP::ListDirectory(), TFTP::MakeDirectory(), ROOT::NetRecv(), OldProofServAuthSetup(), TFTP::OpenDirectory(), TFTP::PrintDirectory(), TApplicationServer::ProcessLine(), Recv(), TPSocket::Recv(), TFTP::Recv(), TNetFile::Recv(), TXSocket::Recv(), TFTP::RenameFile(), TAuthenticate::RfioAuth(), TAuthenticate::SecureRecv(), TAuthenticate::SendRSAPublicKey(), TProofServ::Setup(), TXSlave::SetupServ(), TSlaveLite::SetupServ(), SRPAuthenticate(), TAuthenticate::SshAuth(), TNetFile::SysStat(), TApplicationRemote::TApplicationRemote(), TPacketizer::ValidateFiles(), and TPacketizerAdaptive::ValidateFiles().
Definition at line 705 of file TSocket.cxx.
References TObject::Error(), kMESS_STRING, n, and Recv().
Definition at line 731 of file TSocket.cxx.
References TBuffer::BufferSize(), n, TBufferFile::ReadString(), Recv(), and TMessage::What().
Int_t TSocket::RecvRaw | ( | void * | buffer, | |
Int_t | length, | |||
ESendRecvOptions | opt = kDefault | |||
) | [virtual] |
Definition at line 862 of file TSocket.cxx.
References Close(), fBytesRecv, fSocket, gSystem, TSystem::RecvRaw(), TSystem::ResetErrno(), and Touch().
Referenced by TFTP::GetFile(), TWebFile::GetFromWeb10(), TApplicationServer::HandleUrgentData(), TProofServ::HandleUrgentData(), TApplicationRemote::Interrupt(), ROOT::NetRecvRaw(), TNetFile::ReadBuffer(), TNetFile::ReadBuffers(), TApplicationServer::ReceiveFile(), TProofServ::ReceiveFile(), TApplicationRemote::RecvLogFile(), TPSocket::RecvRaw(), and TAuthenticate::SecureRecv().
virtual Int_t TSocket::Reconnect | ( | ) | [inline, virtual] |
Definition at line 501 of file TSocket.cxx.
References buf, Close(), TObject::Error(), fBytesRecv, fBytesSent, fCompress, fgBytesRecv, fgBytesSent, fSocket, TMessage::GetCompressionLevel(), gSystem, TBuffer::IsReading(), kMESS_ACK, n, TSystem::RecvRaw(), TSystem::ResetErrno(), SendProcessIDs(), TSystem::SendRaw(), SendStreamerInfos(), TMessage::SetLength(), and Touch().
Referenced by TFTP::AccessPathName(), TProof::AddWorkers(), TProof::AskForOutput(), TAuthenticate::Authenticate(), Authenticate(), TAuthenticate::AuthExists(), TProof::Broadcast(), TApplicationRemote::Broadcast(), TApplicationServer::BrowseDirectory(), TApplicationServer::BrowseFile(), TApplicationServer::BrowseKey(), TFTP::ChangeDirectory(), TFTP::ChangePermission(), TApplicationRemote::CheckFile(), TProof::CheckFile(), TRootSecContext::CleanupSecContext(), TAuthenticate::ClearAuth(), TNetFile::Close(), TFTP::Close(), TApplicationRemote::CollectInput(), TNetFile::ConnectServer(), TProof::CreateMerger(), TProofServLite::CreateServer(), TFTP::DeleteDirectory(), TFTP::DeleteFile(), Spy::DoButton(), TProofServ::ErrorHandler(), TNetFile::Flush(), TFTP::FreeDirectory(), TProofServ::Get(), TFTP::GetDirEntry(), TFTP::GetFile(), TProof::GetListOfSlaveInfos(), TProofServ::GetNextPacket(), TFTP::GetPathInfo(), TProof::GetTreeHeader(), GlobusAuthenticate(), TProof::GoParallel(), TProofServ::HandleCache(), TProofServ::HandleCheckFile(), TApplicationServer::HandleCheckFile(), TXSlave::HandleError(), TProofPlayerSlave::HandleGetTreeHeader(), TProof::HandleInputMessage(), TProofServ::HandleProcess(), TProofServ::HandleQueryList(), TProofServ::HandleSigPipe(), TProofServ::HandleSocketInput(), TProofServ::HandleSubmerger(), TProofPlayerSlave::HandleTimer(), TProofPlayerRemote::HandleTimer(), TVirtualPacketizer::HandleTimer(), TProofPlayerSuperMaster::HandleTimer(), hclient(), hserv(), TPSocket::Init(), Krb5Authenticate(), TFTP::ListDirectory(), TFTP::MakeDirectory(), ROOT::NetSend(), TProofServLogHandler::Notify(), TASLogHandler::Notify(), OldSlaveAuthSetup(), TFTP::OpenDirectory(), TFTP::PrintDirectory(), TApplicationServer::ProcessLine(), TProofServ::ProcessNext(), TProofPlayerRemote::Progress(), TAuthenticate::ProofAuthSetup(), TFTP::PutFile(), TNetFile::ReadBuffer(), TNetFile::ReadBuffers(), TFTP::RenameFile(), TAuthenticate::RfioAuth(), TAuthenticate::SecureSend(), Send(), TXSocket::Send(), TPSocket::Send(), TProofServ::SendAsynMessage(), TApplicationServer::SendCanvases(), TProof::SendDataSetStatus(), TProof::SendFile(), TProof::SendGroupView(), TProofServ::SendLogFile(), TApplicationServer::SendLogFile(), SendObject(), TProofServ::SendParallel(), SendProcessIDs(), TProofServ::SendResults(), TAuthenticate::SendRSAPublicKey(), TProofServ::SendStatistics(), SendStreamerInfos(), TXProofServ::Setup(), TProofServLite::Setup(), TApplicationServer::Setup(), TProofServ::Setup(), TProofServ::SetupCommon(), TProofServLite::SetupOnFork(), SRPAuthenticate(), TAuthenticate::SshAuth(), TProofSuperMaster::StartSlaves(), TProofCondor::StartSlaves(), TNetFile::SysClose(), TNetFile::SysOpen(), TNetFile::SysStat(), TProof::TerminateWorker(), TProof::UploadPackage(), TPacketizer::ValidateFiles(), TPacketizerAdaptive::ValidateFiles(), and TNetFile::WriteBuffer().
Definition at line 581 of file TSocket.cxx.
References Send(), and TMessage::WriteObject().
Referenced by TApplicationRemote::CollectInput(), TProofServ::HandleDataSets(), TProofServ::HandleRetrieve(), and TProofServ::SendResults().
Int_t TSocket::SendRaw | ( | const void * | buffer, | |
Int_t | length, | |||
ESendRecvOptions | opt = kDefault | |||
) | [virtual] |
Definition at line 601 of file TSocket.cxx.
References Close(), fBytesSent, fgBytesSent, fSocket, gSystem, TSystem::ResetErrno(), TSystem::SendRaw(), and Touch().
Referenced by TProof::BroadcastRaw(), TApplicationRemote::BroadcastRaw(), TWebFile::GetFromWeb10(), TApplicationServer::HandleUrgentData(), TProofServ::HandleUrgentData(), TApplicationRemote::Interrupt(), Krb5Authenticate(), ROOT::NetSend(), ROOT::NetSendRaw(), TAuthenticate::ProofAuthSetup(), TFTP::PutFile(), TNetFile::ReadBuffers(), TAuthenticate::SecureSend(), TApplicationRemote::SendFile(), TProof::SendFile(), TProofServ::SendLogFile(), TApplicationServer::SendLogFile(), TPSocket::SendRaw(), TAuthenticate::SendRSAPublicKey(), and TNetFile::WriteBuffer().
void TSocket::SetCompressionLevel | ( | Int_t | level = 1 |
) |
Definition at line 1015 of file TSocket.cxx.
References fCompress.
Referenced by TXProofServ::CreateServer(), TProofServ::CreateServer(), and hclient().
Int_t TSocket::SetOption | ( | ESockOptions | opt, | |
Int_t | val | |||
) | [virtual] |
Definition at line 982 of file TSocket.cxx.
References fSocket, gSystem, and TSystem::SetSockOpt().
Referenced by TRootSecContext::CleanupSecContext(), TPSocket::Init(), TPSocket::RecvRaw(), TPSocket::SendRaw(), TPSocket::SetOption(), TXProofServ::Setup(), TProofServLite::Setup(), TApplicationServer::Setup(), TProofServ::Setup(), and TXSlave::SetupServ().
void TSocket::SetRemoteProtocol | ( | Int_t | rproto | ) | [inline] |
void TSocket::SetSecContext | ( | TSecContext * | ctx | ) | [inline] |
Definition at line 177 of file TSocket.h.
References fSecContext.
Referenced by TPServerSocket::Accept(), and SrvAuthImpl().
void TSocket::SetService | ( | const char * | service | ) | [inline] |
void TSocket::SetServType | ( | Int_t | st | ) | [inline] |
void TSocket::SetUrl | ( | const char * | url | ) | [inline] |
void TSocket::Touch | ( | ) | [inline] |
Definition at line 182 of file TSocket.h.
References fLastUsage, fLastUsageMtx, R__LOCKGUARD2, and TTimeStamp::Set().
Referenced by TXSocket::Ping(), TXSocket::ProcessUnsolicitedMsg(), Recv(), RecvRaw(), TXSocket::RecvRaw(), Send(), TXSocket::SendCoordinator(), TXSocket::SendInterrupt(), TXSocket::SendRaw(), SendRaw(), and TXSocket::SendUrgent().
Int_t TSocket::GetClientProtocol | ( | ) | [static] |
Definition at line 1391 of file TSocket.cxx.
References fgClientProtocol.
Referenced by TRootAuth::Authenticate(), TRootAuth::ClientVersion(), G__G__Net_152_0_59(), G__setup_memfuncTSocket(), TAuthenticate::GetClientProtocol(), TXSlave::GetProofdProtocol(), TXNetFile::GetRootdProtocol(), and TAuthenticate::SshAuth().
ULong64_t TSocket::GetSocketBytesSent | ( | ) | [static] |
Definition at line 1411 of file TSocket.cxx.
References fgBytesSent.
Referenced by G__G__Net_152_0_60(), and G__setup_memfuncTSocket().
ULong64_t TSocket::GetSocketBytesRecv | ( | ) | [static] |
Definition at line 1419 of file TSocket.cxx.
Referenced by G__G__Net_152_0_61(), and G__setup_memfuncTSocket().
TSocket * TSocket::CreateAuthSocket | ( | const char * | user, | |
const char * | host, | |||
Int_t | port, | |||
Int_t | size = 0 , |
|||
Int_t | tcpwindowsize = -1 , |
|||
TSocket * | s = 0 | |||
) | [static] |
Definition at line 1313 of file TSocket.cxx.
References gSocketAuthMutex, and R__LOCKGUARD2.
Referenced by authclient(), TNetFile::ConnectServer(), G__G__Net_152_0_62(), G__G__Net_152_0_63(), G__setup_memfuncTSocket(), TFTP::Init(), and TSlave::Init().
TSocket * TSocket::CreateAuthSocket | ( | const char * | url, | |
Int_t | size = 0 , |
|||
Int_t | tcpwindowsize = -1 , |
|||
TSocket * | s = 0 | |||
) | [static] |
Definition at line 1168 of file TSocket.cxx.
References Authenticate(), TString::BeginsWith(), Close(), TString::Contains(), TString::EndsWith(), GetPort(), gSocketAuthMutex, TString::Index(), IsAuthenticated(), IsValid(), kFALSE, kTRUE, TString::Length(), R__LOCKGUARD2, TString::Remove(), TString::ReplaceAll(), TString::Resize(), and TSocket().
void TSocket::NetError | ( | const char * | where, | |
Int_t | error | |||
) | [static] |
Definition at line 1399 of file TSocket.cxx.
References TObject::Error(), gDebug, gRootdErrStr, and kErrError.
Referenced by Authenticate(), G__G__Net_152_0_64(), and G__setup_memfuncTSocket().
Bool_t TSocket::Authenticate | ( | const char * | user | ) | [protected] |
void TSocket::SetDescriptor | ( | Int_t | desc | ) | [inline, protected] |
void TSocket::SendStreamerInfos | ( | const TMessage & | mess | ) | [protected] |
void TSocket::SendProcessIDs | ( | const TMessage & | mess | ) | [protected] |
Option_t* TSocket::GetOption | ( | ) | const [inline, private, virtual] |
Reimplemented from TObject.
Definition at line 127 of file TSocket.h.
References TObject::GetOption().
virtual void TSocket::Close | ( | Option_t * | opt = "" |
) | [virtual] |
virtual Int_t TSocket::GetDescriptor | ( | ) | const [inline, virtual] |
TInetAddress TSocket::GetInetAddress | ( | ) | const [inline] |
virtual TInetAddress TSocket::GetLocalInetAddress | ( | ) | [virtual] |
Int_t TSocket::GetPort | ( | ) | const [inline] |
const char* TSocket::GetService | ( | ) | const [inline] |
Int_t TSocket::GetServType | ( | ) | const [inline] |
virtual Int_t TSocket::GetLocalPort | ( | ) | [virtual] |
UInt_t TSocket::GetBytesSent | ( | ) | const [inline] |
UInt_t TSocket::GetBytesRecv | ( | ) | const [inline] |
Int_t TSocket::GetCompressionLevel | ( | ) | const [inline] |
Int_t TSocket::GetErrorCode | ( | ) | const |
virtual Int_t TSocket::GetOption | ( | ESockOptions | opt, | |
Int_t & | val | |||
) | [virtual] |
Int_t TSocket::GetRemoteProtocol | ( | ) | const [inline] |
TSecContext* TSocket::GetSecContext | ( | ) | const [inline] |
Int_t TSocket::GetTcpWindowSize | ( | ) | const [inline] |
TTimeStamp TSocket::GetLastUsage | ( | ) | [inline] |
const char* TSocket::GetUrl | ( | ) | const [inline] |
virtual Bool_t TSocket::IsAuthenticated | ( | ) | const [inline, virtual] |
virtual Bool_t TSocket::IsValid | ( | ) | const [inline, virtual] |
virtual Int_t TSocket::RecvRaw | ( | void * | buffer, | |
Int_t | length, | |||
ESendRecvOptions | opt = kDefault | |||
) | [virtual] |
virtual Int_t TSocket::SendRaw | ( | const void * | buffer, | |
Int_t | length, | |||
ESendRecvOptions | opt = kDefault | |||
) | [virtual] |
void TSocket::SetCompressionLevel | ( | Int_t | level = 1 |
) |
virtual Int_t TSocket::SetOption | ( | ESockOptions | opt, | |
Int_t | val | |||
) | [virtual] |
void TSocket::SetRemoteProtocol | ( | Int_t | rproto | ) | [inline] |
void TSocket::SetSecContext | ( | TSecContext * | ctx | ) | [inline] |
void TSocket::SetService | ( | const char * | service | ) | [inline] |
void TSocket::SetServType | ( | Int_t | st | ) | [inline] |
void TSocket::SetUrl | ( | const char * | url | ) | [inline] |
void TSocket::Touch | ( | ) | [inline] |
Definition at line 182 of file TSocket.h.
References fLastUsage, fLastUsageMtx, R__LOCKGUARD2, and TTimeStamp::Set().
static Int_t TSocket::GetClientProtocol | ( | ) | [static] |
static ULong64_t TSocket::GetSocketBytesSent | ( | ) | [static] |
static ULong64_t TSocket::GetSocketBytesRecv | ( | ) | [static] |
static TSocket* TSocket::CreateAuthSocket | ( | const char * | user, | |
const char * | host, | |||
Int_t | port, | |||
Int_t | size = 0 , |
|||
Int_t | tcpwindowsize = -1 , |
|||
TSocket * | s = 0 | |||
) | [static] |
static TSocket* TSocket::CreateAuthSocket | ( | const char * | url, | |
Int_t | size = 0 , |
|||
Int_t | tcpwindowsize = -1 , |
|||
TSocket * | s = 0 | |||
) | [static] |
static void TSocket::NetError | ( | const char * | where, | |
Int_t | error | |||
) | [static] |
TServerSocket [friend] |
TProofServ [friend] |
TInetAddress TSocket::fAddress [protected] |
Definition at line 88 of file TSocket.h.
Referenced by GetInetAddress(), GetPort(), TPSocket::TPSocket(), TSocket(), and TXSocket::TXSocket().
UInt_t TSocket::fBytesRecv [protected] |
Definition at line 89 of file TSocket.h.
Referenced by GetBytesRecv(), TXSocket::PickUpReady(), TXSocket::PostMsg(), TXSocket::ProcessUnsolicitedMsg(), Recv(), TXSocket::Recv(), RecvRaw(), TXSocket::RecvRaw(), Send(), TPSocket::TPSocket(), and TSocket().
UInt_t TSocket::fBytesSent [protected] |
Definition at line 90 of file TSocket.h.
Referenced by GetBytesSent(), Recv(), Send(), TXSocket::Send(), TXSocket::SendRaw(), SendRaw(), TPSocket::TPSocket(), and TSocket().
Int_t TSocket::fCompress [protected] |
Definition at line 91 of file TSocket.h.
Referenced by GetCompressionLevel(), Send(), TXSocket::Send(), TPSocket::Send(), SetCompressionLevel(), TPSocket::TPSocket(), and TSocket().
TInetAddress TSocket::fLocalAddress [protected] |
Definition at line 93 of file TSocket.h.
Referenced by GetLocalInetAddress(), TPSocket::GetLocalInetAddress(), GetLocalPort(), TPSocket::TPSocket(), and TSocket().
Int_t TSocket::fRemoteProtocol [protected] |
Definition at line 94 of file TSocket.h.
Referenced by Authenticate(), TXSocket::Create(), GetRemoteProtocol(), SetRemoteProtocol(), TPSocket::TPSocket(), TSocket(), and TXSocket::TXSocket().
TSecContext* TSocket::fSecContext [protected] |
Definition at line 95 of file TSocket.h.
Referenced by Authenticate(), GetSecContext(), IsAuthenticated(), SetSecContext(), TPSocket::TPSocket(), and TSocket().
TString TSocket::fService [protected] |
Definition at line 97 of file TSocket.h.
Referenced by GetService(), SetService(), TPSocket::TPSocket(), and TSocket().
EServiceType TSocket::fServType [protected] |
Definition at line 98 of file TSocket.h.
Referenced by Authenticate(), GetServType(), SetServType(), TPSocket::TPSocket(), TSocket(), and TXSocket::TXSocket().
Int_t TSocket::fSocket [protected] |
Definition at line 99 of file TSocket.h.
Referenced by Close(), GetDescriptor(), GetErrorCode(), GetLocalInetAddress(), GetOption(), TPSocket::Init(), IsValid(), Recv(), RecvRaw(), Select(), Send(), SendRaw(), SetDescriptor(), SetOption(), TPSocket::TPSocket(), TSocket(), and TXSocket::TXSocket().
Int_t TSocket::fTcpWindowSize [protected] |
Definition at line 100 of file TSocket.h.
Referenced by GetTcpWindowSize(), TPSocket::TPSocket(), TSocket(), and TXSocket::TXSocket().
TString TSocket::fUrl [protected] |
Definition at line 101 of file TSocket.h.
Referenced by Authenticate(), ClassImp(), TXSocket::Create(), GetUrl(), TXSocket::Reconnect(), TXUnixSocket::Reconnect(), SetUrl(), TSocket(), and TXSocket::TXSocket().
TBits TSocket::fBitsInfo [protected] |
TList* TSocket::fUUIDs [protected] |
TVirtualMutex* TSocket::fLastUsageMtx [protected] |
TTimeStamp TSocket::fLastUsage [protected] |
ULong64_t TSocket::fgBytesRecv [static, protected] |
Definition at line 108 of file TSocket.h.
Referenced by Recv(), TXSocket::Recv(), TXSocket::RecvRaw(), and Send().
ULong64_t TSocket::fgBytesSent [static, protected] |
Definition at line 109 of file TSocket.h.
Referenced by GetSocketBytesSent(), Recv(), Send(), TXSocket::Send(), and SendRaw().
Int_t TSocket::fgClientProtocol [static, protected] |
TSecContext* TSocket::fSecContext [protected] |
TList* TSocket::fUUIDs [protected] |
TVirtualMutex* TSocket::fLastUsageMtx [protected] |