close
Warning:
BrowserModule failed with ConfigurationError: Look in the Trac log for more information.
- Timestamp:
-
Feb 9, 2010, 4:52:51 PM (16 years ago)
- Author:
-
heep
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v35
|
v36
|
|
| 446 | 446 | if (stage != MIN_STAGE_OVERLAY) return; // see BaseApp.cc |
| 447 | 447 | |
| 448 | | myKey = thisNode.ip.get4().getInt() & ~BIGBIT; // get our key from our IP address |
| | 448 | myKey = thisNode.getAddress().get4().getInt() & ~BIGBIT; // get our key from our IP address |
| 449 | 449 | |
| 450 | 450 | // initialize the rest of variables |
| … |
… |
|
| 467 | 467 | { |
| 468 | 468 | // Set the information of the previous step in the chain |
| 469 | | prevNode.ip = IPAddress(BIGBIT | (myKey - 1)); |
| 470 | | prevNode.port = thisNode.port; |
| | 469 | prevNode.setAddress(IPAddress(BIGBIT | (myKey - 1))); |
| | 470 | prevNode.setPort(thisNode.getPort()); |
| 471 | 471 | prevNode.key = OverlayKey(myKey - 1); |
| 472 | 472 | |
| 473 | 473 | // Set the information of the next step in the chain |
| 474 | | nextNode.ip = IPAddress(BIGBIT | (myKey + 1)); |
| 475 | | nextNode.port = thisNode.port; |
| | 474 | nextNode.setAddress(IPAddress(BIGBIT | (myKey + 1))); |
| | 475 | nextNode.setPort(thisNode.getPort()); |
| 476 | 476 | nextNode.key = OverlayKey(myKey + 1); |
| 477 | 477 | |