UDP Sample

This sample includes a simplified UDP server and a simplified UDP client.

Running the Sample

Note: This sample will choose the first interface IP. If you are using the Virtual Network and want to use an actual Network Interface Card for this sample, disable the Virtual NIC.

Rtssrun UDPServer.rtss

Rtssrun UDPClient.rtss <server IP Address>

Output

The output of UDPServer should look like this:

*** UDPServer: WinSock started ***
Bytes received from client: 13
Bytes sent: 13
end of program

The output of UDPClient should look like this:

*** UDPClient: WinSock started ***
Bytes Sent: 13
Bytes received: 13
end of program

APIs Referenced

RTAPI

Supported Windows API

Winsock BSD API

See Also