From f04310d55941bf5e4db3a71a5d3eaca6a6f89616 Mon Sep 17 00:00:00 2001
From: patacongo
Date: Sat, 18 Feb 2012 18:13:30 +0000
Subject: Correct and error in recv() and recvfrom() return value
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4402 7fd9a85b-ad96-42d3-883c-3090e2eb8679
---
nuttx/Documentation/NuttxUserGuide.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'nuttx/Documentation')
diff --git a/nuttx/Documentation/NuttxUserGuide.html b/nuttx/Documentation/NuttxUserGuide.html
index 78f79b382..614570aa9 100644
--- a/nuttx/Documentation/NuttxUserGuide.html
+++ b/nuttx/Documentation/NuttxUserGuide.html
@@ -13,7 +13,7 @@
NuttX Operating SystemUser's Manual
by
Gregory Nutt
-
Last Updated: December 5, 2011
+ Last Updated: February 18, 2011
@@ -7391,8 +7391,7 @@ Those socket APIs are discussed in the following paragraphs.
Returned Values:
- see recvfrom()
.
- Zero on success.
+ See recvfrom()
.
@@ -7429,7 +7428,8 @@ Those socket APIs are discussed in the following paragraphs.
Returned Values:
On success, returns the number of characters sent.
- On error, -1 is returned, and errno
is set appropriately:
+ If no data is available to be received and the peer has performed an orderly shutdown, recv() will return 0.
+ Othwerwise, on errors, -1 is returned, and errno
is set appropriately: