class TCPSocket
- TCPSocket
- IPSocket
- Socket
- IO
- Reference
- Object
Overview
Override of the TCPSocket and HTTP::Client classes in order to allow an IP family to be selected for domains that resolve to both IPv4 and IPv6 addresses.
Defined in:
invidious/helpers/crystal_class_overrides.crConstructors
- .new(host : String, port, dns_timeout = nil, connect_timeout = nil, family = Socket::Family::UNSPEC)
Constructor Detail
def self.new(host : String, port, dns_timeout = nil, connect_timeout = nil, family = Socket::Family::UNSPEC)
#