|
The client sample sends either UDP, TCP or multicast UDP packets to a running instance of the Server sample, receives the packets echoed from the server (for non-multicast) and accumulates statistics regarding the round trip packet times. The server is specified by the IP address and port number. These, as well as the protocol (UDP or TCP), packet size and number of packets sent/received are command line arguments.
You can also use the client to show basic filter functionality using the RtClientFilter example. The RtClientFilter should be enabled on the machine running the server sample and the client should use the t option to enable filter testing.
The various command line options are described below.
RTSS Usage
RTSSrun client.rtss I=IP_address [options]
Win32 Usage
Client.exe I=IP_address [options]
Option |
Description |
i= |
Destination IP address in dot notation. If multicast mode is selected, then the multicast IP address should be specified instead of the actual server IP address. |
f=v4, v6 |
v4 = IPv4 (AF_INET) address family v6 = IPv6 (AF_INET) address family |
n=0,1 |
0=disable Nagle Algorithm, 1=Enable Nagle Algorithm (default) Note: Both the client and the server must have the use of the Nagle Algorithm in the same state. Either both have the Nagle Algorithm disabled or both have the Nagle Algorithm enabled. |
b=0,1 |
0=don't include the first 500 packets in performance metrics (default), 1=include the first 500 packets |
i=0,1 |
0=Use packets that fit inside standard Ethernet MTU, 1=Allow IP to break up packets and don't force packet to fit in MTU. Default=1 |
p=nn |
nn port number (default is 9999) |
/udp |
Use UDP rather than defaulting to TCP |
s=packet size |
Packet size sent (default=1024 )in bytes. |
c= |
Connection loops (default=1) |
m= |
Message loops (default=10000) |
K |
Kill the server; remote shutdown of the Server |
/silent | Run in silent mode (no printfs) |
/? |
/? displays usage |
Test the stack filter using the RtClientFilter example. The local and destination MAC addresses should include just the hex digits, without any separator characters. |
Remarks
If a non-deterministic call such as RtPrintf is made to Windows, and the Windows side crashes while the thread is within the Windows domain, the thread freezes. To avoid this issue, we recommend that you run Client in silent mode (/silent
).