ROOT 6.12/07 Reference Guide |
Definition at line 28 of file XrdProofPhyConn.h.
Public Member Functions | |
XrdProofPhyConn (const char *url, int psid=-1, char ver=-1, XrdClientAbsUnsolMsgHandler *uh=0, bool tcp=0, int fd=-1) | |
Constructor. More... | |
virtual | ~XrdProofPhyConn () |
void | Close (const char *opt="") |
Close the connection. More... | |
XrdClientMessage * | ReadMsg () |
Pickup message from the queue. More... | |
int | ReadRaw (void *buf, int len, XrdClientPhyConnection *=0) |
Low level write call. More... | |
void | SetAsync (XrdClientAbsUnsolMsgHandler *uh, XrdProofConnSender_t=0, void *=0) |
Set handler of unsolicited responses. More... | |
int | WriteRaw (const void *buf, int len, XrdClientPhyConnection *=0) |
Low level write call. More... | |
Public Member Functions inherited from XrdProofConn | |
XrdProofConn (const char *url, char mode='M', int psid=-1, char ver=-1, XrdClientAbsUnsolMsgHandler *uh=0, const char *logbuf=0) | |
Constructor. More... | |
virtual | ~XrdProofConn () |
Destructor. More... | |
const char * | GetLastErr () |
int | GetLogConnID () const |
int | GetLowSocket () |
Return the socket descriptor of the underlying connection. More... | |
int | GetOpenError () const |
int | GetServType () const |
short | GetSessionID () const |
const char * | GetUrl () |
bool | IsValid () const |
Test validity of this connection. More... | |
XReqErrorType | LowWrite (XPClientRequest *, const void *, int) |
Send request to server (NB: req is marshalled at this point, so we need also the plain reqDataLen) More... | |
virtual UnsolRespProcResult | ProcessUnsolicitedMsg (XrdClientUnsolMsgSender *s, XrdClientMessage *m) |
We are here if an unsolicited response comes from a logical conn The response comes in the form of an XrdClientMessage *, that must NOT be destroyed after processing. More... | |
XrdClientMessage * | SendReq (XPClientRequest *req, const void *reqData, char **answData, const char *CmdName, bool notifyerr=1) |
SendReq tries to send a single command for a number of times. More... | |
void | SetSID (kXR_char *sid) |
Set our stream id, to match against that one in the server's response. More... | |
Public Member Functions inherited from XrdClientAbsUnsolMsgHandler | |
virtual | ~XrdClientAbsUnsolMsgHandler () |
Private Member Functions | |
void | Connect (int fd=-1) |
Run the connection attempts: the result is stored in fConnected. More... | |
bool | GetAccessToSrv (XrdClientPhyConnection *=0) |
Gets access to the connected server. More... | |
bool | Init (const char *url, int fd=-1) |
Initialization. More... | |
int | TryConnect (int fd=-1) |
Connect to remote server. More... | |
Private Attributes | |
bool | fTcp |
Friends | |
class | TXSocket |
class | TXUnixSocket |
Additional Inherited Members | |
Public Types inherited from XrdProofConn | |
enum | ESrvType { kSTError = -1, kSTNone, kSTXProofd, kSTProofd } |
Static Public Member Functions inherited from XrdProofConn | |
static void | GetRetryParam (int &maxtry, int &timewait) |
Retrieve current values of the retry control parameters, numer of retries and wait time between attempts (in seconds). More... | |
static void | SetRetryParam (int maxtry=5, int timewait=2) |
Change values of the retry control parameters, numer of retries and wait time between attempts (in seconds). More... | |
#include <XrdProofPhyConn.h>
XrdProofPhyConn::XrdProofPhyConn | ( | const char * | url, |
int | psid = -1 , |
||
char | capver = -1 , |
||
XrdClientAbsUnsolMsgHandler * | uh = 0 , |
||
bool | tcp = 0 , |
||
int | fd = -1 |
||
) |
Constructor.
Open a direct connection (Unix or Tcp) to a remote XrdProofd instance. Does not use the connection manager.
Definition at line 53 of file XrdProofPhyConn.cxx.
|
inlinevirtual |
Definition at line 45 of file XrdProofPhyConn.h.
|
virtual |
Close the connection.
Reimplemented from XrdProofConn.
Definition at line 245 of file XrdProofPhyConn.cxx.
|
privatevirtual |
Run the connection attempts: the result is stored in fConnected.
Reimplemented from XrdProofConn.
Definition at line 137 of file XrdProofPhyConn.cxx.
|
privatevirtual |
Gets access to the connected server.
The login and authorization steps are performed here.
Reimplemented from XrdProofConn.
Definition at line 284 of file XrdProofPhyConn.cxx.
|
privatevirtual |
|
virtual |
Pickup message from the queue.
Reimplemented from XrdProofConn.
Definition at line 275 of file XrdProofPhyConn.cxx.
|
virtual |
Low level write call.
Reimplemented from XrdProofConn.
Definition at line 342 of file XrdProofPhyConn.cxx.
|
virtual |
Set handler of unsolicited responses.
Reimplemented from XrdProofConn.
Definition at line 265 of file XrdProofPhyConn.cxx.
|
privatevirtual |
Connect to remote server.
Reimplemented from XrdProofConn.
Definition at line 200 of file XrdProofPhyConn.cxx.
|
virtual |
Low level write call.
Reimplemented from XrdProofConn.
Definition at line 330 of file XrdProofPhyConn.cxx.
|
friend |
Definition at line 30 of file XrdProofPhyConn.h.
|
friend |
Definition at line 31 of file XrdProofPhyConn.h.
|
private |
Definition at line 35 of file XrdProofPhyConn.h.