34 :
TXSocket(0,
'i',psid,capver,0,-1,handler)
42 Error(
"TXUnixSocket",
"severe error occurred while opening a connection" 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.
R__EXTERN TSystem * gSystem
Handler of asynchronous events for XProofD sockets.
#define XrdSysMutexHelper
High level handler of connections to XProofD.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
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.
TXUnixSocket(const char *u, Int_t psid=-1, Char_t ver=-1, TXHandler *handler=0, int fd=-1)
Constructor.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
const char * Data() const