Sha256: 78643700d6d599814448ca1202ecbcecf57151180097a46283439686b1915c51

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

module Ring
class SQA

  class Poller
    MAX_READ     = 500

    def address
      CFG.ipv6? ? CFG.bind.ipv6 : CFG.bind.ipv4
    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

4 entries across 4 versions & 1 rubygems

Version Path
ring-sqa-0.0.19 lib/ring/sqa/poller.rb
ring-sqa-0.0.18 lib/ring/sqa/poller.rb
ring-sqa-0.0.16 lib/ring/sqa/poller.rb
ring-sqa-0.0.15 lib/ring/sqa/poller.rb