XRootD
XrdMain Class Reference
+ Inheritance diagram for XrdMain:
+ Collaboration diagram for XrdMain:

Public Member Functions

 XrdMain ()
 
 XrdMain (XrdInet *nP)
 
 ~XrdMain ()
 
void DoIt ()
 

Public Attributes

XrdInettheNet
 
int thePort
 
XrdProtocoltheProt
 
XrdSysSemaphoretheSem
 

Static Public Attributes

static XrdConfig Config
 

Detailed Description

Definition at line 87 of file XrdMain.cc.

Constructor & Destructor Documentation

◆ XrdMain() [1/2]

XrdMain::XrdMain ( )
inline

Definition at line 102 of file XrdMain.cc.

102  : XrdJob("main accept"), theSem(0), theProt(0),
103  theNet(0), thePort(0) {}
XrdJob(const char *desc="")
Definition: XrdJob.hh:51
XrdInet * theNet
Definition: XrdMain.cc:93
int thePort
Definition: XrdMain.cc:94
XrdSysSemaphore * theSem
Definition: XrdMain.cc:91
XrdProtocol * theProt
Definition: XrdMain.cc:92

◆ XrdMain() [2/2]

XrdMain::XrdMain ( XrdInet nP)
inline

Definition at line 104 of file XrdMain.cc.

104  : XrdJob("main accept"), theSem(0),
105  theProt(0), theNet(nP), thePort(nP->Port()) {}
int Port()
Definition: XrdNet.hh:191

◆ ~XrdMain()

XrdMain::~XrdMain ( )
inline

Definition at line 106 of file XrdMain.cc.

106 {}

Member Function Documentation

◆ DoIt()

void XrdMain::DoIt ( )
inlinevirtual

Implements XrdJob.

Definition at line 97 of file XrdMain.cc.

97  {XrdLink *newlink;
98  if ((newlink = theNet->Accept(0, -1, theSem)))
99  newlink->setProtocol(theProt, true);
100  }
XrdLink * Accept(int opts=0, int timeout=-1, XrdSysSemaphore *theSem=0)
Definition: XrdInet.cc:72

References XrdInet::Accept(), XrdLink::setProtocol(), theNet, theProt, and theSem.

+ Here is the call graph for this function:

Member Data Documentation

◆ Config

XrdConfig XrdMain::Config
static

Definition at line 95 of file XrdMain.cc.

Referenced by main(), mainAccept(), and mainAdmin().

◆ theNet

XrdInet* XrdMain::theNet

Definition at line 93 of file XrdMain.cc.

Referenced by DoIt(), main(), and mainAdmin().

◆ thePort

int XrdMain::thePort

Definition at line 94 of file XrdMain.cc.

Referenced by main(), and mainAccept().

◆ theProt

XrdProtocol* XrdMain::theProt

Definition at line 92 of file XrdMain.cc.

Referenced by DoIt(), and mainAccept().

◆ theSem

XrdSysSemaphore* XrdMain::theSem

Definition at line 91 of file XrdMain.cc.

Referenced by DoIt(), and mainAccept().


The documentation for this class was generated from the following file: