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
/* Produced by Andrew Hanushevsky for Stanford University under contract */
9
/* DE-AC02-76-SFO0515 with the Deprtment of Energy */
10
/* */
11
/* This file is part of the XRootD software suite. */
12
/* */
13
/* XRootD is free software: you can redistribute it and/or modify it under */
14
/* the terms of the GNU Lesser General Public License as published by the */
15
/* Free Software Foundation, either version 3 of the License, or (at your */
16
/* option) any later version. */
17
/* */
18
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
19
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
20
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
21
/* License for more details. */
22
/* */
23
/* You should have received a copy of the GNU Lesser General Public License */
24
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
25
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
26
/* */
27
/* The copyright holder's institutional names and contributor's names may not */
28
/* be used to endorse or promote products derived from this software without */
29
/* specific prior written permission of the institution or contributor. */
30
/******************************************************************************/
31
32
#include "
Xrd/XrdBuffer.hh
"
33
#include "
Xrd/XrdInet.hh
"
34
#include "
Xrd/XrdProtLoad.hh
"
35
#include "
Xrd/XrdProtocol.hh
"
36
#include "
Xrd/XrdScheduler.hh
"
37
#define XRD_TRACE Trace.
38
#include "
Xrd/XrdTrace.hh
"
39
40
#include "
XrdOuc/XrdOucTrace.hh
"
41
#include "
XrdSys/XrdSysError.hh
"
42
#include "
XrdSys/XrdSysLogger.hh
"
43
44
class
XrdNetSecurity
;
45
class
XrdOucStream
;
46
class
XrdConfigProt
;
47
48
class
XrdConfig
49
{
50
public
:
51
52
int
Configure
(
int
argc,
char
**argv);
53
54
int
ConfigXeq
(
char
*var,
XrdOucStream
&
Config
,
XrdSysError
*
eDest
=0);
55
56
XrdConfig
();
57
~XrdConfig
() {}
58
59
XrdProtocol_Config
ProtInfo
;
60
XrdInet
*
NetADM
;
61
XrdInet
*
NetTCP
[
XrdProtLoad::ProtoMax
+1];
62
63
private
:
64
65
int
ASocket
(
const
char
*path,
const
char
*fname, mode_t mode);
66
int
ConfigProc
(
void
);
67
int
getUG
(
char
*parm, uid_t &theUid, gid_t &theGid);
68
int
setFDL
();
69
int
Setup
(
char
*dfltp);
70
void
Usage
(
int
rc);
71
int
xallow
(
XrdSysError
*edest,
XrdOucStream
&Config);
72
int
xapath
(
XrdSysError
*edest,
XrdOucStream
&Config);
73
int
xbuf
(
XrdSysError
*edest,
XrdOucStream
&Config);
74
int
xnet
(
XrdSysError
*edest,
XrdOucStream
&Config);
75
int
xlog
(
XrdSysError
*edest,
XrdOucStream
&Config);
76
int
xport
(
XrdSysError
*edest,
XrdOucStream
&Config);
77
int
xprot
(
XrdSysError
*edest,
XrdOucStream
&Config);
78
int
xrep
(
XrdSysError
*edest,
XrdOucStream
&Config);
79
int
xsched
(
XrdSysError
*edest,
XrdOucStream
&Config);
80
int
xsit
(
XrdSysError
*edest,
XrdOucStream
&Config);
81
int
xtrace
(
XrdSysError
*edest,
XrdOucStream
&Config);
82
int
xtmo
(
XrdSysError
*edest,
XrdOucStream
&Config);
83
int
yport
(
XrdSysError
*edest,
const
char
*ptyp,
const
char
*pval);
84
85
static
const
char
*
TraceID
;
86
87
XrdSysLogger
Logger
;
88
XrdSysError
Log
;
89
XrdOucTrace
Trace
;
90
XrdScheduler
Sched
;
91
XrdBuffManager
BuffPool
;
92
XrdNetSecurity
*
Police
;
93
const
char
*
myProg
;
94
const
char
*
myName
;
95
const
char
*
myDomain
;
96
const
char
*
mySitName
;
97
const
char
*
myInsName
;
98
char
*
myInstance
;
99
char
*
AdminPath
;
100
char
*
ConfigFN
;
101
char
*
repDest
[2];
102
XrdConfigProt
*
Firstcp
;
103
XrdConfigProt
*
Lastcp
;
104
int
Net_Blen
;
105
int
Net_Opts
;
106
int
Wan_Blen
;
107
int
Wan_Opts
;
108
109
int
PortTCP
;
// TCP Port to listen on
110
int
PortUDP
;
// UDP Port to listen on (currently unsupported)
111
int
PortWAN
;
// TCP port to listen on for WAN connections
112
int
NetTCPlep
;
113
int
AdminMode
;
114
int
repInt
;
115
char
repOpts
;
116
char
isProxy
;
117
};
118
#endif
Generated by
1.8.3.1