Sha256: 5bc020628eb7f62bfc3900fbd8b58725e10caea0252e4d2d8a51a6468da1fc80
Contents?: true
Size: 369 Bytes
Versions: 13
Compression:
Stored size: 369 Bytes
Contents
require 'socket' require 'syslog_protocol' require 'remote_syslog_sender/sender' module RemoteSyslogSender 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
13 entries across 13 versions & 5 rubygems