I've just read the brand new shiny 2.0.0 docs, and tcp_accepted() has been put to sleep, six feet under, pushing up the daisies.

Mi example TCP server code does this:
static err_t myconnected(void *arg, struct tcp_pcb* pcb, err_t err)
{
        if(err == ERR_OK){
                tcp_accepted((struct tcp_pcb_listen *)arg);
                ...

Following the changes in httpd, I seem to understand that the correct way to upgrade my code to 2.0.0 is this one:

static err_t myconnected(void *arg, struct tcp_pcb* pcb, err_t err)
{
        if(err == ERR_OK){
                /* nothing here */
                ...

am I in the correct path ?
Thanks
Regards

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to