Loading...
Searching...
No Matches
XrdCmsRRData.hh
Go to the documentation of this file.
#ifndef __XRDCMSRRDATA_H__
#define __XRDCMSRRDATA_H__
/******************************************************************************/
/* */
/* X r d C m s R R D a t a . h h */
/* */
/* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University */
/* All Rights Reserved */
/* Produced by Andrew Hanushevsky for Stanford University under contract */
/* DE-AC02-76-SFO0515 with the Department of Energy */
/* */
/* This file is part of the XRootD software suite. */
/* */
/* XRootD is free software: you can redistribute it and/or modify it under */
/* the terms of the GNU Lesser General Public License as published by the */
/* Free Software Foundation, either version 3 of the License, or (at your */
/* option) any later version. */
/* */
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
/* License for more details. */
/* */
/* You should have received a copy of the GNU Lesser General Public License */
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
/* */
/* The copyright holder's institutional names and contributor's names may not */
/* be used to endorse or promote products derived from this software without */
/* specific prior written permission of the institution or contributor. */
/******************************************************************************/
#include <cstdlib>
#include "XProtocol/YProtocol.hh"
class XrdCmsRLData
{
public:
char *theAuth;
char *theSID;
char *thePaths;
int totLen;
// XrdCmsRLData() {} Lack of constructor makes this a POD type
// ~XrdCmsRLData() {} Lack of destructor makes this a POD type
};
class XrdCmsRRData
{
public:
XrdCms::CmsRRHdr Request; // all
char *Path; // all -prepcan
char *Opaque; // all -prepcan
char *Path2; // mv
char *Opaque2; // mv
char *Avoid; // locate, select
char *Reqid; // prepadd, prepcan
char *Notify; // prepadd
char *Prty; // prepadd
char *Mode; // chmod, mkdir, mkpath, prepadd
char *Ident; // all
unsigned int Opts; // locate, select
int PathLen; // locate, prepadd, select (inc null byte)
unsigned int dskFree; // avail, load
union {unsigned int dskUtil; // avail
int waitVal;
};
char *Buff; // Buffer underlying the pointers
int Blen; // Length of buffer
int Dlen; // Length of data in the buffer
int Routing; // Routing options
enum ArgName
{ Arg_Null=0, Arg_AToken, Arg_Avoid, Arg_Datlen,
Arg_Ident, Arg_Info, Arg_Mode, Arg_Notify,
Arg_Opaque2, Arg_Opaque, Arg_Opts, Arg_Path,
Arg_Path2, Arg_Port, Arg_Prty, Arg_Reqid,
Arg_dskFree, Arg_dskUtil, Arg_theLoad, Arg_SID,
Arg_dskTot, Arg_dskMinf, Arg_CGI, Arg_Ilist,
Arg_Count // Always the last item which equals the number of elements
};
static XrdCmsRRData *Objectify(XrdCmsRRData *op=0);
int getBuff(size_t bsz);
// XrdCmsRRData() {} Lack of constructor makes this a POD type
// ~XrdCmsRRData() {} Lack of destructor makes this a POD type
XrdCmsRRData *Next; // POD types canot have private members so virtual private
};
#endif
XrdCmsRLData::thePaths
char * thePaths
Definition XrdCmsRRData.hh:43
XrdCmsRLData::theSID
char * theSID
Definition XrdCmsRRData.hh:42
XrdCmsRRData.__unnamed0__::dskUtil
unsigned int dskUtil
XrdCmsRLData::totLen
int totLen
Definition XrdCmsRRData.hh:44
XrdCmsRRData.__unnamed0__::waitVal
int waitVal
XrdCmsRLData::theAuth
char * theAuth
Definition XrdCmsRRData.hh:41
XrdCmsRLData
Definition XrdCmsRRData.hh:38
YProtocol.hh
XrdCmsRRData
Definition XrdCmsRRData.hh:52
XrdCmsRRData::Opts
unsigned int Opts
Definition XrdCmsRRData.hh:65
XrdCmsRRData::Objectify
static XrdCmsRRData * Objectify(XrdCmsRRData *op=0)
Definition XrdCmsRRData.cc:68
XrdCmsRRData::Dlen
int Dlen
Definition XrdCmsRRData.hh:73
XrdCmsRRData::Buff
char * Buff
Definition XrdCmsRRData.hh:71
XrdCmsRRData::Blen
int Blen
Definition XrdCmsRRData.hh:72
XrdCmsRRData::ArgName
ArgName
Definition XrdCmsRRData.hh:77
XrdCmsRRData::Arg_AToken
@ Arg_AToken
Definition XrdCmsRRData.hh:77
XrdCmsRRData::Arg_SID
@ Arg_SID
Definition XrdCmsRRData.hh:81
XrdCmsRRData::Arg_Prty
@ Arg_Prty
Definition XrdCmsRRData.hh:80
XrdCmsRRData::Arg_Datlen
@ Arg_Datlen
Definition XrdCmsRRData.hh:77
XrdCmsRRData::Arg_theLoad
@ Arg_theLoad
Definition XrdCmsRRData.hh:81
XrdCmsRRData::Arg_Opaque2
@ Arg_Opaque2
Definition XrdCmsRRData.hh:79
XrdCmsRRData::Arg_Mode
@ Arg_Mode
Definition XrdCmsRRData.hh:78
XrdCmsRRData::Arg_dskTot
@ Arg_dskTot
Definition XrdCmsRRData.hh:82
XrdCmsRRData::Arg_Opts
@ Arg_Opts
Definition XrdCmsRRData.hh:79
XrdCmsRRData::Arg_Count
@ Arg_Count
Definition XrdCmsRRData.hh:84
XrdCmsRRData::Arg_dskFree
@ Arg_dskFree
Definition XrdCmsRRData.hh:81
XrdCmsRRData::Arg_CGI
@ Arg_CGI
Definition XrdCmsRRData.hh:82
XrdCmsRRData::Arg_Notify
@ Arg_Notify
Definition XrdCmsRRData.hh:78
XrdCmsRRData::Arg_Port
@ Arg_Port
Definition XrdCmsRRData.hh:80
XrdCmsRRData::Arg_Reqid
@ Arg_Reqid
Definition XrdCmsRRData.hh:80
XrdCmsRRData::Arg_Avoid
@ Arg_Avoid
Definition XrdCmsRRData.hh:77
XrdCmsRRData::Arg_Null
@ Arg_Null
Definition XrdCmsRRData.hh:77
XrdCmsRRData::Arg_Ilist
@ Arg_Ilist
Definition XrdCmsRRData.hh:82
XrdCmsRRData::Arg_Opaque
@ Arg_Opaque
Definition XrdCmsRRData.hh:79
XrdCmsRRData::Arg_Path
@ Arg_Path
Definition XrdCmsRRData.hh:79
XrdCmsRRData::Arg_Path2
@ Arg_Path2
Definition XrdCmsRRData.hh:80
XrdCmsRRData::Arg_dskUtil
@ Arg_dskUtil
Definition XrdCmsRRData.hh:81
XrdCmsRRData::Arg_Info
@ Arg_Info
Definition XrdCmsRRData.hh:78
XrdCmsRRData::Arg_dskMinf
@ Arg_dskMinf
Definition XrdCmsRRData.hh:82
XrdCmsRRData::Arg_Ident
@ Arg_Ident
Definition XrdCmsRRData.hh:78
XrdCmsRRData::Path
char * Path
Definition XrdCmsRRData.hh:55
XrdCmsRRData::Routing
int Routing
Definition XrdCmsRRData.hh:74
XrdCmsRRData::dskFree
unsigned int dskFree
Definition XrdCmsRRData.hh:67
XrdCmsRRData::Avoid
char * Avoid
Definition XrdCmsRRData.hh:59
XrdCmsRRData::Reqid
char * Reqid
Definition XrdCmsRRData.hh:60
XrdCmsRRData::Opaque
char * Opaque
Definition XrdCmsRRData.hh:56
XrdCmsRRData::Opaque2
char * Opaque2
Definition XrdCmsRRData.hh:58
XrdCmsRRData::Next
XrdCmsRRData * Next
Definition XrdCmsRRData.hh:94
XrdCmsRRData::PathLen
int PathLen
Definition XrdCmsRRData.hh:66
XrdCmsRRData::Prty
char * Prty
Definition XrdCmsRRData.hh:62
XrdCmsRRData::Ident
char * Ident
Definition XrdCmsRRData.hh:64
XrdCmsRRData::Mode
char * Mode
Definition XrdCmsRRData.hh:63
XrdCmsRRData::Path2
char * Path2
Definition XrdCmsRRData.hh:57
XrdCmsRRData::Notify
char * Notify
Definition XrdCmsRRData.hh:61
XrdCmsRRData::getBuff
int getBuff(size_t bsz)
Definition XrdCmsRRData.cc:44
XrdCmsRRData::Request
XrdCms::CmsRRHdr Request
Definition XrdCmsRRData.hh:54
XrdCms::CmsRRHdr
Definition YProtocol.hh:83