#include <XrdCmsReq.hh>
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) |
XrdCmsReq * | Reply_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 | |
XrdCmsNode * | NodeP |
unsigned int | ReqID |
int | ReqNins |
short | ReqNnum |
char | ReqAdv |
Definition at line 19 of file XrdCmsReq.hh.
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 | |||
) |
XrdCmsReq::~XrdCmsReq | ( | ) | [inline] |
Definition at line 80 of file XrdCmsReq.hh.
int XrdCmsReq::Advisory | ( | ) | [inline] |
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 | |||
) |
void XrdCmsReq::Reply_OK | ( | struct stat & | buf | ) |
void XrdCmsReq::Reply_Redirect | ( | const char * | sname, | |
const char * | logincgi = 0 , |
|||
const char * | opencgi = 0 | |||
) |
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 | ) |
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().
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] |
short XrdCmsReq::ReqNnum [private] |
char XrdCmsReq::ReqAdv [private] |