Multicast_Data_Reflector_(As_Server)

The Multicast Data Reflector sample can be run as either a server or a client. To test the Loopback feature in RT-TCP/IP, you could run both the server and client version of DataReflector.rtss image on the same computer.

Run as Server

As a server, or a multicast sender, the program creates a repeatable timer and the timer handler routine, Broadcast, does the following:

  1. Get a UDP socket.
  2. Set the IP Time-To-Live appropriately.
  3. Set the default interface multicast datagrams should be sent from.
  4. Send to the application's multicast address and port number.
  5. Shut down and close the socket when complete.

NOTE:  The sender does not have to join a multicast group.

RTSS Usage

RTSSrun DataReflector.rtss I=IP_address u [options]

You must specify the "Multicast IP address" (m=224.5.6.7).

Client RTSS Usage:

RTSSrun DataReflector.rtss m=224.5.6.7 i=IP_address u [options]

Server RTSS Usage:

RTSSrun DataReflector.rtss m=224.5.6.7 i=IP_address f=IF_address [options]

NOTE:  All Data Reflector command-line options are case-sensitive.

Option

Description

p=

Port number (default is 9999)

m=

Multicast IP address in dot notation

f=

Default interface for sending Multicast packets

n=

Client name (default is EmptyName)

r=

Rate of Multicast in seconds (default is 5 seconds)

i=

Local IP address in dot notation.

u

When this option is used the Data Reflector sample is run as a client. When it is not used, it is run as a server.

t=

Time-To-Live value (default is 1)

k=

Kill all clients

/?

Displays usage

 

See Also

IntervalZero.com | Support | Give Feedback