summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-10 00:51:48 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-10 00:51:48 +0000
commit478234b44aea7800ebba14003c0ebc1817d65a58 (patch)
tree3efa3646790c2dbd74ba11393252bab292727484 /pod/perlfunc.pod
parenta5222a85df7dfe8ad93b5297d6d78bde7237b334 (diff)
downloadperl-478234b44aea7800ebba14003c0ebc1817d65a58.tar.gz
better documentation for recv() (from Anton Berezin
<tobez@plab.ku.dk>) p4raw-id: //depot/perl@4326
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod13
1 files changed, 7 insertions, 6 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index c69c1cbae3..450dd4b665 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -3257,12 +3257,13 @@ operator is discussed in more detail in L<perlop/"I/O Operators">.
=item recv SOCKET,SCALAR,LENGTH,FLAGS
Receives a message on a socket. Attempts to receive LENGTH bytes of
-data into variable SCALAR from the specified SOCKET filehandle.
-Actually does a C C<recvfrom>, so that it can return the address of the
-sender. Returns the undefined value if there's an error. SCALAR will
-be grown or shrunk to the length actually read. Takes the same flags
-as the system call of the same name.
-See L<perlipc/"UDP: Message Passing"> for examples.
+data into variable SCALAR from the specified SOCKET filehandle. SCALAR
+will be grown or shrunk to the length actually read. Takes the same
+flags as the system call of the same name. Returns the address of the
+sender if SOCKET's protocol supports this; returns an empty string
+otherwise. If there's an error, returns the undefined value. This call
+is actually implemented in terms of recvfrom(2) system call. See
+L<perlipc/"UDP: Message Passing"> for examples.
=item redo LABEL