33 namespace bi = ba::ip;
40 static const unsigned short c_defaultListenPort = 30303;
75 static std::set<bi::address> getInterfaceAddresses();
78 static int tcp4Listen(bi::tcp::acceptor& _acceptor,
NetworkPreferences const& _netPrefs);
81 static bi::tcp::endpoint
traverseNAT(std::set<bi::address>
const& _ifAddresses,
unsigned short _listenPort,
bi::address& o_upnpInterfaceAddr);
84 static bi::tcp::endpoint resolveHost(std::string
const& _host);
std::string listenIPAddress
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
NetworkPreferences(unsigned short lp=c_defaultListenPort)
bool isPublicAddress(bi::address const &_addressToCheck)
NetworkPreferences(std::string const &publicIP, std::string const &l=std::string(), unsigned short lp=c_defaultListenPort, bool u=true)
unsigned short listenPort
Network Class Static network operations and interface(s).
bool traverseNAT
Preferences.
NetworkPreferences(std::string const &l, unsigned short lp=c_defaultListenPort, bool u=true)
struct evm_uint160be address(struct evm_env *env)
std::string publicIPAddress
Addressing.