summaryrefslogtreecommitdiff
path: root/ext/IO
diff options
context:
space:
mode:
authorian@dial.pipex.com <ian@dial.pipex.com>1999-06-25 11:39:42 +0100
committerGurusamy Sarathy <gsar@cpan.org>1999-07-07 07:50:51 +0000
commitc4be5b273ea01a42f8bea870c9703dc3eaa652b6 (patch)
tree7a21a82cbebc9fe138644e811c0876d74c402963 /ext/IO
parent38cd3e54b8fdf11a4a1d785caefd3862c91270f8 (diff)
downloadperl-c4be5b273ea01a42f8bea870c9703dc3eaa652b6.tar.gz
adapted suggested patch for IO-1.20x
Message-Id: <199906250939.KAA02152@homer.diplex.co.uk> Subject: [ID 19990625.001] Minor fixes for IO::Socket.pm p4raw-id: //depot/perl@3636
Diffstat (limited to 'ext/IO')
-rw-r--r--ext/IO/lib/IO/Socket.pm17
1 files changed, 13 insertions, 4 deletions
diff --git a/ext/IO/lib/IO/Socket.pm b/ext/IO/lib/IO/Socket.pm
index 0f46e8d65d..46205a6631 100644
--- a/ext/IO/lib/IO/Socket.pm
+++ b/ext/IO/lib/IO/Socket.pm
@@ -22,7 +22,7 @@ require IO::Socket::UNIX;
@ISA = qw(IO::Handle);
-$VERSION = "1.251";
+$VERSION = "1.252";
sub import {
my $pkg = shift;
@@ -81,7 +81,7 @@ sub socket {
}
sub socketpair {
- @_ == 4 || croak 'usage: IO::Socket->pair(DOMAIN, TYPE, PROTOCOL)';
+ @_ == 4 || croak 'usage: IO::Socket->socketpair(DOMAIN, TYPE, PROTOCOL)';
my($class,$domain,$type,$protocol) = @_;
my $sock1 = $class->new();
my $sock2 = $class->new();
@@ -357,10 +357,19 @@ new object will be created in the same class as the listen socket, unless
C<PKG> is specified. This object can be used to communicate with the client
that was trying to connect. In a scalar context the new socket is returned,
or undef upon failure. In an array context a two-element array is returned
-containing the new socket and the peer address, the list will
+containing the new socket and the peer address; the list will
be empty upon failure.
-Additional methods that are provided are
+=item socketpair(DOMAIN, TYPE, PROTOCOL)
+
+Call C<socketpair> and return a list of two sockets created, or an
+empty list on failure.
+
+=back
+
+Additional methods that are provided are:
+
+=over 4
=item timeout([VAL])