Network Class Static network operations and interface(s).
More...
#include <Network.h>
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()
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: