XRootD
XrdOucEI Struct Reference

#include <XrdOucErrInfo.hh>

+ Collaboration diagram for XrdOucEI:

Public Member Functions

 XrdOucEI (const char *usr, int uc=0)
 
void clear (const char *usr=0, int uc=0)
 ucap: Client support EC redirects More...
 
XrdOucEIoperator= (const XrdOucEI &rhs)
 

Public Attributes

int code
 
char message [Max_Error_Len]
 
int ucap
 
const char * user
 

Static Public Attributes

static const size_t Max_Error_Len = 2048
 
static const int Path_Offset = 1024
 
static const int uAsync = 0x80000000
 ucap: Extract protocol version More...
 
static const int uEcRedir = 0x00400000
 ucap: Client supports redirect flags More...
 
static const int uIPv4 = 0x08000000
 ucap: Supports read redirects More...
 
static const int uIPv64 = 0x04000000
 ucap: Supports only IPv4 info More...
 
static const int uLclF = 0x01000000
 ucap: Client is on a private net More...
 
static const int uMProt = 0x20000000
 ucap: Supports url redirects More...
 
static const int uPrip = 0x02000000
 
static const int uReadR = 0x10000000
 ucap: Supports multiple protocols More...
 
static const int uRedirFlgs = 0x00800000
 ucap: Client supports "file://" More...
 
static const int uUrlOK = 0x40000000
 ucap: Supports async responses More...
 
static const int uVMask = 0x0000ffff
 

Detailed Description

The XrdOucEI struct encapsulates error information. It uses a fixed buffer for message text and tracing information. It also allows extended information to be recorded in an appendage. It cannot be directly used.

Definition at line 49 of file XrdOucErrInfo.hh.

Constructor & Destructor Documentation

◆ XrdOucEI()

XrdOucEI::XrdOucEI ( const char *  usr,
int  uc = 0 
)
inline

Definition at line 84 of file XrdOucErrInfo.hh.

84 {clear(usr, uc);}
void clear(const char *usr=0, int uc=0)
ucap: Client support EC redirects

References clear().

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

void XrdOucEI::clear ( const char *  usr = 0,
int  uc = 0 
)
inline

ucap: Client support EC redirects

Definition at line 72 of file XrdOucErrInfo.hh.

73  {code=0; ucap = uc; message[0]='\0';
74  user = (usr ? usr : "?");
75  }
char message[Max_Error_Len]
const char * user

References code, message, ucap, and user.

Referenced by XrdOucEI(), and XrdOucErrInfo::clear().

+ Here is the caller graph for this function:

◆ operator=()

XrdOucEI& XrdOucEI::operator= ( const XrdOucEI rhs)
inline

Definition at line 77 of file XrdOucErrInfo.hh.

78  {code = rhs.code;
79  user = rhs.user;
80  ucap = rhs.ucap;
81  strcpy(message, rhs.message);
82  return *this;
83  }

References code, message, ucap, and user.

Member Data Documentation

◆ code

◆ Max_Error_Len

const size_t XrdOucEI::Max_Error_Len = 2048
static

◆ message

◆ Path_Offset

const int XrdOucEI::Path_Offset = 1024
static

Definition at line 52 of file XrdOucErrInfo.hh.

Referenced by XrdCmsResp::Alloc().

◆ uAsync

const int XrdOucEI::uAsync = 0x80000000
static

ucap: Extract protocol version

Definition at line 60 of file XrdOucErrInfo.hh.

◆ ucap

int XrdOucEI::ucap

Definition at line 55 of file XrdOucErrInfo.hh.

Referenced by clear(), XrdOucErrInfo::getUCap(), operator=(), and XrdOucErrInfo::setUCap().

◆ uEcRedir

const int XrdOucEI::uEcRedir = 0x00400000
static

ucap: Client supports redirect flags

Definition at line 70 of file XrdOucErrInfo.hh.

◆ uIPv4

const int XrdOucEI::uIPv4 = 0x08000000
static

ucap: Supports read redirects

Definition at line 64 of file XrdOucErrInfo.hh.

Referenced by XrdSsiSfs::fsctl(), XrdOfs::fsctl(), XrdDigConfig::GetLocResp(), XrdCmsFinderRMT::Locate(), and XrdXrootdProtocol::MonAuth().

◆ uIPv64

const int XrdOucEI::uIPv64 = 0x04000000
static

ucap: Supports only IPv4 info

Definition at line 65 of file XrdOucErrInfo.hh.

Referenced by XrdSsiSfs::fsctl(), XrdOfs::fsctl(), and XrdCmsFinderRMT::Locate().

◆ uLclF

const int XrdOucEI::uLclF = 0x01000000
static

ucap: Client is on a private net

Definition at line 68 of file XrdOucErrInfo.hh.

Referenced by XrdCmsRedirLocal::Locate(), and XrdOfsFile::open().

◆ uMProt

const int XrdOucEI::uMProt = 0x20000000
static

ucap: Supports url redirects

Definition at line 62 of file XrdOucErrInfo.hh.

◆ uPrip

const int XrdOucEI::uPrip = 0x02000000
static

ucap: Supports IPv6|IPv4 info and uIPv4 says IPv4 is prefered

Definition at line 67 of file XrdOucErrInfo.hh.

Referenced by XrdSsiSfs::fsctl(), XrdOfs::fsctl(), and XrdCmsFinderRMT::Locate().

◆ uReadR

const int XrdOucEI::uReadR = 0x10000000
static

ucap: Supports multiple protocols

Definition at line 63 of file XrdOucErrInfo.hh.

◆ uRedirFlgs

const int XrdOucEI::uRedirFlgs = 0x00800000
static

ucap: Client supports "file://"

Definition at line 69 of file XrdOucErrInfo.hh.

◆ user

const char* XrdOucEI::user

◆ uUrlOK

const int XrdOucEI::uUrlOK = 0x40000000
static

ucap: Supports async responses

Definition at line 61 of file XrdOucErrInfo.hh.

Referenced by XrdCmsRedirLocal::Locate(), and XrdOfsFile::open().

◆ uVMask

const int XrdOucEI::uVMask = 0x0000ffff
static

Definition at line 59 of file XrdOucErrInfo.hh.


The documentation for this struct was generated from the following file: