|
|
@ -10,5 +10,11 @@ namespace connect_code {
|
|
|
|
/* Given a code, decode it and return a vector with the address and port */
|
|
|
|
/* Given a code, decode it and return a vector with the address and port */
|
|
|
|
std::vector<std::string> decode(std::string connect_code);
|
|
|
|
std::vector<std::string> decode(std::string connect_code);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Tokenizes a string, based on the given delimiter */
|
|
|
|
|
|
|
|
std::vector<std::string> tokenize_str(std::string str, std::string delim);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Convert an IPv4 address from decimal to dotted decimal notation */
|
|
|
|
|
|
|
|
std::string dec_to_dotted_dec(std::string addr);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|