xrootd
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
XrdCmsClientMsg Class Reference

#include <XrdCmsClientMsg.hh>

Collaboration diagram for XrdCmsClientMsg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int getResult ()
int ID ()
void Lock ()
void Recycle ()
void UnLock ()
int Wait4Reply (int wtime)
 XrdCmsClientMsg ()
 ~XrdCmsClientMsg ()

Static Public Member Functions

static XrdCmsClientMsgAlloc (XrdOucErrInfo *erp)
static int Init ()
static int inQ ()
static int Reply (const char *Man, XrdCms::CmsRRHdr &hdr, XrdNetBuffer *buff)

Static Private Member Functions

static XrdCmsClientMsgRemFromWaitQ (int msgid)

Private Attributes

XrdCmsClientMsgnext
XrdSysCondVar Hold
int inwaitq
int id
XrdOucErrInfoResp
int Result

Static Private Attributes

static const int MidMask = 1023
static const int MaxMsgs = 1024
static const int MidIncr = 1024
static const int IncMask = 0x3ffffc00
static int nextid = 0
static int numinQ = 0
static XrdCmsClientMsgmsgTab = 0
static XrdCmsClientMsgnextfree = 0
static XrdSysMutex FreeMsgQ

Constructor & Destructor Documentation

XrdCmsClientMsg::XrdCmsClientMsg ( ) [inline]

References inwaitq, next, Resp, and Result.

XrdCmsClientMsg::~XrdCmsClientMsg ( ) [inline]

Member Function Documentation

XrdCmsClientMsg * XrdCmsClientMsg::Alloc ( XrdOucErrInfo erp) [static]
int XrdCmsClientMsg::getResult ( ) [inline]

References Result.

Referenced by XrdCmsFinderRMT::send2Man().

int XrdCmsClientMsg::ID ( ) [inline]

References id.

Referenced by XrdCmsFinderRMT::send2Man().

int XrdCmsClientMsg::Init ( ) [static]

References id, and next.

Referenced by XrdCmsClientConfig::Configure().

static int XrdCmsClientMsg::inQ ( ) [inline, static]

References numinQ.

Referenced by XrdCmsClientMan::whatsUp().

void XrdCmsClientMsg::Lock ( ) [inline]

References Hold, and XrdSysCondVar::Lock().

Referenced by Alloc().

void XrdCmsClientMsg::Recycle ( )
XrdCmsClientMsg * XrdCmsClientMsg::RemFromWaitQ ( int  msgid) [static, private]

References Hold, and XrdSysCondVar::Lock().

Referenced by Reply().

int XrdCmsClientMsg::Reply ( const char *  Man,
XrdCms::CmsRRHdr hdr,
XrdNetBuffer buff 
) [static]
void XrdCmsClientMsg::UnLock ( ) [inline]

References Hold, and XrdSysCondVar::UnLock().

Referenced by Alloc().

int XrdCmsClientMsg::Wait4Reply ( int  wtime) [inline]

References Hold, and XrdSysCondVar::Wait().

Referenced by XrdCmsFinderRMT::send2Man().


Member Data Documentation

int XrdCmsClientMsg::id [private]

Referenced by Alloc(), ID(), and Init().

const int XrdCmsClientMsg::IncMask = 0x3ffffc00 [static, private]
int XrdCmsClientMsg::inwaitq [private]

Referenced by Alloc(), and XrdCmsClientMsg().

const int XrdCmsClientMsg::MaxMsgs = 1024 [static, private]
const int XrdCmsClientMsg::MidIncr = 1024 [static, private]
const int XrdCmsClientMsg::MidMask = 1023 [static, private]
XrdCmsClientMsg * XrdCmsClientMsg::msgTab = 0 [static, private]

Referenced by Alloc(), Init(), and XrdCmsClientMsg().

XrdCmsClientMsg * XrdCmsClientMsg::nextfree = 0 [static, private]
int XrdCmsClientMsg::nextid = 0 [static, private]
int XrdCmsClientMsg::numinQ = 0 [static, private]

Referenced by inQ().

Referenced by Alloc(), Reply(), and XrdCmsClientMsg().

int XrdCmsClientMsg::Result [private]

Referenced by getResult(), Reply(), and XrdCmsClientMsg().


The documentation for this class was generated from the following files: