accept_loop

accept_loop(*sockets)
Class Public methods

yield socket and client address for each a connection accepted via given sockets.

The arguments are a list of sockets. The individual argument should be a socket or an array of sockets.

This method yields the block sequentially. It means that the next connection is not accepted until the block returns. So concurrent mechanism, thread for example, should be used to service multiple clients at a time.

doc_ruby_on_rails
2015-05-15 05:10:40
Comments
Leave a Comment

Please login to continue.