mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Important changes to tighten up the connection methods:
* Switched to miniupnpc-1.0 * modified miniupnpc to add lease duration. * set lease duration to 1 Hr. * Modified configure scripts to use miniupnpc-1.0 * added TIMEOUT to all connections (5 sec for TCP - Important!) * reduced TCP offset delay to 2 seconds. * BUGFIX: Added missing connect_parameter wrapper function. * added reset to other connection methods when connection is made. * Added Connection Type (TCP/UDP) information to feedback/GUI * Increased default Data Rates: from 50/50 to 100/500 kB/s * Removed Default Bootstrap Ids. (only automatic now!) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@423 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8079660291
commit
8d3f9a3ec6
16 changed files with 131 additions and 46 deletions
|
@ -116,7 +116,7 @@ bool SetRedirectAndTest(struct UPNPUrls * urls,
|
|||
char externalIPAddress[16];
|
||||
char intClient[16];
|
||||
char intPort[6];
|
||||
char leaseDuration[] = "600"; /* 10 mins */
|
||||
char leaseDuration[] = "3600"; /* 60 mins */
|
||||
int r;
|
||||
int ok = 1;
|
||||
|
||||
|
@ -141,11 +141,11 @@ bool SetRedirectAndTest(struct UPNPUrls * urls,
|
|||
printf("GetExternalIPAddress failed.\n");
|
||||
|
||||
// Unix at the moment!
|
||||
// r = UPNP_AddPortMapping(urls->controlURL, data->servicetype,
|
||||
// eport, iport, iaddr, 0, leaseDuration, proto);
|
||||
|
||||
r = UPNP_AddPortMapping(urls->controlURL, data->servicetype,
|
||||
eport, iport, iaddr, 0, proto);
|
||||
eport, iport, iaddr, 0, leaseDuration, proto);
|
||||
|
||||
// r = UPNP_AddPortMapping(urls->controlURL, data->servicetype,
|
||||
// eport, iport, iaddr, 0, proto);
|
||||
if(r==0)
|
||||
{
|
||||
printf("AddPortMapping(%s, %s, %s) failed\n", eport, iport, iaddr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue