From: M.J.T. Guy Date: Tue, 18 Mar 1997 20:50:16 +0000 (+0000) Subject: Fix typos in IO::Socket documentation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2085bf88a27913de51e04715bdb1274c404bd589;p=p5sagit%2Fp5-mst-13.2.git Fix typos in IO::Socket documentation At line 156, IO::Socket::configure reads croak "IO::Socket: Cannot configure socket in domain '$domain'" unless ref($fh) eq "IO::Socket"; Doesn't this mean that IO::Socket fails the 'empty subclass' test? Should the condition be replaced with 'isa' or something? And the following patch mends a few minor typos in the pod. p5p-msgid: E0w75po-0003yh-00@taurus.cus.cam.ac.uk --- diff --git a/ext/IO/lib/IO/Socket.pm b/ext/IO/lib/IO/Socket.pm index 264d1ac..9ef897b 100644 --- a/ext/IO/lib/IO/Socket.pm +++ b/ext/IO/lib/IO/Socket.pm @@ -32,11 +32,11 @@ C will export all functions (and constants) defined by L. =item new ( [ARGS] ) -Creates a C, which is a reference to a +Creates an C, which is a reference to a newly created symbol (see the C package). C optionally takes arguments, these arguments are in key-value pairs. C only looks for one key C which tells new which domain -the socket it will be. All other arguments will be passed to the +the socket will be in. All other arguments will be passed to the configuration method of the package for that domain, See below. =back @@ -44,7 +44,7 @@ configuration method of the package for that domain, See below. =head1 METHODS See L for complete descriptions of each of the following -supported C methods, which are just front ends for the +supported C methods, which are just front ends for the corresponding built-in functions: socket @@ -387,12 +387,12 @@ my %socket_type = ( tcp => SOCK_STREAM, C provides a constructor to create an AF_INET domain socket and some related methods. The constructor can take the following options - PeerAddr Remote host address [:] - PeerPort Remote port or service [()] | - LocalAddr Local host bind address hostname[:port] - LocalPort Local host bind port [()] | - Proto Protocol name "tcp" | "udp" | ... - Type Socket type SOCK_STREAM | SOCK_DGRAM | ... + PeerAddr Remote host address [:] + PeerPort Remote port or service [()] | + LocalAddr Local host bind address hostname[:port] + LocalPort Local host bind port [()] | + Proto Protocol name "tcp" | "udp" | ... + Type Socket type SOCK_STREAM | SOCK_DGRAM | ... Listen Queue size for listen Reuse Set SO_REUSEADDR before binding Timeout Timeout value for various operations