34件ヒット
[1-34件を表示]
(0.019秒)
別のキーワード
種類
- 文書 (22)
- インスタンスメソッド (12)
ライブラリ
- socket (12)
クラス
- Socket (12)
キーワード
-
NEWS for Ruby 2
. 3 . 0 (10) -
ruby 1
. 8 . 5 feature (12)
検索結果
-
Socket
# connect _ nonblock(server _ sockaddr) -> 0 (18125.0) -
ソケットをノンブロッキングモードに設定した後、 connect(2) を呼び出します。
...PROGRESS エラーを報告した場合、その例外(Errno::EINPROGRESS)
には IO::WaitWritable が Object#extend されます。
これを connect_nonblock をリトライするために使うことができます。
# Pull down Google's web page
require 'socket'
include Socket::Constants......g connect
socket.connect_nonblock(sockaddr)
rescue IO::WaitWritable
IO.select(nil, [socket]) # wait 3-way handshake completion
begin
socket.connect_nonblock(sockaddr) # check connection failure
rescue Errno::EISCONN
end
end
socket.write("GET / HTTP/1.0\r\n\r\n")
res... -
NEWS for Ruby 2
. 3 . 0 (36.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...* ObjectSpace.#internal_super_of を追加。
* OpenSSL
* OpenSSL::SSL::SSLSocket#accept_nonblock と
OpenSSL::SSL::SSLSocket#connect_nonblock は `exception: false` オプションをサポートするようになりました。
10532
* Pathname
* Pathname#descend と P......ek_result を追加。カバレッジツールを停止することなくカバレッジに関する情報を取得することができます。
https://bugs.ruby-lang.org/issues/10816
* Fiddle
* Fiddle::Function#call は GVL を解放するようになりました。
11607
*......いない引数を削除しました。
https://github.com/ruby/ruby/pull/515
* matrix
* Vector#roundを追加。
https://github.com/ruby/ruby/pull/802
* webrick/utils
* 使用していない引数を削除しました。
https://github.com/ruby/ruby/pull/356
* Net... -
ruby 1
. 8 . 5 feature (12.0) -
ruby 1.8.5 feature ruby 1.8.4 から ruby 1.8.5 までの変更点です。
...[new]
: UNIXServer#accept_nonblock [new]
((<ruby-core:7925>))
=== 2006-05-22
: IO#read_nonblock [new]
: IO#write_nonblock [new]
: Socket#connect_nonblock [new]
: Socket#accept_nonblock [new]
: Socket#recvfrom_nonblock [new]
((<ruby-core:7917>))
=== 2006-02-21
: File#link [bug]
mswin32版......: Thread [compat]
他から操作されない限り動き出さないにもかかわらず他から参照されていない thread は abort されるようになりました
((<ruby-dev:28154>))
== 参考
* ((<Changes in Ruby 1.8.5|URL:http://eigenclass.org/hiki.rb?ruby+1.8.5+changelog>))...