close Warning: BrowserModule failed with ConfigurationError: Look in the Trac log for more information.

Changes between Version 26 and Version 27 of OverSimDevelop


Ignore:
Timestamp:
Jul 6, 2009, 11:20:06 AM (15 years ago)
Author:
heep
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OverSimDevelop

    v26 v27  
    33
    44
    5 Other good starting point you could look at:
     5Other good starting points you could look at:
    66
    77   * The source code of the Chord protocol in [source:src/overlay/chord/Chord.cc]
     
    294294
    295295
    296 // finalize is called when the module is being destroyed
     296// finishApp() is called when the module is being destroyed
    297297
    298298void MyApplication::finishApp()
     
    302302    delete timerMsg;
    303303
    304     // finalize() is usually used to save the module's statistics.
     304    // finishApp() is usually used to save the module's statistics.
    305305    // We'll use globalStatistics->addStdDev(), which will calculate min, max, mean and deviation values.
    306306    // The first parameter is a name for the value, you can use any name you like (use a name you can find quickly!).
     
    405405    void setOwnNodeID();                            // (optional) called to set the key of this node (random otherwise)
    406406    void joinOverlay();                             // called when the node is ready to join the overlay
    407     void finalizeOverlay();                         // called when the module is about to be destroyed
     407    void finishOverlay();                         // called when the module is about to be destroyed
    408408
    409409    // obligatory: called when we need the next hop to route a packet to the given key
     
    518518
    519519// Called when the module is about to be destroyed
    520 void MyOverlay::finalizeOverlay()
     520void MyOverlay::finishOverlay()
    521521{
    522522    // remove this node from the overlay