xrootd
|
#include <XrdOucBonjour.hh>
Public Member Functions | |
XrdOucBonjour () | |
virtual | ~XrdOucBonjour () |
virtual int | RegisterService (XrdOucBonjourRecord &record, unsigned short port=0)=0 |
virtual int | SubscribeForUpdates (const char *servicetype, XrdOucBonjourUpdateCallback callback, void *context)=0 |
virtual int | ResolveNodeInformation (XrdOucBonjourResolutionEntry *nodeAndCallback)=0 |
const std::list < XrdOucBonjourNode * > & | GetCurrentNodeList () const |
void | LockNodeList () |
void | UnLockNodeList () |
Static Public Member Functions | |
static XrdOucBonjour & | getInstance () |
Protected Attributes | |
std::list< XrdOucBonjourNode * > | ListOfNodes |
XrdSysMutex | ListOfNodesMutex |
XrdOucBonjour::XrdOucBonjour | ( | ) | [inline] |
virtual XrdOucBonjour::~XrdOucBonjour | ( | ) | [inline, virtual] |
const std::list<XrdOucBonjourNode *>& XrdOucBonjour::GetCurrentNodeList | ( | ) | const [inline] |
References ListOfNodes.
static XrdOucBonjour& XrdOucBonjour::getInstance | ( | ) | [static] |
Reimplemented in XrdOucAppleBonjour, XrdOucAvahiBonjour, and XrdOucAvahiBonjour.
void XrdOucBonjour::LockNodeList | ( | ) | [inline] |
References ListOfNodesMutex, and XrdSysMutex::Lock().
Referenced by XrdOucAvahiBonjour::BrowseReply(), XrdOucAppleBonjour::BrowseReply(), XrdOucAvahiBonjour::ResolveReply(), and XrdOucAppleBonjour::ResolveReply().
virtual int XrdOucBonjour::RegisterService | ( | XrdOucBonjourRecord & | record, |
unsigned short | port = 0 |
||
) | [pure virtual] |
Implemented in XrdOucAppleBonjour, XrdOucAvahiBonjour, and XrdOucAvahiBonjour.
virtual int XrdOucBonjour::ResolveNodeInformation | ( | XrdOucBonjourResolutionEntry * | nodeAndCallback | ) | [pure virtual] |
Implemented in XrdOucAppleBonjour, XrdOucAvahiBonjour, and XrdOucAvahiBonjour.
virtual int XrdOucBonjour::SubscribeForUpdates | ( | const char * | servicetype, |
XrdOucBonjourUpdateCallback | callback, | ||
void * | context | ||
) | [pure virtual] |
Implemented in XrdOucAppleBonjour, XrdOucAvahiBonjour, and XrdOucAvahiBonjour.
void XrdOucBonjour::UnLockNodeList | ( | ) | [inline] |
References ListOfNodesMutex, and XrdSysMutex::UnLock().
Referenced by XrdOucAvahiBonjour::BrowseReply(), XrdOucAppleBonjour::BrowseReply(), XrdOucAvahiBonjour::ResolveReply(), and XrdOucAppleBonjour::ResolveReply().
std::list<XrdOucBonjourNode *> XrdOucBonjour::ListOfNodes [protected] |
XrdSysMutex XrdOucBonjour::ListOfNodesMutex [protected] |
Referenced by LockNodeList(), and UnLockNodeList().