ruby-changes:11407
From: akr <ko1@a...>
Date: Sat, 21 Mar 2009 17:09:16 +0900 (JST)
Subject: [ruby-changes:11407] Ruby:r23030 (trunk): rdoc update.
akr 2009-03-21 17:08:52 +0900 (Sat, 21 Mar 2009) New Revision: 23030 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23030 Log: rdoc update. Modified files: trunk/ext/openssl/ossl_ssl.c Index: ext/openssl/ossl_ssl.c =================================================================== --- ext/openssl/ossl_ssl.c (revision 23029) +++ ext/openssl/ossl_ssl.c (revision 23030) @@ -1096,6 +1096,20 @@ /* * call-seq: * ssl.connect_nonblock => self + * + * initiate the TLS/SSL handshake as a client in non-blocking manner. + * + * # emulates blocking connect + * begin + * ssl.connect_nonblock + * rescue IO::WaitReadable + * IO.select([s2]) + * retry + * rescue IO::WaitWritable + * IO.select(nil, [s2]) + * retry + * end + * */ static VALUE ossl_ssl_connect_nonblock(VALUE self) @@ -1118,6 +1132,20 @@ /* * call-seq: * ssl.accept_nonblock => self + * + * initiate the TLS/SSL handshake as a server in non-blocking manner. + * + * # emulates blocking accept + * begin + * ssl.accept_nonblock + * rescue IO::WaitReadable + * IO.select([s2]) + * retry + * rescue IO::WaitWritable + * IO.select(nil, [s2]) + * retry + * end + * */ static VALUE ossl_ssl_accept_nonblock(VALUE self) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/