|
xrootd
|
#include <XrdConfig.hh>

Public Member Functions | |
| int | Configure (int argc, char **argv) |
| int | ConfigXeq (char *var, XrdOucStream &Config, XrdSysError *eDest=0) |
| XrdConfig () | |
| ~XrdConfig () | |
Private Member Functions | |
| int | ASocket (const char *path, const char *fname, mode_t mode) |
| int | ConfigProc (void) |
| int | getUG (char *parm, uid_t &theUid, gid_t &theGid) |
| int | setFDL () |
| int | Setup (char *dfltp) |
| void | Usage (int rc) |
| int | xallow (XrdSysError *edest, XrdOucStream &Config) |
| int | xapath (XrdSysError *edest, XrdOucStream &Config) |
| int | xbuf (XrdSysError *edest, XrdOucStream &Config) |
| int | xnet (XrdSysError *edest, XrdOucStream &Config) |
| int | xlog (XrdSysError *edest, XrdOucStream &Config) |
| int | xport (XrdSysError *edest, XrdOucStream &Config) |
| int | xprot (XrdSysError *edest, XrdOucStream &Config) |
| int | xrep (XrdSysError *edest, XrdOucStream &Config) |
| int | xsched (XrdSysError *edest, XrdOucStream &Config) |
| int | xtrace (XrdSysError *edest, XrdOucStream &Config) |
| int | xtmo (XrdSysError *edest, XrdOucStream &Config) |
| int | yport (XrdSysError *edest, const char *ptyp, const char *pval) |
Private Attributes | |
| XrdProtocol_Config | ProtInfo |
| XrdNetSecurity * | Police |
| const char * | myProg |
| const char * | myName |
| const char * | myDomain |
| const char * | myInsName |
| char * | myInstance |
| char * | AdminPath |
| char * | ConfigFN |
| char * | repDest [2] |
| XrdConfigProt * | Firstcp |
| XrdConfigProt * | Lastcp |
| int | Net_Blen |
| int | Net_Opts |
| int | Wan_Blen |
| int | Wan_Opts |
| int | PortTCP |
| int | PortUDP |
| int | PortWAN |
| int | AdminMode |
| int | repInt |
| char | repOpts |
| char | isProxy |
Static Private Attributes | |
| static const char * | TraceID = "Config" |
| XrdConfig::XrdConfig | ( | void | ) |
References AdminMode, AdminPath, XrdProtocol_Config::AdmMode, XrdProtocol_Config::AdmPath, XrdProtocol_Config::argc, XrdProtocol_Config::argv, XrdProtocol_Config::BPool, XrdProtocol_Config::ConfigFN, ConfigFN, XrdProtocol_Config::ConnMax, XrdProtocol_Config::DebugON, XrdProtocol_Config::eDest, Firstcp, XrdProtocol_Config::Format, XrdProtocol_Config::hailWait, XrdProtocol_Config::idleWait, Lastcp, myInsName, Net_Blen, Net_Opts, XrdProtocol_Config::NetTCP, Police, PortTCP, PortUDP, PortWAN, ProtInfo, XrdProtocol_Config::readWait, repDest, repInt, repOpts, XrdProtocol_Config::Sched, XrdProtocol_Config::Stats, XrdProtocol_Config::Threads, XrdProtocol_Config::Trace, Wan_Blen, Wan_Opts, XrdProtocol_Config::WANPort, XrdProtocol_Config::WANWSize, XrdProtocol_Config::WSize, XrdBuffPool, XrdFORMATB, XrdLog, and XrdSched.
| XrdConfig::~XrdConfig | ( | ) | [inline] |
| int XrdConfig::ASocket | ( | const char * | path, |
| const char * | fname, | ||
| mode_t | mode | ||
| ) | [private] |
References XrdSysError::Emsg(), and XrdOucUtils::makePath().
Referenced by Setup().
| int XrdConfig::ConfigProc | ( | void | ) | [private] |
References XrdOucStream::Attach(), XrdOucStream::Close(), XrdCms::Config, ConfigFN, ConfigXeq(), XrdOucStream::Echo(), XrdSysError::Emsg(), XrdOucStream::GetMyFirstWord(), XrdOucStream::LastError(), myInstance, and open().
Referenced by Configure().
| int XrdConfig::Configure | ( | int | argc, |
| char ** | argv | ||
| ) |
References XrdOuca2x::a2ll(), XrdOuca2x::a2sz(), XrdProtocol_Config::argc, XrdProtocol_Config::argv, XrdSysLogger::Bind(), close, XrdProtocol_Config::ConfigFN, ConfigFN, ConfigProc(), XrdProtocol_Config::DebugON, XrdSysError::Emsg(), XrdOucEnv::Export(), Firstcp, XrdNetDNS::getHostAddr(), XrdNetDNS::getHostName(), getUG(), index(), XrdOucUtils::InstName(), Lastcp, XrdOucUtils::makeHome(), XrdProtocol_Config::myAddr, myDomain, myInsName, XrdProtocol_Config::myInst, myInstance, XrdProtocol_Config::myName, myName, XrdProtocol_Config::myProg, myProg, optarg, optind, XrdOucUtils::PidFile(), pipe, PortTCP, ProtInfo, rindex, XrdSysError::Say(), XrdSysThread::setDebug(), XrdSysLogger::setKeep(), Setup(), XrdOucUtils::subLogfn(), XrdProtocol_Config::Threads, TRACE_ALL, XrdOucUtils::Undercover(), Usage(), XrdOucTrace::What, write(), XrdBANNER, XrdLogWorker(), XrdThread, and yport().
Referenced by main().
| int XrdConfig::ConfigXeq | ( | char * | var, |
| XrdOucStream & | Config, | ||
| XrdSysError * | eDest = 0 |
||
| ) |
References XrdOucStream::Echo(), XrdSysError::Say(), TS_Xeq, xallow(), xapath(), xbuf(), xnet(), xport(), xprot(), XrdLog, xrep(), xsched(), xtmo(), and xtrace().
Referenced by ConfigProc().
| int XrdConfig::getUG | ( | char * | parm, |
| uid_t & | theUid, | ||
| gid_t & | theGid | ||
| ) | [private] |
References XrdSysError::Emsg().
Referenced by Configure().
| int XrdConfig::setFDL | ( | ) | [private] |
References XrdProtocol_Config::ConnMax, XrdSysError::Emsg(), ProtInfo, and XrdSysError::Say().
Referenced by Setup().
| int XrdConfig::Setup | ( | char * | dfltp | ) | [private] |
References AdminMode, AdminPath, XrdProtocol_Config::AdmPath, ASocket(), XrdNet::Bind(), close, XrdProtocol_Config::ConnMax, XrdOucEnv::Export(), Firstcp, XrdOucUtils::genPath(), XrdNetDNS::getPort(), XrdNetDNS::getProtoID(), XrdProtocol_Config::idleWait, XrdBuffManager::Init(), XrdConfigProt::libpath, XrdProtLoad::Load(), myDomain, myInsName, XrdProtocol_Config::myInst, XrdProtocol_Config::myName, XrdProtocol_Config::myProg, Net_Blen, Net_Opts, XrdProtocol_Config::NetTCP, XrdConfigProt::Next, XrdConfigProt::parms, Police, XrdNet::Port(), XrdProtLoad::Port(), XrdConfigProt::port, XrdProtocol_Config::Port, PortTCP, PortUDP, PortWAN, XrdConfigProt::proname, ProtInfo, XrdProtLoad::ProtoMax, repDest, repInt, repOpts, XrdStats::Report(), XrdNet::setDefaults(), XrdNet::setDomain(), setFDL(), XrdPoll::Setup(), XrdLink::Setup(), XrdLink::sfOK, XrdScheduler::Start(), XrdProtocol_Config::Stats, TRACE, Wan_Blen, Wan_Opts, XrdConfigProt::wanopt, XrdProtocol_Config::WANPort, XrdProtocol_Config::WANWSize, XrdProtocol_Config::WSize, XrdNet::WSize(), and XrdNetTCPlep.
Referenced by Configure().
| void XrdConfig::Usage | ( | int | rc | ) | [private] |
References myProg, and XrdLicense.
Referenced by Configure().
| int XrdConfig::xallow | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdNetSecurity::AddHost(), XrdNetSecurity::AddNetGroup(), XrdSysError::Emsg(), XrdOucStream::GetWord(), and Police.
Referenced by ConfigXeq().
| int XrdConfig::xapath | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References AdminMode, AdminPath, XrdProtocol_Config::AdmMode, XrdSysError::Emsg(), XrdOucStream::GetWord(), ProtInfo, S_IRWXG, and S_IRWXU.
Referenced by ConfigXeq().
| int XrdConfig::xbuf | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdOuca2x::a2sz(), XrdOuca2x::a2tm(), XrdSysError::Emsg(), XrdOucStream::GetWord(), and XrdBuffManager::Set().
Referenced by ConfigXeq().
| int XrdConfig::xlog | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
| int XrdConfig::xnet | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdOuca2x::a2sz(), XrdSysError::Emsg(), XrdOucStream::GetWord(), Net_Blen, Net_Opts, PortWAN, XrdSysError::Say(), Wan_Blen, Wan_Opts, XRDNET_KEEPALIVE, and XRDNET_NORLKUP.
Referenced by ConfigXeq().
| int XrdConfig::xport | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdOucUtils::doIf(), XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdProtocol_Config::myInst, myName, myProg, PortTCP, PortUDP, PortWAN, ProtInfo, and yport().
Referenced by ConfigXeq().
| int XrdConfig::xprot | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdSysError::Emsg(), Firstcp, XrdOucStream::GetWord(), index(), Lastcp, XrdConfigProt::libpath, XrdConfigProt::Next, XrdConfigProt::parms, PortWAN, XrdConfigProt::proname, XrdConfigProt::wanopt, and yport().
Referenced by ConfigXeq().
| int XrdConfig::xrep | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdOuca2x::a2tm(), XrdSysError::Emsg(), XrdOucStream::GetWord(), index(), repDest, repInt, repOpts, XrdSysError::Say(), XRD_STATS_ALL, XRD_STATS_BUFF, XRD_STATS_INFO, XRD_STATS_LINK, XRD_STATS_POLL, XRD_STATS_PROC, XRD_STATS_PROT, XRD_STATS_SCHD, XRD_STATS_SGEN, XRD_STATS_SYNC, and XRD_STATS_SYNCA.
Referenced by ConfigXeq().
| int XrdConfig::xsched | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdOuca2x::a2i(), XrdOuca2x::a2sz(), XrdOuca2x::a2tm(), XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdSysError::Say(), XrdScheduler::setParms(), and XrdSysThread::setStackSize().
Referenced by ConfigXeq().
| int XrdConfig::xtmo | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
| int XrdConfig::xtrace | ( | XrdSysError * | edest, |
| XrdOucStream & | Config | ||
| ) | [private] |
References XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdSysError::Say(), TRACE_ALL, TRACE_CONN, TRACE_DEBUG, TRACE_MEM, TRACE_NET, TRACE_NONE, TRACE_POLL, TRACE_PROT, TRACE_SCHED, and XrdOucTrace::What.
Referenced by ConfigXeq().
| int XrdConfig::yport | ( | XrdSysError * | edest, |
| const char * | ptyp, | ||
| const char * | pval | ||
| ) | [private] |
References XrdOuca2x::a2i(), XrdSysError::Emsg(), and XrdNetDNS::getPort().
Referenced by Configure(), xport(), and xprot().
int XrdConfig::AdminMode [private] |
Referenced by Setup(), xapath(), and XrdConfig().
char* XrdConfig::AdminPath [private] |
Referenced by Setup(), xapath(), and XrdConfig().
char* XrdConfig::ConfigFN [private] |
Referenced by ConfigProc(), Configure(), and XrdConfig().
XrdConfigProt* XrdConfig::Firstcp [private] |
Referenced by Configure(), Setup(), xprot(), and XrdConfig().
char XrdConfig::isProxy [private] |
XrdConfigProt* XrdConfig::Lastcp [private] |
Referenced by Configure(), xprot(), and XrdConfig().
const char* XrdConfig::myDomain [private] |
Referenced by Configure(), and Setup().
const char* XrdConfig::myInsName [private] |
Referenced by Configure(), Setup(), and XrdConfig().
char* XrdConfig::myInstance [private] |
Referenced by ConfigProc(), and Configure().
const char* XrdConfig::myName [private] |
Referenced by Configure(), and xport().
const char* XrdConfig::myProg [private] |
Referenced by Configure(), Usage(), and xport().
int XrdConfig::Net_Blen [private] |
Referenced by Setup(), xnet(), and XrdConfig().
int XrdConfig::Net_Opts [private] |
Referenced by Setup(), xnet(), and XrdConfig().
XrdNetSecurity* XrdConfig::Police [private] |
Referenced by Setup(), xallow(), and XrdConfig().
int XrdConfig::PortTCP [private] |
Referenced by Configure(), Setup(), xport(), and XrdConfig().
int XrdConfig::PortUDP [private] |
Referenced by Setup(), xport(), and XrdConfig().
int XrdConfig::PortWAN [private] |
Referenced by Setup(), xnet(), xport(), xprot(), and XrdConfig().
XrdProtocol_Config XrdConfig::ProtInfo [private] |
Referenced by Configure(), setFDL(), Setup(), xapath(), xport(), XrdConfig(), and xtmo().
char* XrdConfig::repDest[2] [private] |
Referenced by Setup(), XrdConfig(), and xrep().
int XrdConfig::repInt [private] |
Referenced by Setup(), XrdConfig(), and xrep().
char XrdConfig::repOpts [private] |
Referenced by Setup(), XrdConfig(), and xrep().
const char * XrdConfig::TraceID = "Config" [static, private] |
int XrdConfig::Wan_Blen [private] |
Referenced by Setup(), xnet(), and XrdConfig().
int XrdConfig::Wan_Opts [private] |
Referenced by Setup(), xnet(), and XrdConfig().
1.7.3