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!
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
