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!
[Prev in Thread]
Current Thread
[Next in Thread]
[lwip-users] netconn_recv and client disconnect,
markus . forrer<=