Logo ROOT   6.08/07
Reference Guide
Macros | Typedefs | Functions | Variables
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

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

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; \
SafeFree(t); }
return c
#define SafeFree(x)
Definition: XrdProofdAux.h:341
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)
const Int_t n
Definition: legend1.C:16

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; }}
return c
#define XPDCOND(n, ns)
const Int_t n
Definition: legend1.C:16

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.