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