Sha256: 22bce5a1d9c4fe7973e56a666bd5e821def17227f5df6d67c2aaf9fb5be6b6a1

Contents?: true

Size: 259 Bytes

Versions: 3

Compression:

Stored size: 259 Bytes

Contents

require "socket"

module Measures
  module Transports
    class UDP
      def initialize(host, port)
        @socket = UDPSocket.new
        @socket.connect(host, port)
      end

      def send(data)
        @socket.send(data, 0)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
measures-6.0.0 lib/measures/transports/udp.rb
measures-5.0.0 lib/measures/transports/udp.rb
measures-4.0.0 lib/measures/transports/udp.rb