| 1 |
|
| 2 |
|
| 3 |
In this example SENDER sends a number (defined in Protocol.h, 10000 |
| 4 |
by default) of messages to the multicast group. Each message has |
| 5 |
an application-level sequence number. RECEIVER tries to receive them |
| 6 |
and checks for damaged, lost, and reordered messages. Since reliable |
| 7 |
multicast is used there should be no damaged or reordered messages. |
| 8 |
There could be some number of lost messages at the beginning, |
| 9 |
howevere (standard race condition). |
| 10 |
|
| 11 |
To run the example start a one or more RECEIVERS, e.g., |
| 12 |
|
| 13 |
$ ./receiver 224.1.0.1:10000 |
| 14 |
|
| 15 |
Then start one SENDER: |
| 16 |
|
| 17 |
$ ./sender 224.1.0.1:10000 |
| 18 |
|
| 19 |
-- |
| 20 |
Boris Kolpackov <[email protected]> |