xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
Xrd
XrdConfig.hh
Go to the documentation of this file.
1
#ifndef _XRD_CONFIG_H
2
#define _XRD_CONFIG_H
3
/******************************************************************************/
4
/* */
5
/* X r d C o n f i g . h h */
6
/* */
7
/* (C) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved. See XrdInfo.cc for complete License Terms */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC03-76-SFO0515 with the Deprtment of Energy */
11
/******************************************************************************/
12
13
#include "
Xrd/XrdBuffer.hh
"
14
#include "
Xrd/XrdInet.hh
"
15
#include "
Xrd/XrdProtLoad.hh
"
16
#include "
Xrd/XrdProtocol.hh
"
17
#include "
Xrd/XrdScheduler.hh
"
18
#define XRD_TRACE Trace.
19
#include "
Xrd/XrdTrace.hh
"
20
21
#include "
XrdOuc/XrdOucTrace.hh
"
22
#include "
XrdSys/XrdSysError.hh
"
23
#include "
XrdSys/XrdSysLogger.hh
"
24
25
class
XrdNetSecurity
;
26
class
XrdOucStream
;
27
class
XrdConfigProt
;
28
29
class
XrdConfig
30
{
31
public
:
32
33
int
Configure
(
int
argc,
char
**argv);
34
35
int
ConfigXeq
(
char
*var,
XrdOucStream
&
Config
,
XrdSysError
*
eDest
=0);
36
37
XrdConfig
();
38
~XrdConfig
() {}
39
40
XrdProtocol_Config
ProtInfo
;
41
XrdInet
*
NetADM
;
42
XrdInet
*
NetTCP
[
XrdProtLoad::ProtoMax
+1];
43
44
private
:
45
46
int
ASocket
(
const
char
*path,
const
char
*fname, mode_t mode);
47
int
ConfigProc
(
void
);
48
int
getUG
(
char
*parm, uid_t &theUid, gid_t &theGid);
49
int
setFDL
();
50
int
Setup
(
char
*dfltp);
51
void
Usage
(
int
rc);
52
int
xallow
(
XrdSysError
*edest,
XrdOucStream
&Config);
53
int
xapath
(
XrdSysError
*edest,
XrdOucStream
&Config);
54
int
xbuf
(
XrdSysError
*edest,
XrdOucStream
&Config);
55
int
xnet
(
XrdSysError
*edest,
XrdOucStream
&Config);
56
int
xlog
(
XrdSysError
*edest,
XrdOucStream
&Config);
57
int
xport
(
XrdSysError
*edest,
XrdOucStream
&Config);
58
int
xprot
(
XrdSysError
*edest,
XrdOucStream
&Config);
59
int
xrep
(
XrdSysError
*edest,
XrdOucStream
&Config);
60
int
xsched
(
XrdSysError
*edest,
XrdOucStream
&Config);
61
int
xtrace
(
XrdSysError
*edest,
XrdOucStream
&Config);
62
int
xtmo
(
XrdSysError
*edest,
XrdOucStream
&Config);
63
int
yport
(
XrdSysError
*edest,
const
char
*ptyp,
const
char
*pval);
64
65
static
const
char
*
TraceID
;
66
67
XrdSysLogger
Logger
;
68
XrdSysError
Log
;
69
XrdOucTrace
Trace
;
70
XrdScheduler
Sched
;
71
XrdBuffManager
BuffPool
;
72
XrdNetSecurity
*
Police
;
73
const
char
*
myProg
;
74
const
char
*
myName
;
75
const
char
*
myDomain
;
76
const
char
*
myInsName
;
77
char
*
myInstance
;
78
char
*
AdminPath
;
79
char
*
ConfigFN
;
80
char
*
repDest
[2];
81
XrdConfigProt
*
Firstcp
;
82
XrdConfigProt
*
Lastcp
;
83
int
Net_Blen
;
84
int
Net_Opts
;
85
int
Wan_Blen
;
86
int
Wan_Opts
;
87
88
int
PortTCP
;
// TCP Port to listen on
89
int
PortUDP
;
// UDP Port to listen on (currently unsupported)
90
int
PortWAN
;
// TCP port to listen on for WAN connections
91
int
NetTCPlep
;
92
int
AdminMode
;
93
int
repInt
;
94
char
repOpts
;
95
char
isProxy
;
96
};
97
#endif
Generated by
1.8.1.2