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. | |
virtual | ~XrdProofPhyConn () |
void | Close (const char *opt="") |
Close the connection. | |
XrdClientMessage * | ReadMsg () |
Pickup message from the queue. | |
int | ReadRaw (void *buf, int len, XrdClientPhyConnection *=0) |
Low level write call. | |
void | SetAsync (XrdClientAbsUnsolMsgHandler *uh, XrdProofConnSender_t=0, void *=0) |
Set handler of unsolicited responses. | |
int | WriteRaw (const void *buf, int len, XrdClientPhyConnection *=0) |
Low level write call. | |
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. | |
virtual | ~XrdProofConn () |
Destructor. | |
const char * | GetLastErr () |
int | GetLogConnID () const |
int | GetLowSocket () |
Return the socket descriptor of the underlying connection. | |
int | GetOpenError () const |
int | GetServType () const |
short | GetSessionID () const |
const char * | GetUrl () |
bool | IsValid () const |
Test validity of this connection. | |
XReqErrorType | LowWrite (XPClientRequest *, const void *, int) |
Send request to server (NB: req is marshalled at this point, so we need also the plain reqDataLen) | |
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. | |
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. | |
void | SetSID (kXR_char *sid) |
Set our stream id, to match against that one in the server's response. | |
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. | |
bool | GetAccessToSrv (XrdClientPhyConnection *=0) |
Gets access to the connected server. | |
bool | Init (const char *url, int fd=-1) |
Initialization. | |
int | TryConnect (int fd=-1) |
Connect to remote server. | |
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). | |
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). | |
#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.
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.
|
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.
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.