Method: Argus::UdpSender#initialize
- Defined in:
- lib/argus/udp_sender.rb
#initialize(opts = {}) ⇒ UdpSender
Returns a new instance of UdpSender.
3 4 5 6 7 |
# File 'lib/argus/udp_sender.rb', line 3 def initialize(opts={}) @udp_socket = opts[:socket] || UDPSocket.new @host = opts.fetch(:remote_host) @port = opts.fetch(:port, 5556) end |