xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdCms
XrdCmsRRData.hh
Go to the documentation of this file.
1
#ifndef __XRDCMSRRDATA_H__
2
#define __XRDCMSRRDATA_H__
3
/******************************************************************************/
4
/* */
5
/* X r d C m s R R D a t a . h h */
6
/* */
7
/* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
// $Id$
14
15
#include <stdlib.h>
16
17
#include "
XProtocol/YProtocol.hh
"
18
19
class
XrdCmsRLData
20
{
21
public
:
22
23
char
*
theAuth
;
24
char
*
theSID
;
25
char
*
thePaths
;
26
int
totLen
;
27
28
// XrdCmsRLData() {} Lack of constructor makes this a POD type
29
// ~XrdCmsRLData() {} Lack of destructor makes this a POD type
30
};
31
32
33
class
XrdCmsRRData
34
{
35
public
:
36
XrdCms::CmsRRHdr
Request
;
// all
37
char
*
Path
;
// all -prepcan
38
char
*
Opaque
;
// all -prepcan
39
char
*
Path2
;
// mv
40
char
*
Opaque2
;
// mv
41
char
*
Avoid
;
// locate, select
42
char
*
Reqid
;
// prepadd, prepcan
43
char
*
Notify
;
// prepadd
44
char
*
Prty
;
// prepadd
45
char
*
Mode
;
// chmod, mkdir, mkpath, prepadd
46
char
*
Ident
;
// all
47
unsigned
int
Opts
;
// locate, select
48
int
PathLen
;
// locate, prepadd, select (inc null byte)
49
unsigned
int
dskFree
;
// avail, load
50
union
{
unsigned
int
dskUtil
;
// avail
51
int
waitVal
;
52
};
53
char
*
Buff
;
// Buffer underlying the pointers
54
int
Blen
;
// Length of buffer
55
int
Dlen
;
// Length of data in the buffer
56
int
Routing
;
// Routing options
57
58
enum
ArgName
59
{
Arg_Null
=0,
Arg_AToken
,
Arg_Avoid
,
Arg_Datlen
,
60
Arg_Ident
,
Arg_Info
,
Arg_Mode
,
Arg_Notify
,
61
Arg_Opaque2
,
Arg_Opaque
,
Arg_Opts
,
Arg_Path
,
62
Arg_Path2
,
Arg_Port
,
Arg_Prty
,
Arg_Reqid
,
63
Arg_dskFree
,
Arg_dskUtil
,
Arg_theLoad
,
Arg_SID
,
64
Arg_dskTot
,
Arg_dskMinf
,
65
66
Arg_Count
// Always the last item which equals the number of elements
67
};
68
69
static
XrdCmsRRData
*
Objectify
(
XrdCmsRRData
*op=0);
70
71
int
getBuff
(
size_t
bsz);
72
73
// XrdCmsRRData() {} Lack of constructor makes this a POD type
74
// ~XrdCmsRRData() {} Lack of destructor makes this a POD type
75
76
XrdCmsRRData
*
Next
;
// POD types canot have private members so virtual private
77
};
78
#endif
Generated by
1.8.1.2