Network Class Static network operations and interface(s).
More...
#include <Network.h>
|
static std::set< bi::address > | getInterfaceAddresses () |
|
static void | tcp4Listen (bi::tcp::acceptor &_acceptor, NetworkConfig const &_config) |
| 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) |
|
static bi::tcp::endpoint | resolveHost (std::string const &_host) |
|
Network Class Static network operations and interface(s).
◆ getInterfaceAddresses()
std::set< bi::address > Network::getInterfaceAddresses |
( |
| ) |
|
|
static |
- Returns
- public and private interface addresses
◆ resolveHost()
static bi::tcp::endpoint dev::p2p::Network::resolveHost |
( |
std::string const & |
_host | ) |
|
|
static |
Resolve "host:port" string as TCP endpoint. Returns unspecified endpoint on failure.
◆ tcp4Listen()
void Network::tcp4Listen |
( |
bi::tcp::acceptor & |
_acceptor, |
|
|
NetworkConfig const & |
_config |
|
) |
| |
|
static |
Try to bind and listen on _listenPort, else attempt net-allocated port.
◆ traverseNAT()
bi::tcp::endpoint Network::traverseNAT |
( |
std::set< bi::address > const & |
_ifAddresses, |
|
|
unsigned short |
_listenPort, |
|
|
bi::address & |
o_upnpInterfaceAddr |
|
) |
| |
|
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.
The documentation for this class was generated from the following files: