Fabcoin Core  0.16.2
P2P Digital Currency
Static Public Member Functions | List of all members
dev::p2p::Network Class Reference

Network Class Static network operations and interface(s). More...

#include <Network.h>

Static Public Member Functions

static std::set< bi::addressgetInterfaceAddresses ()
 
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...
 

Detailed Description

Network Class Static network operations and interface(s).

Definition at line 71 of file Network.h.

Member Function Documentation

std::set< bi::address > Network::getInterfaceAddresses ( )
static
Returns
public and private interface addresses

Definition at line 46 of file Network.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bi::tcp::endpoint Network::resolveHost ( std::string const &  _host)
static

Resolve "host:port" string as TCP endpoint. Returns unspecified endpoint on failure.

Definition at line 216 of file Network.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int Network::tcp4Listen ( bi::tcp::acceptor &  _acceptor,
NetworkPreferences const &  _netPrefs 
)
static

Try to bind and listen on _listenPort, else attempt net-allocated port.

Definition at line 119 of file Network.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Definition at line 176 of file Network.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: