|
Description
This sample program tests the RTX TCP/IP protocol stack by sending packets to a server and waiting for a response.
Source Files
client project source file:
client.c
Attaches a shutdown handler for the process, sets defaults
for TCP/IP parameters, checks and prints test parameters, initializes a packet
to send, and then starts a loop to send packets and wait for response. Build the Sample
Run the Sample
Remarks
The client.c program can be built as an .rtss or .exe executable binary file and run in the real-time or Win32 environment.
Usage
client.exe i= destination ip_address [options]
Options
p = Port Number (default=9999)
s = packet size (default=1024)
c = connection loops (default=1)
m = message loops (default=10000)
f = v4 or v6 (default=v4)
k Kill the server. TCP only.
l = use large packets (default = 1).
n = Nagle Alg. 0 = Disabled(default), 1 = Enabled
b = include and count first 500 packets (default b=0 do not include)
t = Source_MAC_address Destination_MAC_address(default = disabled)
/udp Use udp rather than tcp (default).
APIs Referenced
RTAPI |
Win32 APIs |
Winsock BSD APIs |
RealTime Network APIs |
See Also