develooper Front page | perl.perl6.language | Postings from March 2009

r26025 - docs/Perl6/Spec/S32-setting-library

From:
pugs-commits
Date:
March 30, 2009 06:02
Subject:
r26025 - docs/Perl6/Spec/S32-setting-library
Message ID:
20090330130145.21815.qmail@feather.perl6.nl
Author: wayland
Date: 2009-03-30 15:01:45 +0200 (Mon, 30 Mar 2009)
New Revision: 26025

Modified:
   docs/Perl6/Spec/S32-setting-library/IO.pod
Log:
S32/IO.pod: Changed "TCP" to "INET"


Modified: docs/Perl6/Spec/S32-setting-library/IO.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/IO.pod	2009-03-30 10:40:00 UTC (rev 26024)
+++ docs/Perl6/Spec/S32-setting-library/IO.pod	2009-03-30 13:01:45 UTC (rev 26025)
@@ -98,8 +98,8 @@
     URI type IO type
     ======== =======
     file:    IO::File or IO::Directory
-    ftp:     IO::Socket::TCP (data channel)
-    http:    IO::Socket::TCP
+    ftp:     IO::Socket::INET (data channel)
+    http:    IO::Socket::INET
 
 These can naturally be overridden or added to by other modules.  
 
@@ -869,9 +869,9 @@
 
 Neither of these is "C<use portable>" compatible.  
 
-=head2 IO::Socket::TCP
+=head2 IO::Socket::INET
 
-    class IO::Socket::TCP does IO::Socket does IO::Streamable {
+    class IO::Socket::INET does IO::Socket does IO::Streamable {
         ...
     }
 
@@ -891,8 +891,9 @@
         Str :$RemoteHost, Str :$RemotePort, 
         Str :$LocalHost, Str :$LocalPort, 
         Bool :$Blocking, 
-        Bool :$NoOpen
-	--> IO::Socket::TCP
+        Bool :$NoOpen,
+        Str :$Protocol = 'TCP'
+	--> IO::Socket::INET
     ) {...}
 
 The C<NoOpen> option is passed to C<IO::Streamable.new()>.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About