Changes between Version 12 and Version 13 of Documentation/Tutorial/PingPong
- Timestamp:
- Jan 22, 2009, 8:55:49 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/Tutorial/PingPong
v12 v13 105 105 First we include the .h file, define the namespace, turn logging functionality on (line 07) and set the ID of the Service. Every service using ''Ariba'' is connected to a specific ID that may be chosen initially and arbitrarily. This ID serves ''Ariba'' to distinguish between several services that may use it concurrently. Via ''setMode'' (lines 16-18) one can indicate which node in the example should start the packet sending process. This method is called in main.cpp after getting the specific information from the config file. 106 106 107 The ''startup'' method (lines 20-51) is called from the StartupWrapper, jolting the operation of the ping pong service. 107 The ''startup'' method (lines 20-51) is called from the StartupWrapper, jolting the operation of the ping pong service. With its call, the StartupWrapper passes an ''UnderlayAbstraction'' object to the service, being the main object for communication between the service and ''Ariba'' (lines 20/21). 108 When starting up, the service chooses a servcie ID (line 25). Then, it creates a node ID for the SpoVNet node it represents in the instance, under usage of potential base information deposited in the config file (lines 27-29). Same applies to its locator (lines 31-33) and the port (lines 35-37). 108 109 109 110