close
Warning:
BrowserModule failed with ConfigurationError: Look in the Trac log for more information.
- Timestamp:
-
Jul 6, 2009, 11:20:06 AM (16 years ago)
- Author:
-
heep
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v26
|
v27
|
|
| 3 | 3 | |
| 4 | 4 | |
| 5 | | Other good starting point you could look at: |
| | 5 | Other good starting points you could look at: |
| 6 | 6 | |
| 7 | 7 | * The source code of the Chord protocol in [source:src/overlay/chord/Chord.cc] |
| … |
… |
|
| 294 | 294 | |
| 295 | 295 | |
| 296 | | // finalize is called when the module is being destroyed |
| | 296 | // finishApp() is called when the module is being destroyed |
| 297 | 297 | |
| 298 | 298 | void MyApplication::finishApp() |
| … |
… |
|
| 302 | 302 | delete timerMsg; |
| 303 | 303 | |
| 304 | | // finalize() is usually used to save the module's statistics. |
| | 304 | // finishApp() is usually used to save the module's statistics. |
| 305 | 305 | // We'll use globalStatistics->addStdDev(), which will calculate min, max, mean and deviation values. |
| 306 | 306 | // The first parameter is a name for the value, you can use any name you like (use a name you can find quickly!). |
| … |
… |
|
| 405 | 405 | void setOwnNodeID(); // (optional) called to set the key of this node (random otherwise) |
| 406 | 406 | 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 |
| 408 | 408 | |
| 409 | 409 | // obligatory: called when we need the next hop to route a packet to the given key |
| … |
… |
|
| 518 | 518 | |
| 519 | 519 | // Called when the module is about to be destroyed |
| 520 | | void MyOverlay::finalizeOverlay() |
| | 520 | void MyOverlay::finishOverlay() |
| 521 | 521 | { |
| 522 | 522 | // remove this node from the overlay |