11件ヒット
[1-11件を表示]
(0.358秒)
クラス
- BasicSocket (11)
検索結果
-
BasicSocket
# do _ not _ reverse _ lookup -> bool (24400.0) -
ソケットごとのアドレスからホスト名への逆引きの設定を返します。
...asicSocket.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=...