diff options
author | M.J.T. Guy <mjtg@cus.cam.ac.uk> | 1997-03-18 20:50:16 +0000 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-03-09 11:57:19 +1200 |
commit | 2085bf88a27913de51e04715bdb1274c404bd589 (patch) | |
tree | 14ade3ac9c71f9af21d2b4a606939f8b95341982 | |
parent | 1b33cabaaf2fbe2e84c6a13a9b0a7fce45959c4f (diff) | |
download | perl-2085bf88a27913de51e04715bdb1274c404bd589.tar.gz |
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
-rw-r--r-- | ext/IO/lib/IO/Socket.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/IO/lib/IO/Socket.pm b/ext/IO/lib/IO/Socket.pm index 264d1ac076..9ef897bdc7 100644 --- a/ext/IO/lib/IO/Socket.pm +++ b/ext/IO/lib/IO/Socket.pm @@ -32,11 +32,11 @@ C<IO::Socket> will export all functions (and constants) defined by L<Socket>. =item new ( [ARGS] ) -Creates a C<IO::Socket>, which is a reference to a +Creates an C<IO::Socket>, which is a reference to a newly created symbol (see the C<Symbol> package). C<new> optionally takes arguments, these arguments are in key-value pairs. C<new> only looks for one key C<Domain> 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<perlfunc> for complete descriptions of each of the following -supported C<IO::Seekable> methods, which are just front ends for the +supported C<IO::Socket> methods, which are just front ends for the corresponding built-in functions: socket @@ -387,12 +387,12 @@ my %socket_type = ( tcp => SOCK_STREAM, C<IO::Socket::INET> 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 <hostname>[:<port>] - PeerPort Remote port or service <service>[(<no>)] | <no> - LocalAddr Local host bind address hostname[:port] - LocalPort Local host bind port <service>[(<no>)] | <no> - Proto Protocol name "tcp" | "udp" | ... - Type Socket type SOCK_STREAM | SOCK_DGRAM | ... + PeerAddr Remote host address <hostname>[:<port>] + PeerPort Remote port or service <service>[(<no>)] | <no> + LocalAddr Local host bind address hostname[:port] + LocalPort Local host bind port <service>[(<no>)] | <no> + 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 |