You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
netpong/includes/connect_code.hpp

15 lines
411 B
C++

#ifndef _CONNECT_CODE
#define _CONNECT_CODE
#include <string>
#include <vector>
namespace connect_code {
/* Given an address and a port, return a 'code' which has the address and port encoded in it */
std::string encode(std::string address, std::string port);
/* Given a code, decode it and return a vector with the address and port */
std::vector<std::string> decode(std::string connect_code);
}
#endif