Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
virtual ~XrdProofPhyConn ()
 
void Close (const char *opt="")
 Close the connection.
 
XrdClientMessageReadMsg ()
 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.
 
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.
 
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>

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 Symbol 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.

  • proof/proofd/inc/XrdProofPhyConn.h
  • proof/proofd/src/XrdProofPhyConn.cxx