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

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

From:
pugs-commits
Date:
March 30, 2009 22:07
Subject:
r26034 - docs/Perl6/Spec/S32-setting-library
Message ID:
20090331050702.29494.qmail@feather.perl6.nl
Author: wayland
Date: 2009-03-31 07:07:01 +0200 (Tue, 31 Mar 2009)
New Revision: 26034

Modified:
   docs/Perl6/Spec/S32-setting-library/IO.pod
Log:
S32/IO: Based on some suggestions of bacek++ and skids++, I refined the initialisation of 
the $.Listening attribute.  This may need more discussion though.  


Modified: docs/Perl6/Spec/S32-setting-library/IO.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/IO.pod	2009-03-31 04:29:09 UTC (rev 26033)
+++ docs/Perl6/Spec/S32-setting-library/IO.pod	2009-03-31 05:07:01 UTC (rev 26034)
@@ -464,7 +464,7 @@
         does IO::Streamable 
     {
         has %.options;
-        has Bool $.Listener = 0;
+        has Bool $.Listener;
         ...
     }
 
@@ -481,6 +481,15 @@
         :$Listener, # initialises $.Listener
     )
 
+The initial value of the $.Listener attribute is defined according to the following rules:
+
+ * If $Listener is passed to .new(), then that value is used
+ * If neither a local address nor a remote address are passed in, throw an exception
+ * If no remote address is passed, then $.Listener is set to SOMAXCONN
+ * If no local address is used, then $Listener is set to 0
+ * If both local and remote addresses are used, throw an exception that asks people to 
+   specify $Listener
+
 =item open
 
     method open()




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