S04: TCP Echo Server (PLC / C++)

This sample describes a TCP server accepting an income connection.
Data sent to this server are simply returned as “echo”.

The same sample is available for C++ and PLC. By default, the server runs on port 11000.

Testing the sample

The sample can be tested via "telnet".

%>telnet 192.168.1.1 11000

If a character is sent via telnet, it is returned immediately. A picture similar to the following emerges:

S04: TCP Echo Server (PLC / C++) 1: