close
Warning:
BrowserModule failed with ConfigurationError: Look in the Trac log for more information.
- Timestamp:
-
Sep 28, 2009, 11:17:47 AM (15 years ago)
- Author:
-
Ingmar Baumgart
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v33
|
v34
|
|
196 | 196 | In this section, we'll implement our overlay and application. But first, let's do a introduction about some of the important variable types used in !OverSim. |
197 | 197 | |
198 | | * BaseOverlay: Template overlay module class. All overlay modules should derive from it.[[BR]] |
199 | | * BaseApp: Template application module class. All application modules should derive from it.[[BR]] |
200 | | * OverlayKey: Class to describe overlay keys. Internally it stores the key as an bit array. [[BR]] |
| 198 | * BaseOverlay: Template overlay module class. All overlay modules should derive from it.[[BR]] |
| 199 | * BaseApp: Template application module class. All application modules should derive from it.[[BR]] |
| 200 | * OverlayKey: Class to describe overlay keys. Internally it stores the key as an bit array. [[BR]] |
201 | 201 | Its value can be set in different ways when it's being initialized:[[BR]] |
202 | 202 | {{{ |
… |
… |
|
210 | 210 | OverlayKey operations include equality (==), order (<, >) and range (isBetween(key1, key2)).[[BR]] |
211 | 211 | |
212 | | * IPvXAddress: Generic IP address, can contain either an IPv4 address (IPAddress) or an IPv6 address (IPv6Address).[[BR]] |
213 | | * TransportAddress: A structure containing bot an IPvXAddress (field "ip"), and a port (field "port").[[BR]] |
214 | | * NodeHandle: A child class of TransportAddress, additionaly contains an OverlayKey (field "key"). In overlay and application modules, the variable {{{thisNode}}} contains the NodeHandle value representing the host. However, in application modules the {{{key}}} field may not be set.[[BR]] |
| 212 | * IPvXAddress: Generic IP address, can contain either an IPv4 address (IPAddress) or an IPv6 address (IPv6Address).[[BR]] |
| 213 | * TransportAddress: A structure containing bot an IPvXAddress (field "ip"), and a port (field "port").[[BR]] |
| 214 | * NodeHandle: A child class of TransportAddress, additionaly contains an OverlayKey (field "key"). In overlay and application modules, the variable {{{thisNode}}} contains the NodeHandle value representing the host. However, in application modules the {{{key}}} field may not be set.[[BR]] |
215 | 215 | |
216 | 216 | Now, let's continue with the implementation. |