mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7fd155cf0f
commit
5bdeb55a02
1 changed files with 28 additions and 0 deletions
|
@ -1096,6 +1096,20 @@ ossl_ssl_connect(VALUE self)
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ssl.connect_nonblock => self
|
* 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
|
static VALUE
|
||||||
ossl_ssl_connect_nonblock(VALUE self)
|
ossl_ssl_connect_nonblock(VALUE self)
|
||||||
|
@ -1118,6 +1132,20 @@ ossl_ssl_accept(VALUE self)
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ssl.accept_nonblock => self
|
* 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
|
static VALUE
|
||||||
ossl_ssl_accept_nonblock(VALUE self)
|
ossl_ssl_accept_nonblock(VALUE self)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue