Class: Net::Socket::TCP::Server
- Inherits:
-
TCPServer
- Object
- TCPServer
- Net::Socket::TCP::Server
- Defined in:
- lib/net/socket/tcp/server.rb
Instance Method Summary collapse
Instance Method Details
#each_request(async = false, &block) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/net/socket/tcp/server.rb', line 6 def each_request(async = false, &block) if async each_request_async(&block) else each_request_sync(&block) end end |
#wait ⇒ Object
14 15 16 17 18 19 |
# File 'lib/net/socket/tcp/server.rb', line 14 def wait IO.select([socket]) until socket.closed? rescue # We don't care about IO.select-related exceptions, # so we just ignore them and return. end |