Created
April 16, 2013 10:53
-
-
Save benlovell/5395042 to your computer and use it in GitHub Desktop.
Simple statsd fake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "socket" | |
sock = UDPSocket.new | |
sock.bind("127.0.0.1", 8125) | |
loop do | |
p sock.recvfrom(128)[0] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment