XRootD
Loading...
Searching...
No Matches
XrdXrootdPlugin.cc File Reference
#include "XrdVersion.hh"
#include "XrdXrootd/XrdXrootdProtocol.hh"
Include dependency graph for XrdXrootdPlugin.cc:

Go to the source code of this file.

Functions

XrdProtocolXrdgetProtocol (const char *pname, char *parms, XrdProtocol_Config *pi)
int XrdgetProtocolPort (const char *pname, char *parms, XrdProtocol_Config *pi)
 XrdVERSIONINFO (XrdgetProtocol, xrootd)
 XrdVERSIONINFO (XrdgetProtocolPort, xrootd)

Function Documentation

◆ XrdgetProtocol()

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

Definition at line 48 of file XrdXrootdPlugin.cc.

50{
51 XrdProtocol *pp = 0;
52 const char *txt = "completed.";
53
54// Put up the banner
55//
56 pi->eDest->Say("Copr. 2012 Stanford University, xroot protocol "
57 kXR_PROTOCOLVSTRING, " version ", XrdVERSION);
58 pi->eDest->Say("++++++ xroot protocol initialization started.");
59
60// Return the protocol object to be used if static init succeeds
61//
62 if (XrdXrootdProtocol::Configure(parms, pi))
63 pp = (XrdProtocol *)new XrdXrootdProtocol();
64 else txt = "failed.";
65 pi->eDest->Say("------ xroot protocol initialization ", txt);
66 return pp;
67}
#define kXR_PROTOCOLVSTRING
Definition XProtocol.hh:75
XrdSysError * eDest
void Say(const char *text1, const char *text2=0, const char *txt3=0, const char *text4=0, const char *text5=0, const char *txt6=0)
static int Configure(char *parms, XrdProtocol_Config *pi)

References XrdXrootdProtocol::Configure(), XrdProtocol_Config::eDest, kXR_PROTOCOLVSTRING, and XrdSysError::Say().

Here is the call graph for this function:

◆ XrdgetProtocolPort()

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

Definition at line 83 of file XrdXrootdPlugin.cc.

84{
85
86// Figure out what port number we should return. In practice only one port
87// number is allowed. However, we could potentially have a clustered port
88// and several unclustered ports. So, we let this practicality slide.
89//
90 if (pi->Port < 0) return 1094;
91 return pi->Port;
92}

References XrdProtocol_Config::Port.

◆ XrdVERSIONINFO() [1/2]

XrdVERSIONINFO ( XrdgetProtocol ,
xrootd  )

References XrdgetProtocol().

Here is the call graph for this function:

◆ XrdVERSIONINFO() [2/2]

XrdVERSIONINFO ( XrdgetProtocolPort ,
xrootd  )

References XrdgetProtocolPort().

Here is the call graph for this function: