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