From fdacfae6e4fc6737d32c12bbb3c4fe36cbce84c9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 18 Feb 2012 18:13:30 +0000 Subject: [PATCH] Correct and error in recv() and recvfrom() return value git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4402 42af7a65-404d-4744-a932-0658087f49c3 --- Documentation/NuttxUserGuide.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html index 78f79b3829..614570aa92 100644 --- a/Documentation/NuttxUserGuide.html +++ b/Documentation/NuttxUserGuide.html @@ -13,7 +13,7 @@

NuttX Operating System

User'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().

2.12.9 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: