Fabcoin Core
0.16.2
P2P Digital Currency
|
Network Class Static network operations and interface(s). More...
#include <Network.h>
Static Public Member Functions | |
static std::set< bi::address > | getInterfaceAddresses () |
static int | tcp4Listen (bi::tcp::acceptor &_acceptor, NetworkPreferences const &_netPrefs) |
Try to bind and listen on _listenPort, else attempt net-allocated port. More... | |
static bi::tcp::endpoint | traverseNAT (std::set< bi::address > const &_ifAddresses, unsigned short _listenPort, bi::address &o_upnpInterfaceAddr) |
Return public endpoint of upnp interface. If successful o_upnpifaddr will be a private interface address and endpoint will contain public address and port. More... | |
static bi::tcp::endpoint | resolveHost (std::string const &_host) |
Resolve "host:port" string as TCP endpoint. Returns unspecified endpoint on failure. More... | |
|
static |
Definition at line 46 of file Network.cpp.
|
static |
Resolve "host:port" string as TCP endpoint. Returns unspecified endpoint on failure.
Definition at line 216 of file Network.cpp.
|
static |
Try to bind and listen on _listenPort, else attempt net-allocated port.
Definition at line 119 of file Network.cpp.
|
static |
Return public endpoint of upnp interface. If successful o_upnpifaddr will be a private interface address and endpoint will contain public address and port.
Definition at line 176 of file Network.cpp.