Sha256: 32200ad56168fdfa3b594d1570c5c589a3dcd2af65ed5db0bf7d4c4ae4ba71d2

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

module Ring
class SQA

  class Poller
    MAX_READ     = 500

    def address
      #CFG.ipv6? ? CFG.host.ipv6 : CFG.host.ipv4
      CFG.ipv6? ? '::' : '0.0.0.0' # NAT 1:1 does not have expected address where we can bind
    end

    def port
      CFG.port.to_i
    end

    def udp_socket
      CFG.ipv6? ? UDPSocket.new(Socket::AF_INET6) : UDPSocket.new
    end
  end


end
end

require_relative 'poller/sender'
require_relative 'poller/receiver'
require_relative 'poller/responder'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ring-sqa-0.0.20 lib/ring/sqa/poller.rb