Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::p2p::UPnP Class Reference

#include <UPnP.h>

Public Member Functions

 UPnP ()
 
 ~UPnP ()
 
std::string externalIP ()
 
int addRedirect (char const *addr, int port)
 
void removeRedirect (int port)
 
bool isValid () const
 

Private Attributes

std::set< int > m_reg
 
bool m_ok
 
std::shared_ptr< UPNPUrls > m_urls
 
std::shared_ptr< IGDdatas > m_data
 

Detailed Description

Definition at line 38 of file UPnP.h.

Constructor & Destructor Documentation

UPnP::UPnP ( )

Definition at line 41 of file UPnP.cpp.

UPnP::~UPnP ( )

Definition at line 103 of file UPnP.cpp.

Member Function Documentation

int UPnP::addRedirect ( char const *  addr,
int  port 
)

Definition at line 121 of file UPnP.cpp.

Here is the call graph for this function:

string UPnP::externalIP ( )

Definition at line 110 of file UPnP.cpp.

bool dev::p2p::UPnP::isValid ( ) const
inline

Definition at line 48 of file UPnP.h.

void UPnP::removeRedirect ( int  port)

Definition at line 179 of file UPnP.cpp.

Here is the call graph for this function:

Member Data Documentation

std::shared_ptr<IGDdatas> dev::p2p::UPnP::m_data
private

Definition at line 54 of file UPnP.h.

bool dev::p2p::UPnP::m_ok
private

Definition at line 52 of file UPnP.h.

std::set<int> dev::p2p::UPnP::m_reg
private

Definition at line 51 of file UPnP.h.

std::shared_ptr<UPNPUrls> dev::p2p::UPnP::m_urls
private

Definition at line 53 of file UPnP.h.


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