![]() |
XRootD
|
#include <XrdNetRegistry.hh>
Public Member Functions | |
XrdNetRegistry () | |
~XrdNetRegistry () | |
Static Public Member Functions | |
static const char * | GetAddrs (const std::string &hSpec, std::vector< XrdNetAddr > &aVec, int *ordn=0, XrdNetUtils::AddrOpts opts=XrdNetUtils::allIPMap, int pNum=XrdNetUtils::PortInSpec) |
static bool | Register (const char *hName, const char *hList, std::string *eText=0, bool rotate=false) |
static bool | Register (const char *hName, const char *hList[], int hLNum, std::string *eText=0, bool rotate=false) |
Static Public Attributes | |
static const char | pfx = '%' |
Registry names must start with this character. More... | |
Definition at line 39 of file XrdNetRegistry.hh.
|
inline |
Definition at line 107 of file XrdNetRegistry.hh.
|
inline |
Definition at line 108 of file XrdNetRegistry.hh.
|
static |
Return addresses associated with a registered name.
hSpec | Reference to address specification & must start with "pfx". |
aVec | Reference to the vector to contain addresses. |
ordn | Pointer to where the partition ordinal is to be stored. |
opts | Options on what to return (see XrdNetUtils). |
pNum | Port number argument (see XrdNetUtils), ignored for now. |
Definition at line 110 of file XrdNetRegistry.cc.
References XrdNetUtils::GetAddrs(), opts, and XrdSysMutexHelper::UnLock().
Referenced by XrdNetUtils::GetAddrs().
|
static |
Register a pseuo-hostname to be associated with a string of hosts.
hName | The pseudo-hostname which must start with 'pfx'. |
hList | A string of comma separated "host:port" entries to register. If the name starts with 'pfx' then it assumed to be a single name where hName is to become its alias. Alias rules are: 1) hName must not exist, 2) the target must exist, and 3) if the target is an alias hName becomes an alias of it's target (i.e. its parent). |
eText | When not null, the reason for the registration failure. |
rotate | When true, the returned host list will be rotated +1 relative to the previously returned list of hosts. |
Definition at line 179 of file XrdNetRegistry.cc.
References pfx, and Register().
|
static |
Register a pseuo-hostname to be associated with a list of hosts.
hName | The pseudo-hostname which must start with 'pfx'. |
hList | A list of "host:port" entries to register as hName. |
hLNum | The number of entries in hList. |
eText | When not null, the reason for the registration failure. |
rotate | When true, the returned host list will be rotated +1 relative to the previously returned list of hosts. |
Definition at line 147 of file XrdNetRegistry.cc.
References pfx.
Referenced by XrdSsiClientProvider::GetService(), and Register().
|
static |
Registry names must start with this character.
Definition at line 43 of file XrdNetRegistry.hh.
Referenced by XrdNetUtils::GetAddrs(), XrdSsiClientProvider::GetService(), and Register().