るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.133秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:u[x] > クエリ:open[x] > クラス:BasicSocket[x]

別のキーワード

  1. util u
  2. erb u
  3. matrix u
  4. _builtin koi8_u
  5. encoding koi8_u

ライブラリ

検索結果

BasicSocket#do_not_reverse_lookup -> bool (6114.0)

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

...
BasicSocket
.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=...