Implementation of the NetworkSocketAPI for LWIP
Dependencies: lwip-eth lwip-sys lwip
Dependents: HelloLWIPInterface HelloLWIPInterfaceNonBlocking LWIPInterfaceTests SimpleHTTPExample ... more
Diff: LWIPInterface.cpp
- Revision:
- 11:82796df87b0a
- Parent:
- 8:cef01e812975
- Child:
- 12:899403b675fe
--- a/LWIPInterface.cpp Thu Mar 31 11:55:52 2016 +0000 +++ b/LWIPInterface.cpp Fri Apr 01 17:18:39 2016 +0000 @@ -185,7 +185,7 @@ } } - return 0; + return writtenLen; } int32_t LWIPInterface::LWIPSocket::recv(void *data, uint32_t size) @@ -197,7 +197,7 @@ } else if (ret == 0) { return NS_ERROR_NO_CONNECTION; } else if (ret == -1) { - return 0; + return NS_ERROR_WOULD_BLOCK; } else { return NS_ERROR_DEVICE_ERROR; }