#include <XrdCmsManList.hh>
Public Member Functions | |
| void | Add (unsigned int refp, char *manp, int manport, int lvl) |
| void | Del (unsigned int refp) |
| int | haveAlts () |
| int | Next (int &port, char *buff, int bsz) |
| XrdCmsManList () | |
| ~XrdCmsManList () | |
Private Attributes | |
| XrdSysMutex | mlMutex |
| XrdCmsManRef * | nextMan |
| XrdCmsManRef * | allMans |
Definition at line 19 of file XrdCmsManList.hh.
| XrdCmsManList::XrdCmsManList | ( | ) | [inline] |
| XrdCmsManList::~XrdCmsManList | ( | ) |
| void XrdCmsManList::Add | ( | unsigned int | refp, | |
| char * | manp, | |||
| int | manport, | |||
| int | lvl | |||
| ) |
Definition at line 69 of file XrdCmsManList.cc.
References allMans, free(), XrdNetDNS::getHostAddr(), XrdNetDNS::getHostName(), XrdSysMutex::Lock(), XrdCmsManRef::ManLvl, mlMutex, XrdCmsManRef::Next, nextMan, XrdMonCtrCollector::port, and XrdSysMutex::UnLock().
Referenced by XrdCmsNode::do_Try(), and XrdCmsProtocol::Pander().
| void XrdCmsManList::Del | ( | unsigned int | refp | ) |
Definition at line 119 of file XrdCmsManList.cc.
References allMans, XrdSysMutex::Lock(), mlMutex, XrdCmsManRef::Next, nextMan, and XrdSysMutex::UnLock().
Referenced by XrdCmsNode::do_Try(), and XrdCmsProtocol::Pander().
| int XrdCmsManList::haveAlts | ( | ) | [inline] |
| int XrdCmsManList::Next | ( | int & | port, | |
| char * | buff, | |||
| int | bsz | |||
| ) |
Definition at line 152 of file XrdCmsManList.cc.
References allMans, XrdSysMutex::Lock(), XrdCmsManRef::Manager, XrdCmsManRef::ManLvl, XrdCmsManRef::ManPort, mlMutex, XrdCmsManRef::Next, nextMan, strlcpy(), and XrdSysMutex::UnLock().
Referenced by XrdCmsProtocol::Pander().
XrdSysMutex XrdCmsManList::mlMutex [private] |
XrdCmsManRef* XrdCmsManList::nextMan [private] |
Definition at line 46 of file XrdCmsManList.hh.
Referenced by Add(), Del(), Next(), and XrdCmsManList().
XrdCmsManRef* XrdCmsManList::allMans [private] |
Definition at line 47 of file XrdCmsManList.hh.
Referenced by Add(), Del(), haveAlts(), Next(), XrdCmsManList(), and ~XrdCmsManList().
1.5.1