mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
Added Native (Bonjour API) Nat Port Forwarding to OSX.
* new classe p3zcNatAssist * moved some common ZeroConf functions / definitions around. * moved virtual tick() to parent class: pqiNetAssist * added zcNetAssist section to makefiles. (active for OSX build) * setup switch between p3zcNatAssist & upnphandler in rsinit.cc NOTE: Still to test network restart, etc, and correct exchange of external Ip Address. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4800 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2805d4ca1e
commit
79998dd70c
9 changed files with 589 additions and 16 deletions
|
@ -135,6 +135,12 @@ class zcPeerDetails
|
|||
|
||||
};
|
||||
|
||||
#define ZC_SERVICE_STOPPED 0
|
||||
#define ZC_SERVICE_ACTIVE 1
|
||||
|
||||
// This is used by p3zcNatAssist too.
|
||||
std::string displayDNSServiceError(DNSServiceErrorType errcode);
|
||||
|
||||
class p3NetMgr;
|
||||
|
||||
class p3ZeroConf: public pqiNetAssistConnect, public pqiNetListener
|
||||
|
@ -233,7 +239,6 @@ virtual bool setAttachMode(bool on);
|
|||
int locked_completeQueryResult(zcQueryResult &qr);
|
||||
int locked_stopQueryIp();
|
||||
|
||||
std::string displayDNSServiceError(DNSServiceErrorType errcode);
|
||||
|
||||
/**************** DATA ****************/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue