Sha256: 897d28b61a1e108df64ed30f70d33ab01a0c43b131f0dada96519f625d98e2c0
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
require 'socket' require 'syslog_protocol' require 'remote_syslog_logger/sender' module RemoteSyslogLogger class UdpSender < Sender def initialize(remote_hostname, remote_port, options = {}) super @socket = UDPSocket.new end private def send_msg(payload) @socket.send(payload, 0, @remote_hostname, @remote_port) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remote_syslog_logger_tcp-1.0.3 | lib/remote_syslog_logger/udp_sender.rb |