Real time embedded FreeRTOS RSS feed 
Homepage FreeRTOS+ Products FreeRTOS Labs Support Forum Contact / Enquiries

A TCP Echo Server Example
FreeRTOS+TCP and FreeRTOS+FAT Examples

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.

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).

Using echotool to send echo requests to the FreeRTOS+TCP echo server
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


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ FreeRTOS Labs Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.