diff options
author | Ricardo Signes <rjbs@cpan.org> | 2013-07-06 15:26:01 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2013-07-06 15:34:04 -0400 |
commit | 1936be830727450ee56c82df7753dd0f00fa43e0 (patch) | |
tree | 2872443ae3571c4fee398533d324e583086066bc /dist/IO | |
parent | 3875f14c50983aa6286dd62505f3c5ac887b4fb7 (diff) | |
download | perl-1936be830727450ee56c82df7753dd0f00fa43e0.tar.gz |
small improvements to documentation of IO::Socket
IO::Socket::INET's documentation for its Listen parameter was
somewhat misleading, and the documentation for IO::Socket::Unix
even more so.
See [perl #118713]
Diffstat (limited to 'dist/IO')
-rw-r--r-- | dist/IO/lib/IO/Socket/INET.pm | 5 | ||||
-rw-r--r-- | dist/IO/lib/IO/Socket/UNIX.pm | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/dist/IO/lib/IO/Socket/INET.pm b/dist/IO/lib/IO/Socket/INET.pm index 5af70303d2..4fa6a2961d 100644 --- a/dist/IO/lib/IO/Socket/INET.pm +++ b/dist/IO/lib/IO/Socket/INET.pm @@ -15,7 +15,7 @@ use Exporter; use Errno; @ISA = qw(IO::Socket); -$VERSION = "1.33"; +$VERSION = "1.34"; my $EINVAL = exists(&Errno::EINVAL) ? Errno::EINVAL() : 1; @@ -358,7 +358,8 @@ C<IO::Socket::INET> provides. If C<Listen> is defined then a listen socket is created, else if the socket type, which is derived from the protocol, is SOCK_STREAM then -connect() is called. +connect() is called. If the C<Listen> argument is given, but false, +the queue size will be set to 5. Although it is not illegal, the use of C<MultiHomed> on a socket which is in non-blocking mode is of little use. This is because the diff --git a/dist/IO/lib/IO/Socket/UNIX.pm b/dist/IO/lib/IO/Socket/UNIX.pm index c6a10fea80..4f3f898e92 100644 --- a/dist/IO/lib/IO/Socket/UNIX.pm +++ b/dist/IO/lib/IO/Socket/UNIX.pm @@ -12,7 +12,7 @@ use IO::Socket; use Carp; @ISA = qw(IO::Socket); -$VERSION = "1.24"; +$VERSION = "1.25"; $VERSION = eval $VERSION; IO::Socket::UNIX->register_domain( AF_UNIX ); @@ -96,11 +96,12 @@ C<IO::Socket::UNIX> provides. Type Type of socket (eg SOCK_STREAM or SOCK_DGRAM) Local Path to local fifo Peer Path to peer fifo - Listen Create a listen socket + Listen Queue size for listen If the constructor is only passed a single argument, it is assumed to be a C<Peer> specification. +If the C<Listen> argument is given, but false, the queue size will be set to 5. NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE |