diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-10 00:51:48 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-10 00:51:48 +0000 |
commit | 478234b44aea7800ebba14003c0ebc1817d65a58 (patch) | |
tree | 3efa3646790c2dbd74ba11393252bab292727484 /pod/perlfunc.pod | |
parent | a5222a85df7dfe8ad93b5297d6d78bde7237b334 (diff) | |
download | perl-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.pod | 13 |
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 |