lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] netconn TCP client connection closing and connecting.


From: Jan
Subject: Re: [lwip-users] netconn TCP client connection closing and connecting.
Date: Wed, 6 Apr 2016 14:03:36 -0700 (MST)

Hi Simon,

Thanks, that clears a lot!

So to resume, a netconn_close() should always be follows by a
netconn_delete(). A close without delete makes no sense at all?

Then this should work (theoretical)

    while (1)
    {
        conn = netconn_new_with_callback(NETCONN_TCP,
netconn_client_callback);
        err0 = netconn_bind(conn, NULL, 0);
        err1 = netconn_connect(conn, &remote_ip, 7);
        err2 = netconn_close(conn);
        netconn_delete(conn);
    }

And after the close and delete all buffers are freed and no pending TCP
packets are there to resend or ports locked? Returning from close (or
delete) means completely finished? Not needed to wait.






--
View this message in context: 
http://lwip.100.n7.nabble.com/netconn-TCP-client-connection-closing-and-connecting-tp26099p26128.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

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