|
template<class Container > |
static void | splitString (Container &result, const std::string &input, const std::string &delimiter) |
| Split a string. More...
|
|
static int | GetIntParameter (const URL &url, const std::string &name, int defaultVal) |
| Get a parameter either from the environment or URL. More...
|
|
static std::string | GetStringParameter (const URL &url, const std::string &name, const std::string &defaultVal) |
| Get a parameter either from the environment or URL. More...
|
|
static AddressType | String2AddressType (const std::string &addressType) |
| Interpret a string as address type, default to IPAll. More...
|
|
static Status | GetHostAddresses (std::vector< XrdNetAddr > &addresses, const URL &url, AddressType type) |
| Resolve IP addresses. More...
|
|
static void | LogHostAddresses (Log *log, uint64_t type, const std::string &hostId, std::vector< XrdNetAddr > &addresses) |
| Log all the addresses on the list. More...
|
|
static std::string | TimeToString (time_t timestamp) |
| Convert timestamp to a string. More...
|
|
static uint64_t | GetElapsedMicroSecs (timeval start, timeval end) |
| Get the elapsed microseconds between two timevals. More...
|
|
static XRootDStatus | GetRemoteCheckSum (std::string &checkSum, const std::string &checkSumType, const URL &url) |
| Get a checksum from a remote xrootd server. More...
|
|
static XRootDStatus | GetLocalCheckSum (std::string &checkSum, const std::string &checkSumType, const std::string &path) |
| Get a checksum from local file. More...
|
|
static std::string | BytesToString (uint64_t bytes) |
| Convert bytes to a human readable string. More...
|
|
static XRootDStatus | CheckTPC (const std::string &server, uint16_t timeout=0) |
| Check if peer supports tpc. More...
|
|
static XRootDStatus | CheckTPCLite (const std::string &server, uint16_t timeout=0) |
|
static std::string | FQDNToCC (const std::string &fqdn) |
| Convert the fully qualified host name to country code. More...
|
|
static Status | GetDirectoryEntries (std::vector< std::string > &entries, const std::string &path) |
| Get directory entries. More...
|
|
static Status | ProcessConfig (std::map< std::string, std::string > &config, const std::string &file) |
| Process a config file and return key-value pairs. More...
|
|
static Status | ProcessConfigDir (std::map< std::string, std::string > &config, const std::string &dir) |
| Process a config directory and return key-value pairs. More...
|
|
static void | Trim (std::string &str) |
| Trim a string. More...
|
|
static void | LogPropertyList (Log *log, uint64_t topic, const char *format, const PropertyList &list) |
| Log property list. More...
|
|
static std::string | Char2Hex (uint8_t *array, uint16_t size) |
| Print a char array as hex. More...
|
|
static std::string | NormalizeChecksum (const std::string &name, const std::string &checksum) |
| Normalize checksum. More...
|
|
static std::vector< std::string > | GetSupportedCheckSums (const XrdCl::URL &url) |
| Get supported checksum types for given URL. More...
|
|
static std::string | InferChecksumType (const XrdCl::URL &source, const XrdCl::URL &destination, bool zip=false) |
|
static bool | CheckEC (const Message *req, const URL &url) |
| Check if this client can support given EC redirect. More...
|
|
static XrdCl::XRootDStatus | GetProtocolVersion (const XrdCl::URL url, int &protver) |
|
static bool | HasXAttr (const XrdCl::URL &url) |
|
static bool | HasPgRW (const XrdCl::URL &url) |
|