#include <XrdProofPhyConn.h>
Inheritance diagram for XrdProofPhyConn:
Public Member Functions | |
XrdProofPhyConn (const char *url, int psid=-1, char ver=-1, XrdClientAbsUnsolMsgHandler *uh=0, bool tcp=0) | |
virtual | ~XrdProofPhyConn () |
void | Close (const char *opt="") |
int | ReadRaw (void *buf, int len) |
XrdClientMessage * | ReadMsg () |
void | SetAsync (XrdClientAbsUnsolMsgHandler *uh, XrdProofConnSender_t=0, void *=0) |
int | WriteRaw (const void *buf, int len) |
Private Member Functions | |
void | Connect () |
int | TryConnect () |
bool | GetAccessToSrv () |
bool | Init (const char *url) |
Private Attributes | |
bool | fTcp |
Friends | |
class | TXSocket |
class | TXUnixSocket |
Definition at line 30 of file XrdProofPhyConn.h.
XrdProofPhyConn::XrdProofPhyConn | ( | const char * | url, | |
int | psid = -1 , |
|||
char | ver = -1 , |
|||
XrdClientAbsUnsolMsgHandler * | uh = 0 , |
|||
bool | tcp = 0 | |||
) |
Definition at line 47 of file XrdProofPhyConn.cxx.
References XrdProofConn::fMutex, fTcp, Init(), TRACE, URLTAG, XPDLOC, and XrdSysRecMutex.
virtual XrdProofPhyConn::~XrdProofPhyConn | ( | ) | [inline, virtual] |
void XrdProofPhyConn::Connect | ( | ) | [private, virtual] |
Reimplemented from XrdProofConn.
Definition at line 128 of file XrdProofPhyConn.cxx.
References Close(), EnvGetLong, XrdOucString::erase(), XrdProofConn::fConnected, XrdProofConn::fLastErr, XrdProofConn::fLastErrMsg, GetAccessToSrv(), XrdProofConn::GetRetryParam(), i, kXR_NotAuthorized, NAME_CONNECTTIMEOUT, NAME_FIRSTCONNECTMAXCNT, XrdOucString::rfind(), Sleep(), sleep, TRACE, TryConnect(), and XPDLOC.
Referenced by Init().
int XrdProofPhyConn::TryConnect | ( | ) | [private, virtual] |
Reimplemented from XrdProofConn.
Definition at line 190 of file XrdProofPhyConn.cxx.
References XrdClientPhyConnection::Connect(), XrdProofConn::fConnected, XrdProofConn::fLogConnID, XrdProofConn::fPhyConn, XrdProofConn::fStreamid, fTcp, XrdProofConn::fUnsolMsgHandler, XrdProofConn::fUrl, SetAsync(), TRACE, URLTAG, and XPDLOC.
Referenced by Connect().
bool XrdProofPhyConn::GetAccessToSrv | ( | ) | [private, virtual] |
Reimplemented from XrdProofConn.
Definition at line 265 of file XrdProofPhyConn.cxx.
References Close(), XrdProofConn::DoHandShake(), XrdProofConn::fPhyConn, XrdClientPhyConnection::fServerType, XrdProofConn::fServerType, XrdClientPhyConnection::IsLogged(), kNo, kSTBaseXrootd, XrdProofConn::kSTError, XrdProofConn::kSTNone, XrdProofConn::kSTProofd, XrdProofConn::kSTXProofd, XrdProofConn::Login(), XrdClientPhyConnection::StartReader(), TRACE, URLTAG, and XPDLOC.
Referenced by Connect().
bool XrdProofPhyConn::Init | ( | const char * | url | ) | [private, virtual] |
Reimplemented from XrdProofConn.
Definition at line 69 of file XrdProofPhyConn.cxx.
References XrdOucString::c_str(), Connect(), DWORD, XrdProofConn::fConnected, XrdProofConn::fHost, XrdProofConn::fPort, fTcp, XrdProofConn::fUrl, XrdProofConn::fUser, XrdNetDNS::getHostName(), XrdClientUrlInfo::Host, int, length, XrdOucString::length(), XrdClientUrlInfo::Port, XrdClientUrlInfo::TakeUrl(), TRACE, XrdClientUrlInfo::User, and XPDLOC.
Referenced by XrdProofPhyConn().
void XrdProofPhyConn::Close | ( | const char * | opt = "" |
) | [virtual] |
Reimplemented from XrdProofConn.
Definition at line 227 of file XrdProofPhyConn.cxx.
References XrdClientPhyConnection::Disconnect(), XrdProofConn::fConnected, and XrdProofConn::fPhyConn.
Referenced by Connect(), GetAccessToSrv(), and ~XrdProofPhyConn().
int XrdProofPhyConn::ReadRaw | ( | void * | buf, | |
int | len | |||
) | [virtual] |
Reimplemented from XrdProofConn.
Definition at line 323 of file XrdProofPhyConn.cxx.
References XrdProofConn::fPhyConn, and XrdClientPhyConnection::ReadRaw().
XrdClientMessage * XrdProofPhyConn::ReadMsg | ( | ) | [virtual] |
Reimplemented from XrdProofConn.
Definition at line 257 of file XrdProofPhyConn.cxx.
References XrdProofConn::fPhyConn, XrdProofConn::fStreamid, and XrdClientPhyConnection::ReadMessage().
void XrdProofPhyConn::SetAsync | ( | XrdClientAbsUnsolMsgHandler * | uh, | |
XrdProofConnSender_t | = 0 , |
|||
void * | = 0 | |||
) | [virtual] |
Reimplemented from XrdProofConn.
Definition at line 247 of file XrdProofPhyConn.cxx.
References XrdProofConn::fPhyConn, and XrdClientUnsolMsgSender::UnsolicitedMsgHandler.
Referenced by TryConnect().
int XrdProofPhyConn::WriteRaw | ( | const void * | buf, | |
int | len | |||
) | [virtual] |
Reimplemented from XrdProofConn.
Definition at line 311 of file XrdProofPhyConn.cxx.
References XrdProofConn::fPhyConn, and XrdClientPhyConnection::WriteRaw().
friend class TXSocket [friend] |
friend class TXUnixSocket [friend] |
bool XrdProofPhyConn::fTcp [private] |
Definition at line 37 of file XrdProofPhyConn.h.
Referenced by Init(), TryConnect(), and XrdProofPhyConn().