Logo ROOT   6.10/09
Reference Guide
Functions | Variables
pq2ping.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include "Bytes.h"
#include "TSocket.h"
#include "TString.h"
#include "TSystem.h"
#include "TUrl.h"
#include "redirguard.h"
#include "pq2ping.h"
Include dependency graph for pq2ping.cxx:

Functions

Int_t checkUrl (const char *url, const char *flog, bool def_proof)
 Check if something is running at gUrl Return 0 if OK and data server 1 if OK and PROOF server -1 if nothing valid is available. More...
 
Int_t pingServerAt ()
 Check if service is running at 'url' Return 0 if OK -1 if nothing is listening at the URL 1 if not a directory. More...
 
Int_t pingXproofdAt ()
 Check if a XrdProofd service is running on 'port' at 'host' Return 0 if OK -1 if nothing is listening on the port (connection cannot be open) 1 if something is listening but not XPROOFD. More...
 
Int_t pingXrootdAt ()
 Check if a XrdXrootd service is running on 'port' at 'host' Return 0 if OK -1 if nothing is listening on the port (connection cannot be open) 1 if something is listening but not XROOTD. More...
 

Variables

Bool_t gIsProof = kFALSE
 
TUrl gUrl
 
Int_t gverbose
 

Function Documentation

◆ checkUrl()

Int_t checkUrl ( const char *  url,
const char *  flog,
bool  def_proof 
)

Check if something is running at gUrl Return 0 if OK and data server 1 if OK and PROOF server -1 if nothing valid is available.

Definition at line 62 of file pq2ping.cxx.

◆ pingServerAt()

Int_t pingServerAt ( )

Check if service is running at 'url' Return 0 if OK -1 if nothing is listening at the URL 1 if not a directory.

Definition at line 281 of file pq2ping.cxx.

◆ pingXproofdAt()

Int_t pingXproofdAt ( )

Check if a XrdProofd service is running on 'port' at 'host' Return 0 if OK -1 if nothing is listening on the port (connection cannot be open) 1 if something is listening but not XPROOFD.

Definition at line 196 of file pq2ping.cxx.

◆ pingXrootdAt()

Int_t pingXrootdAt ( )

Check if a XrdXrootd service is running on 'port' at 'host' Return 0 if OK -1 if nothing is listening on the port (connection cannot be open) 1 if something is listening but not XROOTD.

Definition at line 125 of file pq2ping.cxx.

Variable Documentation

◆ gIsProof

Bool_t gIsProof = kFALSE

Definition at line 50 of file pq2ping.cxx.

◆ gUrl

TUrl gUrl

Definition at line 49 of file pq2ping.cxx.

◆ gverbose

Int_t gverbose

Definition at line 40 of file pq2main.cxx.