Class: ESM::Connection::ServerSocket

Inherits:
Socket
  • Object
show all
Defined in:
lib/esm/connection/server_socket.rb

Constant Summary

Constants inherited from Socket

ESM::Connection::Socket::IGNORED_IO_ERRORS

Instance Attribute Summary

Attributes inherited from Socket

#address

Instance Method Summary collapse

Methods inherited from Socket

#close, #initialize, #readable?, #shutdown, #writeable?

Constructor Details

This class inherits a constructor from ESM::Connection::Socket

Instance Method Details

#acceptObject



6
7
8
9
10
11
12
# File 'lib/esm/connection/server_socket.rb', line 6

def accept
  return unless readable?

  @socket.accept
rescue => e
  error!(error: e)
end