Home Contents | # TCP Server Example | TCP/IP | Application Notes

## ABSTRACT

An example that shows how to program a TCP server.

## USAGE

To test the example, you need to make a TCP connection to port 40404 of the controller board.

This can be done with the standard telnet program that is available on all major PC operating systems. (On Windows 7 you might need to enable it using the Control Panel). Additionally, Teratronik QCosCom, available in the downloads area, also supports TCP connections.

The example application will accept up to five simultaneous connections. Any received data is printed to an attached TFT display and also echoed back to the sender.

## SAMPLE PROJECT

There is a sample project that implements a simple TCP server which echoes back received data.

You can view the example main lua file, download example project TCPServer or browse the project contents online.