lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] netconn_recv and client disconnect


From: markus . forrer
Subject: [lwip-users] netconn_recv and client disconnect
Date: Fri, 20 Sep 2013 08:31:02 +0200 (CEST)

I'm using lwip 1.4.1 in a RTOS environment (uc/OS-II) as the follow:
 
while ((error = netconn_recv(connection, &receiveBuffer)) == ERR_OK)
{
    // receiving data
}
// client has disconnected
 
Receiving data works fine. But if the connection will be closed by the remote client, netconn_recv returns ERR_OK anyway. I can't differ from 'receiving data' and 'client disconnect'.
 
Any hints?
 
Thanks a lot!
 
 

reply via email to

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