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:
drbob 2012-01-14 16:41:00 +00:00
parent 2805d4ca1e
commit 79998dd70c
9 changed files with 589 additions and 16 deletions

View file

@ -43,10 +43,6 @@
#define DEBUG_ZEROCONF 1
#define ZC_SERVICE_STOPPED 0
#define ZC_SERVICE_ACTIVE 1
#define ZC_MAX_QUERY_TIME 30
#define ZC_MAX_RESOLVE_TIME 30
@ -695,7 +691,7 @@ void p3ZeroConf::locked_stopRegister()
std::cerr << "p3ZeroConf::locked_stopRegister()";
std::cerr << std::endl;
if (mBrowseStatus != ZC_SERVICE_ACTIVE)
if (mRegisterStatus != ZC_SERVICE_ACTIVE)
{
return;
}
@ -1250,7 +1246,7 @@ int p3ZeroConf::locked_stopQueryIp()
std::string p3ZeroConf::displayDNSServiceError(DNSServiceErrorType errcode)
std::string displayDNSServiceError(DNSServiceErrorType errcode)
{
std::ostringstream str;
switch(errcode)