Skip to content

Instantly share code, notes, and snippets.

@seki
Last active December 14, 2015 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seki/5133692 to your computer and use it in GitHub Desktop.
Save seki/5133692 to your computer and use it in GitHub Desktop.
def write_services
@sockets.map do |s|
Thread.new(s) do |socket|
loop do
msg = socket.recv(1024)
do_write(msg)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment