diff options
Diffstat (limited to 'usr/src/man/man3xnet/recv.3xnet')
-rw-r--r-- | usr/src/man/man3xnet/recv.3xnet | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr/src/man/man3xnet/recv.3xnet b/usr/src/man/man3xnet/recv.3xnet index ed8488e9c8..8f9d010c01 100644 --- a/usr/src/man/man3xnet/recv.3xnet +++ b/usr/src/man/man3xnet/recv.3xnet @@ -7,7 +7,7 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH RECV 3XNET "Jun 10, 2002" +.TH RECV 3XNET "Dec 03, 2014" .SH NAME recv \- receive a message from a connected socket .SH SYNOPSIS @@ -20,7 +20,6 @@ recv \- receive a message from a connected socket .fi .SH DESCRIPTION -.sp .LP The \fBrecv()\fR function receives a message from a connection-mode or connectionless-mode socket. It is normally used with connected sockets because @@ -118,7 +117,6 @@ no messages are available at the socket and \fBO_NONBLOCK\fR is set on the socket's file descriptor, \fBrecv()\fR fails and sets \fBerrno\fR to \fBEAGAIN\fR or \fBEWOULDBLOCK\fR. .SH USAGE -.sp .LP The \fBrecv()\fR function is identical to \fBrecvfrom\fR(3XNET) with a zero \fIaddress_len\fR argument, and to \fBread()\fR if no flags are used. @@ -127,14 +125,12 @@ The \fBrecv()\fR function is identical to \fBrecvfrom\fR(3XNET) with a zero The \fBselect\fR(3C) and \fBpoll\fR(2) functions can be used to determine when data is available to be received. .SH RETURN VALUES -.sp .LP Upon successful completion, \fBrecv()\fR returns the length of the message in bytes. If no messages are available to be received and the peer has performed an orderly shutdown, \fBrecv()\fR returns 0. Otherwise, -1 is returned and \fBerrno\fR is set to indicate the error. .SH ERRORS -.sp .LP The \fBrecv()\fR function will fail if: .sp @@ -168,7 +164,9 @@ The \fIsocket\fR argument is not a valid file descriptor. \fB\fBECONNRESET\fR\fR .ad .RS 15n -A connection was forcibly closed by a peer. +The \fIsocket\fR argument refers to a connection oriented socket and the +connection was forcibly closed by the peer and is no longer valid. I/O can no +longer be performed to \fIfiledes\fR. .RE .sp @@ -277,7 +275,6 @@ complete. .RE .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -295,7 +292,6 @@ MT-Level MT-Safe .TE .SH SEE ALSO -.sp .LP \fBpoll\fR(2), \fBrecvmsg\fR(3XNET), \fBrecvfrom\fR(3XNET), \fBselect\fR(3C), \fBsend\fR(3XNET), \fBsendmsg\fR(3XNET), \fBsendto\fR(3XNET), |