mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 05:44:45 -04:00
Calm down p3netmgr at least when internet connection is not available
Solve compiler warnings, delete tons of cruft and deadcode
This commit is contained in:
parent
6788ea041a
commit
6b71c57a54
16 changed files with 120 additions and 2288 deletions
|
@ -206,11 +206,11 @@ struct RSTrafficClue : RsSerializable
|
|||
|
||||
struct RsConfigNetStatus : RsSerializable
|
||||
{
|
||||
RsConfigNetStatus()
|
||||
RsConfigNetStatus() : netLocalOk(true)
|
||||
{
|
||||
localPort = extPort = 0 ;
|
||||
firewalled = forwardPort = false ;
|
||||
DHTActive = uPnPActive = netLocalOk = netUpnpOk = netDhtOk = netStunOk = netExtAddressOk = false ;
|
||||
DHTActive = uPnPActive = netUpnpOk = netDhtOk = netStunOk = netExtAddressOk = false ;
|
||||
uPnPState = 0 ;
|
||||
//DHTPeers = 0 ;
|
||||
netDhtNetSize = netDhtRsNetSize = 0;
|
||||
|
@ -235,7 +235,8 @@ struct RsConfigNetStatus : RsSerializable
|
|||
int uPnPState;
|
||||
|
||||
/* Flags for Network Status */
|
||||
bool netLocalOk; /* That we've talked to someone! */
|
||||
RS_DEPRECATED
|
||||
bool netLocalOk; /// As of today it's meaningless
|
||||
bool netUpnpOk; /* upnp is enabled and active */
|
||||
bool netDhtOk; /* response from dht */
|
||||
bool netStunOk; /* recvd stun / udp packets */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue