aboutsummaryrefslogtreecommitdiff
path: root/nuttx/Documentation
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-18 18:13:30 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-18 18:13:30 +0000
commitf04310d55941bf5e4db3a71a5d3eaca6a6f89616 (patch)
treeca4c58d32d12949e8d08cb69a652b5e3f7fd0e58 /nuttx/Documentation
parentf60d578a461ee991f5eb42f9ae0dd2e7def75f75 (diff)
downloadpx4-firmware-f04310d55941bf5e4db3a71a5d3eaca6a6f89616.tar.gz
px4-firmware-f04310d55941bf5e4db3a71a5d3eaca6a6f89616.tar.bz2
px4-firmware-f04310d55941bf5e4db3a71a5d3eaca6a6f89616.zip
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
Diffstat (limited to 'nuttx/Documentation')
-rw-r--r--nuttx/Documentation/NuttxUserGuide.html8
1 files changed, 4 insertions, 4 deletions
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 @@
<h1><big><font color="#3c34ec"><i>NuttX Operating System<p>User's Manual</i></font></big></h1>
<p><small>by</small></p>
<p>Gregory Nutt<p>
- <p>Last Updated: December 5, 2011</p>
+ <p>Last Updated: February 18, 2011</p>
</td>
</tr>
</table>
@@ -7391,8 +7391,7 @@ Those socket APIs are discussed in the following paragraphs.</p>
</ul>
<p>
<b>Returned Values:</b>
- see <a href="#recvfrom"><code>recvfrom()</code></a>.
- Zero on success.
+ See <a href="#recvfrom"><code>recvfrom()</code></a>.
</p>
<h3><a name="recvfrom">2.12.9 <code>recvfrom</code></a></h3>
@@ -7429,7 +7428,8 @@ Those socket APIs are discussed in the following paragraphs.</p>
<p>
<b>Returned Values:</b>
On success, returns the number of characters sent.
- On error, -1 is returned, and <a href="#ErrnoAccess"><code>errno</code></a> 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 <a href="#ErrnoAccess"><code>errno</code></a> is set appropriately:
</p>
<ul>
<li><code>EAGAIN</code>.