Method: Riemann::Client::UDP#initialize

Defined in:
lib/riemann/client/udp.rb

#initialize(opts = {}) ⇒ UDP

Returns a new instance of UDP.



8
9
10
11
12
13
# File 'lib/riemann/client/udp.rb', line 8

def initialize(opts = {})
  @host = opts[:host] || HOST
  @port = opts[:port] || PORT
  @max_size = opts[:max_size] || MAX_SIZE
  @locket = Mutex.new
end