Changeset 3718 for sample/pingpong


Ignore:
Timestamp:
May 27, 2009, 8:13:08 AM (15 years ago)
Author:
Christoph Mayer
Message:

-dynamische wahl des overlays durch den initiator, nodes kriegen bei join mitgeteilt welche overlay struktur zu verwenden ist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/pingpong/PingPong.cpp

    r3071 r3718  
    6969        node->start();
    7070
     71        // when initiating, you can define the overlay type, default is Chord [CHORD_OVERLAY]
     72        SpoVNetProperties params;
     73        //params.setBaseOverlayType( SpoVNetProperties::ONE_HOP_OVERLAY ); // alternative: OneHop
     74
    7175        // initiate or join the spovnet
    7276        if (!isInitiator) node->join(spovnetName);
    73         else node->initiate(spovnetName);
     77        else node->initiate(spovnetName, params);
    7478
    7579        // ping pong started up...
Note: See TracChangeset for help on using the changeset viewer.