2 // author : Boris Kolpackov <boris@kolpackov.net>
3 #include "ace/Log_Msg.h"
4 #include "ace/OS_NS_unistd.h"
6 #include "ace/RMCast/Socket.h"
13 ACE_TMAIN (int argc
, ACE_TCHAR
* argv
[])
17 if (argc
< 2) throw args ();
19 ACE_INET_Addr
addr (argv
[1]);
21 //FUZZ: disable check_for_lack_ACE_OS
22 // Turn on message loss and reordering simulation.
24 ACE_RMCast::Socket
socket (addr
, false, true);
25 //FUZZ: enable check_for_lack_ACE_OS
30 for (unsigned short i
= 0; i
< payload_size
; i
++)
35 for (; msg
.sn
< message_count
; msg
.sn
++)
37 socket
.send (&msg
, sizeof (msg
));
40 // Keep running in case retransmissions are needed.
42 ACE_OS::sleep (ACE_Time_Value (60, 0));
49 "usage: %s <IPv4 multicast address>:<port>\n", argv
[0]));