34 :
TXSocket(0,'i',psid,capver,0,-1,handler)
41 if (!(fConn->IsValid())) {
42 Error(
"TXUnixSocket",
"severe error occurred while opening a connection" 43 " to server [%s]", fUrl.Data());
48 fUser = fConn->fUser.c_str();
49 fHost = fConn->fHost.c_str();
51 fXrdProofdVersion = fConn->fRemoteProtocol;
52 fRemoteProtocol = fConn->fRemoteProtocol;
68 Info(
"Reconnect",
"%p: %p: %d: trying to reconnect on %s",
this,
74 if (tryreconnect == 0)
75 Info(
"Reconnect",
"%p: reconnection attempts explicitly disabled!",
this);
77 Info(
"Reconnect",
"%p: server does not support reconnections (protocol: %d < 1005)",
96 Info(
"Reconnect",
"%p: %p: attempt %s",
this,
fConn,
virtual int GetPid()
Get process id.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
virtual void Connect(int=-1)
Run the connection attempts: the result is stored in fConnected.
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 se...
Implementation of TXSocket using PF_UNIX sockets.
void Error(const char *location, const char *msgfmt,...)
R__EXTERN TSystem * gSystem
Handler of asynchronous events for XProofD sockets.
#define XrdSysMutexHelper
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
High level handler of connections to XProofD.
static void GetRetryParam(int &maxtry, int &timewait)
Retrieve current values of the retry control parameters, numer of retries and wait time between attem...
virtual void Close(const char *opt="")
Close connection.
Int_t Reconnect()
Try reconnection after failure.
bool IsValid() const
Test validity of this connection.
const char * Data() const