るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.370秒)
トップページ > クエリ:l[x] > クエリ:>[x] > クエリ:do_not_reverse_lookup[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

クラス

検索結果

BasicSocket#do_not_reverse_lookup -> bool (24337.0)

ソケットごとのアドレスからホスト名への逆引きの設定を返します。

...Socket.do_not_reverse_lookup の値になります。

require 'socket'

BasicSocket.do_not_reverse_lookup = false
TCPSocket.open("www.ruby-lang.org", 80) {|sock|
p sock.do_not_reverse_lookup # => false
}
BasicSocket.do_not_reverse_lookup = true
TCPSocket.open("www.ruby-lang.org...
...", 80) {|sock|
p sock.do_not_reverse_lookup # => true
}

@see BasicSocket#do_not_reverse_lookup=...

BasicSocket.do_not_reverse_lookup -> bool (24317.0)

Socket#do_not_reverse_lookup の Socket オブジェクト生成時の デフォルト値を返します。

...Socket#do_not_reverse_lookup の Socket オブジェクト生成時の
デフォルト値を返します。

この設定は大域的に作用します。

デフォルトは true です。...