Re: [lwip-users] Raw TCP API: question about tcp_close and accept callback in

2018-10-01 Thread Sergio R. Caprile
A TCP server might handle many incoming connection requests, each one of them will fire the accept callback. That callback is responsible for acquiring any memory that it would need for the application, and then will register callbacks for that instance of the application. There is one instance per

[lwip-users] Raw TCP API: question about tcp_close and accept callback in

2018-09-29 Thread Хазанский Роман
I'm looking at "TCP echo server example using raw API" and trying to  undrestand it. It creates a listening TCP connection, receives a  packet, sends it back and then closes the connection.  In the initialization function, accept callback is registered in lwip  like this:  void echo_init(void)  {