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