Home |
Program UDPServer |
Program UDPServerDemo program UDPServer implements the framework for a simple UDP server. It receives data on a particular port, prints it on the screen, and sends it back to the client. The server consists of a single thread which can handle an unlimited number of clients. A sample client program to connect to this server is also included with this demo. It is the same program as for demo UDPClient, but built for Windows. When UDPServer is running on the target, you can start program UDPClient on the host with the target's IP address on the command line. UDPServer will display its IP address on the target's screen when it starts up. This demo can obtain its IP address from a DHCP server. If you have purchased the DHCP add-on for RTIP-32, you can define preprocessor symbol DHCP in the source code or on the compiler command line and add library Dhcpc.lib to enable this feature.
|