Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
XrdProofdProtocol.cxx File Reference
#include "XrdProofdPlatform.h"
#include "XpdSysError.h"
#include "XpdSysLogger.h"
#include "XrdSys/XrdSysPriv.hh"
#include "XrdOuc/XrdOucStream.hh"
#include "XrdVersion.hh"
#include "Xrd/XrdBuffer.hh"
#include "Xrd/XrdScheduler.hh"
#include "XrdProofdClient.h"
#include "XrdProofdClientMgr.h"
#include "XrdProofdConfig.h"
#include "XrdProofdManager.h"
#include "XrdProofdNetMgr.h"
#include "XrdProofdPriorityMgr.h"
#include "XrdProofdProofServMgr.h"
#include "XrdProofdProtocol.h"
#include "XrdProofdResponse.h"
#include "XrdProofdProofServ.h"
#include "XrdProofSched.h"
#include "XrdROOT.h"
#include "rpdconn.h"
#include "XrdProofdTrace.h"
Include dependency graph for XrdProofdProtocol.cxx:

Macros

#define MAX_ARGS   128
 
#define XPDADOPTSTRING(n, ns, c, s)
 
#define XPDCOND(n, ns)   ((n == -1 && ns == -1) || (n > 0 && n >= ns))
 
#define XPDSETINT(n, ns, i, s)
 
#define XPDSETSTRING(n, ns, c, s)
 

Typedefs

typedef struct ResetCtrlcGuard ResetCtrlcGuard_t
 

Functions

XrdProtocolXrdgetProtocol (const char *, char *parms, XrdProtocol_Config *pi)
 This protocol is meant to live in a shared library.
 
int XrdgetProtocolPort (const char *, char *, XrdProtocol_Config *pi)
 This function is called early on to determine the port we need to use.
 

Variables

static XrdSysLogger gMainLogger
 
XrdOucTrace * XrdProofdTrace = 0
 

Macro Definition Documentation

◆ MAX_ARGS

#define MAX_ARGS   128

Definition at line 77 of file XrdProofdProtocol.cxx.

◆ XPDADOPTSTRING

#define XPDADOPTSTRING (   n,
  ns,
  c,
 
)
Value:
{ char *t = 0; \
XPDSETSTRING(n, ns, t, s); \
if (t && strlen(t)) { \
SafeFree(c); c = t; \
} else \
SafeFree(t); }
#define c(i)
Definition RSha256.hxx:101
const Int_t n
Definition legend1.C:16

Definition at line 90 of file XrdProofdProtocol.cxx.

◆ XPDCOND

#define XPDCOND (   n,
  ns 
)    ((n == -1 && ns == -1) || (n > 0 && n >= ns))

Definition at line 81 of file XrdProofdProtocol.cxx.

◆ XPDSETINT

#define XPDSETINT (   n,
  ns,
  i,
 
)
Value:
{ if (XPDCOND(n,ns)) { \
i = strtol(s.c_str(),0,10); ns = n; }}
#define XPDCOND(n, ns)

Definition at line 100 of file XrdProofdProtocol.cxx.

◆ XPDSETSTRING

#define XPDSETSTRING (   n,
  ns,
  c,
 
)
Value:
{ if (XPDCOND(n,ns)) { \
SafeFree(c); c = strdup(s.c_str()); ns = n; }}

Definition at line 84 of file XrdProofdProtocol.cxx.

Typedef Documentation

◆ ResetCtrlcGuard_t

typedef struct ResetCtrlcGuard ResetCtrlcGuard_t

Function Documentation

◆ XrdgetProtocol()

XrdProtocol * XrdgetProtocol ( const char *  ,
char *  parms,
XrdProtocol_Config *  pi 
)

This protocol is meant to live in a shared library.

The interface below is used by the server to obtain a copy of the protocol object that can be used to decide whether or not a link is talking a particular protocol.

Definition at line 181 of file XrdProofdProtocol.cxx.

◆ XrdgetProtocolPort()

int XrdgetProtocolPort ( const char *  ,
char *  ,
XrdProtocol_Config *  pi 
)

This function is called early on to determine the port we need to use.

The The default is ostensibly 1093 but can be overidden; which we allow.

Definition at line 195 of file XrdProofdProtocol.cxx.

Variable Documentation

◆ gMainLogger

XrdSysLogger gMainLogger
static

Definition at line 53 of file XrdProofdProtocol.cxx.

◆ XrdProofdTrace

XrdOucTrace* XrdProofdTrace = 0

Definition at line 50 of file XrdProofdProtocol.cxx.