// util.h // Author: Allen Porter #ifndef __BTUNNEL_UTIL_H__ #define __BTUNNEL_UTIL_H__ #include #include #include namespace btunnel { // Parses a host:port string into individual components. bool GetHostPort(const std::string& host_port, std::string* host, uint16_t* port); // Returns a map from key value pairs like: // key1=value1,key2=value2,... bool GetMap(const std::string& str, std::map* records); } // namespace btunnel #endif // __BTUNNEL_UTIL_H__