Class: RemoteSyslogSender::UdpSender

Inherits:
Sender
  • Object
show all
Defined in:
lib/remote_syslog_sender/udp_sender.rb

Instance Attribute Summary

Attributes inherited from Sender

#packet, #socket

Instance Method Summary collapse

Methods inherited from Sender

#close, #transmit

Constructor Details

#initialize(remote_hostname, remote_port, options = {}) ⇒ UdpSender

Returns a new instance of UdpSender.



7
8
9
10
# File 'lib/remote_syslog_sender/udp_sender.rb', line 7

def initialize(remote_hostname, remote_port, options = {})
  super
  @socket = UDPSocket.new
end