Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
BasicSocket.do_not_reverse_lookup=
BasicSocket.do_not_reverse_lookup = bool
ext/socket/basicsocket.c
View on GitHub ↗
static VALUE
bsock_do_not_rev_lookup_set(VALUE self, VALUE val)
{
rsock_do_not_reverse_lookup = RTEST(val);
return val;
}
Sets the global do_not_reverse_lookup flag.
The flag is used for initial value of do_not_reverse_lookup for each socket.
Example
s1 = TCPSocket.new("localhost", 80) p s1.do_not_reverse_lookup #=> true BasicSocket.do_not_reverse_lookup = false s2 = TCPSocket.new("localhost", 80) p s2.do_not_reverse_lookup #=> false p s1.do_not_reverse_lookup #=> true
See also
.do_not_reverse_lookup
#do_not_reverse_lookup
#do_not_reverse_lookup=
.for_fd
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0