 
					
				
		
 danielchen
		
			danielchen
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I would suggest you start with the demo lwip_httpsrv. Then add your tcp echo client code.
Please refer to lwip_httpsrv_freertos.c
/*!
 * @brief The main function containing server thread.
 */
static void main_thread(void *arg)
{
    LWIP_UNUSED_ARG(arg);
    stack_init();
    http_server_socket_init();
    vTaskDelete(NULL);
}
stack_init initialized the lwip stack;
http_server_socket_init initialized the web server.
Then you can add your echo client function ( for example, tcpecho_client_init) from there.
Regards
Daniel
