Changes between Version 11 and Version 12 of Documentation/Tutorial/PingPong
- Timestamp:
- Jan 21, 2009, 9:18:34 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/Tutorial/PingPong
v11 v12 104 104 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 108