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 287 of file XrdXrootdProtocol.cc.

◆ TRACELINK [2/3]

#define TRACELINK   Link

Definition at line 287 of file XrdXrootdProtocol.cc.

◆ TRACELINK [3/3]

#define TRACELINK   Link

Definition at line 287 of file XrdXrootdProtocol.cc.

Function Documentation

◆ XrdgetProtocol()

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

Definition at line 197 of file XrdXrootdProtocol.cc.

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

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

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" )