Logo ROOT  
Reference Guide
XrdProofPhyConn Class Reference

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...
 
XrdClientMessageReadMsg ()
 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...
 
virtual void Close (const char *opt="")
 Close connection. 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...
 
virtual XrdClientMessageReadMsg ()
 Pickup message from the queue. More...
 
virtual int ReadRaw (void *buf, int len, XrdClientPhyConnection *p=0)
 Low level receive call. More...
 
XrdClientMessageSendReq (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...
 
virtual void SetAsync (XrdClientAbsUnsolMsgHandler *uh, XrdProofConnSender_t=0, void *=0)
 Set handler of unsolicited responses. More...
 
void SetSID (kXR_char *sid)
 Set our stream id, to match against that one in the server's response. More...
 
virtual int WriteRaw (const void *buf, int len, XrdClientPhyConnection *p=0)
 Low level write call. More...
 
- Public Member Functions inherited from XrdClientAbsUnsolMsgHandler
virtual ~XrdClientAbsUnsolMsgHandler ()
 
virtual UnsolRespProcResult ProcessUnsolicitedMsg (XrdClientUnsolMsgSender *sender, XrdClientMessage *unsolmsg)=0
 

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>

Inheritance diagram for XrdProofPhyConn:
[legend]

Constructor & Destructor Documentation

◆ XrdProofPhyConn()

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.

◆ ~XrdProofPhyConn()

virtual XrdProofPhyConn::~XrdProofPhyConn ( )
inlinevirtual

Definition at line 45 of file XrdProofPhyConn.h.

Member Function Documentation

◆ Close()

void XrdProofPhyConn::Close ( const char *  opt = "")
virtual

Close the connection.

Reimplemented from XrdProofConn.

Definition at line 245 of file XrdProofPhyConn.cxx.

◆ Connect()

void XrdProofPhyConn::Connect ( int  fd = -1)
privatevirtual

Run the connection attempts: the result is stored in fConnected.

Reimplemented from XrdProofConn.

Definition at line 137 of file XrdProofPhyConn.cxx.

◆ GetAccessToSrv()

bool XrdProofPhyConn::GetAccessToSrv ( XrdClientPhyConnection = 0)
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.

◆ Init()

bool XrdProofPhyConn::Init ( const char *  url,
int  fd = -1 
)
privatevirtual

Initialization.

Reimplemented from XrdProofConn.

Definition at line 75 of file XrdProofPhyConn.cxx.

◆ ReadMsg()

XrdClientMessage * XrdProofPhyConn::ReadMsg ( )
virtual

Pickup message from the queue.

Reimplemented from XrdProofConn.

Definition at line 275 of file XrdProofPhyConn.cxx.

◆ ReadRaw()

int XrdProofPhyConn::ReadRaw ( void *  buf,
int  len,
XrdClientPhyConnection = 0 
)
virtual

Low level write call.

Reimplemented from XrdProofConn.

Definition at line 342 of file XrdProofPhyConn.cxx.

◆ SetAsync()

void XrdProofPhyConn::SetAsync ( XrdClientAbsUnsolMsgHandler uh,
XrdProofConnSender_t  = 0,
void *  = 0 
)
virtual

Set handler of unsolicited responses.

Reimplemented from XrdProofConn.

Definition at line 265 of file XrdProofPhyConn.cxx.

◆ TryConnect()

int XrdProofPhyConn::TryConnect ( int  fd = -1)
privatevirtual

Connect to remote server.

Reimplemented from XrdProofConn.

Definition at line 200 of file XrdProofPhyConn.cxx.

◆ WriteRaw()

int XrdProofPhyConn::WriteRaw ( const void *  buf,
int  len,
XrdClientPhyConnection = 0 
)
virtual

Low level write call.

Reimplemented from XrdProofConn.

Definition at line 330 of file XrdProofPhyConn.cxx.

Friends And Related Function Documentation

◆ TXSocket

friend class TXSocket
friend

Definition at line 30 of file XrdProofPhyConn.h.

◆ TXUnixSocket

friend class TXUnixSocket
friend

Definition at line 31 of file XrdProofPhyConn.h.

Member Data Documentation

◆ fTcp

bool XrdProofPhyConn::fTcp
private

Definition at line 35 of file XrdProofPhyConn.h.


The documentation for this class was generated from the following files: