UDP
Description
This sample contains two executables. The Server, when executed, will wait until it receives a set amount of bytes followed by a signal to shut down. The program will display the number of bytes sent and then end its process. The Client will send a set amount of bytes to an IP address and then end its process. This is all done in TCP protocol.
Source Files
Source\
UDPClient.c
UDPClientServer.h
UDPServer.c
VS2010\
UDP_VS2010.sln
UDPClient_VS2010.vcxproj
UDPServer_VS2010.vcxproj
VS2012\
UDP_VS2012.sln
UDPClient_VS2012.vcxproj
UDPServer_VS2012.vcxproj
ReadMe.txt
Running the Sample
NOTE: This sample will choose the first interface IP. If you are using the Virtual Network, and you want to use an actual Network Interface Card for this sample, disable the Virtual NIC.
Launch RtssRun and type the following:
Rtssrun UDPServer.rtss
Rtssrun UDPClient.rtss <server IP Address>
APIs Referenced
RTAPI |
Windows APIs |
Winsock BSD APIs |
See Also