XRootD
XrdSsiRespInfo Struct Reference

#include <XrdSsiRespInfo.hh>

+ Collaboration diagram for XrdSsiRespInfo:

Public Types

enum  Resp_t {
  isNone = 0 ,
  isData ,
  isError ,
  isFile ,
  isStream ,
  isHandle
}
 

Public Member Functions

 XrdSsiRespInfo ()
 
 ~XrdSsiRespInfo ()
 
void Init ()
 
const char * State () const
 

Public Attributes

union {
const char * buff
 
const char * eMsg
 ->msg text when rType == isError More...
 
long long fsize
 ->file size when rType == isFile More...
 
XrdSsiStreamstrmP
 ->SsiStream when rType == isStream More...
 
}; 
 
union {
int blen
 
int eNum
 errno When rType == isError More...
 
int fdnum
 filedesc When rType == isFile More...
 
}; 
 
const char * mdata
 -> Metadata about response. More...
 
int mdlen
 Metadata length. More...
 
Resp_t rType
 

Detailed Description

Definition at line 43 of file XrdSsiRespInfo.hh.

Member Enumeration Documentation

◆ Resp_t

Enumerator
isNone 
isData 
isError 
isFile 
isStream 
isHandle 

Definition at line 58 of file XrdSsiRespInfo.hh.

Constructor & Destructor Documentation

◆ XrdSsiRespInfo()

XrdSsiRespInfo::XrdSsiRespInfo ( )
inline

Definition at line 72 of file XrdSsiRespInfo.hh.

72 {Init();}

References Init().

+ Here is the call graph for this function:

◆ ~XrdSsiRespInfo()

XrdSsiRespInfo::~XrdSsiRespInfo ( )
inline

Definition at line 73 of file XrdSsiRespInfo.hh.

73 {}

Member Function Documentation

◆ Init()

void XrdSsiRespInfo::Init ( )
inline

Definition at line 61 of file XrdSsiRespInfo.hh.

61 {fsize=0; blen=0; mdlen=0; mdata=0; rType=isNone;}
int mdlen
Metadata length.
const char * mdata
-> Metadata about response.

References isNone, mdata, mdlen, and rType.

Referenced by XrdSsiRespInfo(), and XrdSsiResponder::BindRequest().

+ Here is the caller graph for this function:

◆ State()

const char* XrdSsiRespInfo::State ( ) const
inline

Definition at line 63 of file XrdSsiRespInfo.hh.

63  {if (rType == isData ) return "isData";
64  if (rType == isError ) return "isError";
65  if (rType == isHandle) return "isHandle";
66  if (rType == isFile ) return "isFile";
67  if (rType == isStream) return "isStream";
68  if (rType == isNone ) return "isNone";
69  return "isUndef";
70  }

References isData, isError, isFile, isHandle, isNone, isStream, and rType.

Member Data Documentation

◆ 

union { ... }

◆ 

union { ... }

◆ mdata

const char* XrdSsiRespInfo::mdata

-> Metadata about response.

Definition at line 56 of file XrdSsiRespInfo.hh.

Referenced by XrdSsiFileSess::AttnInfo(), XrdSsiRequest::GetMetadata(), Init(), and XrdSsiResponder::SetMetadata().

◆ mdlen

int XrdSsiRespInfo::mdlen

Metadata length.

Definition at line 55 of file XrdSsiRespInfo.hh.

Referenced by XrdSsiFileSess::AttnInfo(), XrdSsiRequest::GetMetadata(), Init(), and XrdSsiResponder::SetMetadata().

◆ rType


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