|Hint: Use the tree menu to navigate groups of related pages|
A TCP Echo Server Example
This example uses FreeRTOS+TCP to create an echo server that listens for
echo requests on the standard echo protocol
port number 7.
It may be necessary to set
mainCREATE_SIMPLE_TCP_ECHO_SERVER to 1 at the top of
the project’s main.c source file to include the example in the
build. The example is not included in all FreeRTOS+TCP demos.
FreeRTOS+TCP and FreeRTOS+FAT Examples
When the example is executed in the FreeRTOS+TCP and FreeRTOS+FAT Windows demo, then echo requests are sent to the echo server from Windows threads, and using the Windows TCP/IP stack – so no further actions are required.
When the example is executed using any FreeRTOS+TCP demo other than the Windows demo, then it is necessary to send echo requests to the server manually. The third party EchoTool utility can be used for this purpose (a pre-built executable is available on the link).
EchoTool using this batch file to repeatedly connect to,
send ten echo requests to, receive echo replies from, and then
disconnect from, an echo server implemented with FreeRTOS+TCP