Changes between Version 38 and Version 39 of Documentation/Tutorial/PingPong
- Timestamp:
- Apr 18, 2011, 5:02:15 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/Tutorial/PingPong
v38 v39 12 12 As already mentioned, the example service simply exchanges packets between participating network nodes. This is accomplished by using the ''Ariba'' abstraction to create a communication context and hide underlay details. The participants form a ''SpoVNet'' instance in which the first one (as the initiator) creates the instance, while the second joins. As soon as some nodes have successfully joined the instance, they starts sending packets to each other periodically. This happens until a button is pressed. 13 13 14 '''How it does it''' 15 16 Let's take a look at the code now. Writing a service is pretty simple when using ''Ariba'' because most difficulties and annoyances that could come up when struggling with writing network code are taken from the developer. We start with the ''main.cpp''. 14 '''How it works''' 15 16 Let's take a look at the code now. Writing a service is pretty simple when using ''Ariba'' because 17 the developer gets relieved from most difficulties and annoyances that could come up when struggling with writing network code. We start with the ''main.cpp''. 17 18 18 19