module Fluent::Compat::SocketUtil
Private Class Methods
create_udp_socket(host)
click to toggle source
# File lib/fluent/compat/socket_util.rb, line 27 def create_udp_socket(host) if IPAddr.new(IPSocket.getaddress(host)).ipv4? UDPSocket.new else UDPSocket.new(Socket::AF_INET6) end end
Private Instance Methods
create_udp_socket(host)
click to toggle source
# File lib/fluent/compat/socket_util.rb, line 27 def create_udp_socket(host) if IPAddr.new(IPSocket.getaddress(host)).ipv4? UDPSocket.new else UDPSocket.new(Socket::AF_INET6) end end