Ignore:
Timestamp:
Mar 26, 2010, 11:32:09 AM (12 years ago)
Author:
Matthäus Wander
Message:
  • new pap dlls, should fix thread stuck after shutdown (thanks Seb)
  • underlying interface change for configuring Snal settings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PeerToPeerBase/PeerToPeerBase.cs

    r1206 r1261  
    175175                    // NAT-Traversal stuff needs a different Snal-Version
    176176                    this.linkmanager = new PeersAtPlay.P2PLink.SnalNG.Snal(scheduler);
    177                     ((PeersAtPlay.P2PLink.SnalNG.Snal)this.linkmanager).Settings.ConnectInternal = true;
    178                     ((PeersAtPlay.P2PLink.SnalNG.Snal)this.linkmanager).Settings.LocalReceivingPort = 0;
    179                     ((PeersAtPlay.P2PLink.SnalNG.Snal)this.linkmanager).Settings.UseLocalAddressDetection = false;
    180                     ((PeersAtPlay.P2PLink.SnalNG.Snal)this.linkmanager).Settings.AutoReconnect = false;
    181                     ((PeersAtPlay.P2PLink.SnalNG.Snal)this.linkmanager).Settings.NoDelay = false;
    182                     ((PeersAtPlay.P2PLink.SnalNG.Snal)this.linkmanager).Settings.ReuseAddress = false;
    183                     ((PeersAtPlay.P2PLink.SnalNG.Snal)this.linkmanager).Settings.UseNetworkMonitorServer = true;
     177
     178                    PeersAtPlay.P2PLink.SnalNG.Settings settings = new PeersAtPlay.P2PLink.SnalNG.Settings();
     179                    settings.LoadDefaults();
     180                    settings.ConnectInternal = true;
     181                    settings.LocalReceivingPort = 0;
     182                    settings.UseLocalAddressDetection = false;
     183                    settings.AutoReconnect = false;
     184                    settings.NoDelay = false;
     185                    settings.ReuseAddress = false;
     186                    settings.UseNetworkMonitorServer = true;
     187
     188                    this.linkmanager.Settings = settings;
     189
    184190                    break;
    185191                default:
Note: See TracChangeset for help on using the changeset viewer.