XrdCmsReq Class Reference

#include <XrdCmsReq.hh>

List of all members.

Public Member Functions

int Advisory ()
void Reply_Error (const char *emsg, int emsglen=0)
void Reply_Error (const char *ecode, const char *emsg, int emsglen=0)
void Reply_Error (int ecode, const char *emsg, int emsglen=0)
void Reply_OK ()
void Reply_OK (const char *data, int datalen=0)
void Reply_OK (struct stat &buf)
void Reply_Redirect (const char *sname, const char *logincgi=0, const char *opencgi=0)
void Reply_Redirect (const char *sname, int port, const char *logincgi=0, const char *opencgi=0)
void Reply_Wait (int sec)
XrdCmsReqReply_WaitResp (int sec=0)
 XrdCmsReq (XrdCmsNode *nP, unsigned int id, char adv=0)
 XrdCmsReq (XrdCmsReq *rP, unsigned int rn)
 ~XrdCmsReq ()

Private Member Functions

int StatGen (struct stat &sbuf, char *xbuf)
void noReply ()
void Reply (int respCode, unsigned int respVal, const char *respData=0, int respLen=0, struct iovec *iov=0, int iovnum=0)

Private Attributes

XrdCmsNodeNodeP
unsigned int ReqID
int ReqNins
short ReqNnum
char ReqAdv


Detailed Description

Definition at line 19 of file XrdCmsReq.hh.


Constructor & Destructor Documentation

XrdCmsReq::XrdCmsReq ( XrdCmsNode nP,
unsigned int  id,
char  adv = 0 
)

Definition at line 43 of file XrdCmsReq.cc.

References XrdCmsNode::getSlot(), XrdCmsNode::Inst(), NodeP, ReqAdv, ReqID, ReqNins, and ReqNnum.

Referenced by Reply_WaitResp().

XrdCmsReq::XrdCmsReq ( XrdCmsReq rP,
unsigned int  rn 
)

Definition at line 56 of file XrdCmsReq.cc.

References NodeP, ReqID, ReqNins, and ReqNnum.

XrdCmsReq::~XrdCmsReq (  )  [inline]

Definition at line 80 of file XrdCmsReq.hh.


Member Function Documentation

int XrdCmsReq::Advisory (  )  [inline]

Definition at line 25 of file XrdCmsReq.hh.

References ReqAdv.

void XrdCmsReq::Reply_Error ( const char *  emsg,
int  emsglen = 0 
)

Definition at line 68 of file XrdCmsReq.cc.

References XrdCms::kYR_EINVAL, XrdCms::kYR_error, and Reply().

Referenced by XrdCmsXmiReq::processReqQ(), and XrdCmsXmiReq::processStgQ().

void XrdCmsReq::Reply_Error ( const char *  ecode,
const char *  emsg,
int  emsglen = 0 
)

Definition at line 85 of file XrdCmsReq.cc.

References XrdCms::kYR_EACCES, XrdCms::kYR_EINVAL, XrdCms::kYR_EIO, XrdCms::kYR_EISDIR, XrdCms::kYR_ENAMETOOLONG, XrdCms::kYR_ENETUNREACH, XrdCms::kYR_ENOENT, XrdCms::kYR_ENOMEM, XrdCms::kYR_ENOSPC, XrdCms::kYR_ENOTBLK, XrdCms::kYR_EPERM, XrdCms::kYR_error, and Reply().

void XrdCmsReq::Reply_Error ( int  ecode,
const char *  emsg,
int  emsglen = 0 
)

Definition at line 115 of file XrdCmsReq.cc.

References ENETUNREACH, XrdCms::kYR_EACCES, XrdCms::kYR_EINVAL, XrdCms::kYR_EIO, XrdCms::kYR_EISDIR, XrdCms::kYR_ENAMETOOLONG, XrdCms::kYR_ENETUNREACH, XrdCms::kYR_ENOENT, XrdCms::kYR_ENOMEM, XrdCms::kYR_ENOSPC, XrdCms::kYR_ENOTBLK, XrdCms::kYR_EPERM, XrdCms::kYR_error, and Reply().

void XrdCmsReq::Reply_OK (  ) 

Definition at line 149 of file XrdCmsReq.cc.

References XrdCms::kYR_data, and Reply().

Referenced by Reply_OK().

void XrdCmsReq::Reply_OK ( const char *  data,
int  datalen = 0 
)

Definition at line 159 of file XrdCmsReq.cc.

References XrdCms::kYR_data, and Reply().

void XrdCmsReq::Reply_OK ( struct stat &  buf  ) 

Definition at line 174 of file XrdCmsReq.cc.

References Reply_OK(), and StatGen().

void XrdCmsReq::Reply_Redirect ( const char *  sname,
const char *  logincgi = 0,
const char *  opencgi = 0 
)

Definition at line 185 of file XrdCmsReq.cc.

References strlcpy().

void XrdCmsReq::Reply_Redirect ( const char *  sname,
int  port,
const char *  logincgi = 0,
const char *  opencgi = 0 
)

Definition at line 211 of file XrdCmsReq.cc.

References iovec::iov_base, iovec::iov_len, XrdCms::kYR_redirect, and Reply().

void XrdCmsReq::Reply_Wait ( int  sec  ) 

Definition at line 263 of file XrdCmsReq.cc.

References XrdCms::kYR_wait, and Reply().

XrdCmsReq * XrdCmsReq::Reply_WaitResp ( int  sec = 0  ) 

Definition at line 275 of file XrdCmsReq.cc.

References XrdCms::kYR_waitresp, XrdSysMutex::Lock(), NodeP, Reply(), ReqID, XrdSysMutex::UnLock(), and XrdCmsReq().

Referenced by XrdCmsXmiReq::Qit().

int XrdCmsReq::StatGen ( struct stat &  sbuf,
char *  xbuf 
) [private]

Referenced by Reply_OK().

void XrdCmsReq::noReply (  )  [private]

Definition at line 325 of file XrdCmsReq.cc.

References XrdSysError::Emsg(), ReqNnum, and XrdFrm::Say().

Referenced by Reply().

void XrdCmsReq::Reply ( int  respCode,
unsigned int  respVal,
const char *  respData = 0,
int  respLen = 0,
struct iovec iov = 0,
int  iovnum = 0 
) [private]

Definition at line 345 of file XrdCmsReq.cc.

References XrdCms::CmsRRHdr::datalen, DEBUG, EPNAME, XrdCmsRTable::Find(), XrdCms::CmsResponse::Hdr, iovec::iov_base, iovec::iov_len, XrdCmsRTable::Lock(), XrdCms::CmsRRHdr::modifier, NodeP, noReply(), ReqID, ReqNins, ReqNnum, XrdCms::RTable, XrdCmsNode::Send(), and XrdCmsRTable::UnLock().

Referenced by Reply_Error(), Reply_OK(), Reply_Redirect(), Reply_Wait(), and Reply_WaitResp().


Member Data Documentation

XrdCmsNode* XrdCmsReq::NodeP [private]

Definition at line 89 of file XrdCmsReq.hh.

Referenced by Reply(), Reply_WaitResp(), and XrdCmsReq().

unsigned int XrdCmsReq::ReqID [private]

Definition at line 90 of file XrdCmsReq.hh.

Referenced by Reply(), Reply_WaitResp(), and XrdCmsReq().

int XrdCmsReq::ReqNins [private]

Definition at line 91 of file XrdCmsReq.hh.

Referenced by Reply(), and XrdCmsReq().

short XrdCmsReq::ReqNnum [private]

Definition at line 92 of file XrdCmsReq.hh.

Referenced by noReply(), Reply(), and XrdCmsReq().

char XrdCmsReq::ReqAdv [private]

Definition at line 93 of file XrdCmsReq.hh.

Referenced by Advisory(), and XrdCmsReq().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1