Multicast Data Reflector (As Client)

The Multicast Data Reflector sample can be run as 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 Client

As a client, or a multicast receiver, the program creates a child thread and the child thread routine, ChildThread_high, does the following:

  1. Get a UDP socket.
  2. Bind to the application's port number.
  3. Join the application's multicast address group.
  4. Receive.
  5. Shut down and close the socket when complete.

NOTE:  The receiver does not have to set a default interface multicast datagrams.

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