Changeset 1672 for trunk/CrypP2P


Ignore:
Timestamp:
Jun 18, 2010, 1:09:44 PM (12 years ago)
Author:
Matthäus Wander
Message:

P2P:

  • new pap dlls based on pap rev. 5081
  • settings change to make ct2 compile against new pap dlls
  • added chord overlay+dht
Location:
trunk/CrypP2P
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/CrypP2P.csproj

    r1665 r1672  
    9090      <Private>false</Private>
    9191    </Reference>
     92        <Reference Include="ChordOverlay">
     93      <HintPath>..\appreferences\x86\chord.dll</HintPath>
     94      <Private>false</Private>
     95    </Reference>
    9296    <Reference Include="Gears4Net">
    9397      <HintPath>..\appreferences\x86\gears4net.dll</HintPath>
     
    138142    <Reference Include="FullMeshOverlay">
    139143      <HintPath>..\appreferences\x64\fullmeshoverlay.dll</HintPath>
     144      <Private>false</Private>
     145    </Reference>
     146        <Reference Include="ChordOverlay">
     147      <HintPath>..\appreferences\x64\chord.dll</HintPath>
    140148      <Private>false</Private>
    141149    </Reference>
  • trunk/CrypP2P/Internal/P2PBase.cs

    r1665 r1672  
    3434using PeersAtPlay.P2PStorage.FullMeshDHT;
    3535using PeersAtPlay.Util.Logging;
     36using PeersAtPlay.P2POverlay.Chord;
    3637
    3738/* TODO:
     
    119120                    settings.CloseConnectionAfterPingTimeout = false;
    120121
    121                     settings.MaximumMessageSize = 10485760;
    122                     settings.IgnoreMaximumMessageSize = true;
     122                    settings.FragmentMessages = true;
     123                    settings.FragmentMessageSize = 10*1024;
    123124                       
    124125                    switch(P2PSettings.Default.TransportProtocol)
     
    166167                    _overlay = new FullMeshOverlay(scheduler);
    167168                    break;
     169                case P2POverlayType.ChordOverlay:
     170                    _overlay = new ChordNGCore(scheduler);
     171                    break;
    168172                default:
    169173                    throw (new NotImplementedException());
     
    174178                case P2PDHTType.FullMeshDHT:
    175179                    Dht = new FullMeshDHT(scheduler);
     180                    break;
     181                case P2PDHTType.ChordDHT:
     182                    Dht = (IDHT) _overlay;
    176183                    break;
    177184                default:
Note: See TracChangeset for help on using the changeset viewer.