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