paulasmuth/fnordmetric — pull request #71 by rossta (2012-04-23 13:04:23+00:00)
Title: Optional UDP server

Provides a UDP inbound server with backwards compatibility to the TCP server.

To enable the UDP server:
```ruby
FnordMetric.server_configuration = {
:inbound_protocol => :udp,
:inbound_stream => ['0.0.0.0', '1339']
# other options omitted
}
```
Additional note: Since the UDP message boundaries are respected by the EventMachine datagram socket ([doc](http://eventmachine.rubyforge.org/EventMachine.html#M000480), FnordMetric::InboundDatagram#receive_data does not need to build a message buffer like FnordMetric::InboundStream.

Credit to [knewter](https://github.com/knewter) for his original UDP server [pull request](https://github.com/paulasmuth/fnordmetric/pull/59)