lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] tcp_accepted() and 1.4.1 -> 2.0.0


From: Sergio R. Caprile
Subject: [lwip-users] tcp_accepted() and 1.4.1 -> 2.0.0
Date: Mon, 8 Aug 2016 10:32:10 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]