class Ring::SQA::Poller
Constants
- MAX_READ
Public Instance Methods
address()
click to toggle source
# File lib/ring/sqa/poller.rb, line 7 def address CFG.afi == "ipv6" ? '::' : '0.0.0.0' # NAT 1:1 does not have expected address where we can bind end
port()
click to toggle source
# File lib/ring/sqa/poller.rb, line 11 def port CFG.port.to_i + ( CFG.afi == 'ipv6' ? 6 : 0 ) end
udp_socket()
click to toggle source
# File lib/ring/sqa/poller.rb, line 15 def udp_socket CFG.afi == "ipv6" ? UDPSocket.new(Socket::AF_INET6) : UDPSocket.new end