XRootD
Loading...
Searching...
No Matches
XrdXrootdProtocol.cc File Reference
+ Include dependency graph for XrdXrootdProtocol.cc:

Go to the source code of this file.

Namespaces

namespace  XrdXrootd
 

Macros

#define TRACELINK   lp
 
#define TRACELINK   Link
 
#define TRACELINK   Link
 

Functions

XrdSysError XrdXrootd::eLog (0, "Xrootd")
 
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)
 

Variables

XrdSysTrace XrdXrootdTrace ("Xrootd")
 

Macro Definition Documentation

◆ TRACELINK [1/3]

#define TRACELINK   lp

Definition at line 289 of file XrdXrootdProtocol.cc.

◆ TRACELINK [2/3]

#define TRACELINK   Link

Definition at line 289 of file XrdXrootdProtocol.cc.

◆ TRACELINK [3/3]

#define TRACELINK   Link

Definition at line 289 of file XrdXrootdProtocol.cc.

Function Documentation

◆ XrdgetProtocol()

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

Definition at line 199 of file XrdXrootdProtocol.cc.

201{
202 XrdProtocol *pp = 0;
203 const char *txt = "completed.";
204
205// Put up the banner
206//
207 pi->eDest->Say("Copr. 2012 Stanford University, xroot protocol "
208 kXR_PROTOCOLVSTRING, " version ", XrdVERSION);
209 pi->eDest->Say("++++++ xroot protocol initialization started.");
210
211// Return the protocol object to be used if static init succeeds
212//
213 if (XrdXrootdProtocol::Configure(parms, pi))
214 pp = (XrdProtocol *)new XrdXrootdProtocol();
215 else txt = "failed.";
216 pi->eDest->Say("------ xroot protocol initialization ", txt);
217 return pp;
218}
#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 XrdCms::Config, XrdXrootdProtocol::Configure(), XrdProtocol_Config::eDest, kXR_PROTOCOLVSTRING, XrdProtocol_Config::NetTCP, XrdNet::Port(), XrdSysError::Say(), and XrdInet::Secure().

Referenced by XrdVERSIONINFO(), XrdVERSIONINFO(), and XrdVERSIONINFO().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ XrdgetProtocolPort()

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

Definition at line 233 of file XrdXrootdProtocol.cc.

234{
235
236// Figure out what port number we should return. In practice only one port
237// number is allowed. However, we could potentially have a clustered port
238// and several unclustered ports. So, we let this practicality slide.
239//
240 if (pi->Port < 0) return 1094;
241 return pi->Port;
242}

References XrdProtocol_Config::argc, XrdProtocol_Config::argv, XrdCms::Config, XrdProtocol_Config::ConfigFN, XrdProtocol_Config::Port, and XrdCms::Say.

Referenced by XrdVERSIONINFO(), XrdVERSIONINFO(), and XrdVERSIONINFO().

+ Here is the caller graph for this function:

◆ 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:

Variable Documentation

◆ XrdXrootdTrace

XrdSysTrace XrdXrootdTrace("Xrootd") ( "Xrootd" )