Sha256: 718a8092f8dc0f0bc71c34123bd9de4aa0b8b644530cf8a36e4caf8f79cf7baa
Contents?: true
Size: 628 Bytes
Versions: 4
Compression:
Stored size: 628 Bytes
Contents
module GELF # Plain Ruby UDP sender. class RubyUdpSender def initialize(host, port) @host, @port = host, port @socket = UDPSocket.open end def send_datagrams(datagrams) datagrams.each do |datagram| @socket.send(datagram, 0, @host, @port) end end end # Plain Ruby TCP sender. # class RubyTcpSender # def initialize(host, port) # @host, @port = host, port # @socket = TCPSocket.open # end # # def send_datagrams(datagrams) # datagrams.each do |datagram| # @socket.send(datagram, 0, @host, @port) # end # end # end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gelf-1.1.3 | lib/gelf/ruby_sender.rb |
gelf-1.1.1 | lib/gelf/ruby_sender.rb |
gelf-1.1.0 | lib/gelf/ruby_sender.rb |
gelf-1.1.0.rc1 | lib/gelf/ruby_sender.rb |