XRootD
Loading...
Searching...
No Matches
XrdHttpModule.cc File Reference
#include "XrdVersion.hh"
#include "XrdHttpProtocol.hh"
+ Include dependency graph for XrdHttpModule.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, xrdhttp)
 
 XrdVERSIONINFO (XrdgetProtocolPort, xrdhttp)
 

Function Documentation

◆ XrdgetProtocol()

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

Definition at line 19 of file XrdHttpModule.cc.

20 {
21 XrdProtocol *pp = 0;
22 const char *txt = "completed.";
23
24 // Put up the banner
25 //
26 pi->eDest->Say("Copr. 2012 CERN IT, an HTTP implementation for the XRootD framework.");
27 pi->eDest->Say("++++++ HTTP protocol initialization started.");
28
29 // Return the protocol object to be used if static init succeeds
30 //
31 if (XrdHttpProtocol::Configure(parms, pi))
32 pp = (XrdProtocol *)new XrdHttpProtocol(false);
33 else txt = "failed.";
34 pi->eDest->Say("------ HTTP protocol initialization ", txt);
35 return pp;
36 }
static int Configure(char *parms, XrdProtocol_Config *pi)
Read and apply the configuration.
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)

References XrdHttpProtocol::Configure(), XrdProtocol_Config::eDest, 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 53 of file XrdHttpModule.cc.

53 {
54
55 // Figure out what port number we should return. In practice only one port
56 // number is allowed. However, we could potentially have a clustered port
57 // and several unclustered ports. So, we let this practicality slide.
58 //
59 if (pi->Port < 0) return 1094;
60 return pi->Port;
61 }

References XrdProtocol_Config::Port.

◆ XrdVERSIONINFO() [1/2]

XrdVERSIONINFO ( XrdgetProtocol ,
xrdhttp  )

References XrdgetProtocol().

+ Here is the call graph for this function:

◆ XrdVERSIONINFO() [2/2]

XrdVERSIONINFO ( XrdgetProtocolPort ,
xrdhttp  )

References XrdgetProtocolPort().

+ Here is the call graph for this function: