Blame SOURCES/perl-5.31.0-perl-133936-document-differences-between-IO-Socket-a.patch

7586d2
From 1d9630e7857d6fbae6fddd261fbb80c9c9a8cfd6 Mon Sep 17 00:00:00 2001
7586d2
From: Tony Cook <tony@develop-help.com>
7586d2
Date: Mon, 18 Mar 2019 16:02:33 +1100
7586d2
Subject: [PATCH] (perl #133936) document differences between IO::Socket::* and
7586d2
 builtin
7586d2
MIME-Version: 1.0
7586d2
Content-Type: text/plain; charset=UTF-8
7586d2
Content-Transfer-Encoding: 8bit
7586d2
7586d2
Signed-off-by: Petr Písař <ppisar@redhat.com>
7586d2
---
7586d2
 dist/IO/lib/IO/Socket.pm | 43 +++++++++++++++++++++++++++++++++++++---
7586d2
 1 file changed, 40 insertions(+), 3 deletions(-)
7586d2
7586d2
diff --git a/dist/IO/lib/IO/Socket.pm b/dist/IO/lib/IO/Socket.pm
7586d2
index da9e8c94d0..345ffd475d 100644
7586d2
--- a/dist/IO/lib/IO/Socket.pm
7586d2
+++ b/dist/IO/lib/IO/Socket.pm
7586d2
@@ -434,9 +434,6 @@ corresponding built-in functions:
7586d2
     bind
7586d2
     listen
7586d2
     accept
7586d2
-    send
7586d2
-    recv
7586d2
-    peername (getpeername)
7586d2
     sockname (getsockname)
7586d2
     shutdown
7586d2
 
7586d2
@@ -517,6 +514,46 @@ SO_LINGER enabled with a zero timeout, then the peer's close() will generate
7586d2
 a RST segment, upon receipt of which the local TCP transitions immediately to
7586d2
 B<CLOSED>, and in that state, connected() I<will> return undef.
7586d2
 
7586d2
+=item send(MSG, [, FLAGS [, TO ] ])
7586d2
+
7586d2
+Like the built-in L<send()|perlfunc/send>, except that:
7586d2
+
7586d2
+=over
7586d2
+
7586d2
+=item *
7586d2
+
7586d2
+C<FLAGS> is optional and defaults to C<0>, and
7586d2
+
7586d2
+=item *
7586d2
+
7586d2
+after a successful send with C<TO>, further calls to send() without
7586d2
+C<TO> will send to the same address, and C<TO> will be used as the
7586d2
+result of peername().
7586d2
+
7586d2
+=back
7586d2
+
7586d2
+=item recv(BUF, LEN, [,FLAGS])
7586d2
+
7586d2
+Like the built-in L<recv()|perlfunc/recv>, except that:
7586d2
+
7586d2
+=over
7586d2
+
7586d2
+=item *
7586d2
+
7586d2
+C<FLAGS> is optional and defaults to C<0>, and
7586d2
+
7586d2
+=item *
7586d2
+
7586d2
+the cached value returned by peername() is updated with the result of
7586d2
+recv().
7586d2
+
7586d2
+=back
7586d2
+
7586d2
+=item peername
7586d2
+
7586d2
+Returns the cached peername, possibly set by recv() or send() above.
7586d2
+If not otherwise set returns (and caches) the result of getpeername().
7586d2
+
7586d2
 =item protocol
7586d2
 
7586d2
 Returns the numerical number for the protocol being used on the socket, if
7586d2
-- 
7586d2
2.20.1
7586d2