Class: Async::IO::AddressEndpoint
- Defined in:
- lib/async/io/endpoint.rb
Overview
This class will open and close the socket automatically.
Instance Attribute Summary
Attributes inherited from Endpoint
Instance Method Summary collapse
Methods inherited from Endpoint
#accept, each, #initialize, parse, #socket_domain, #socket_protocol, #socket_type, ssl, tcp, #to_sockaddr, udp, unix
Constructor Details
This class inherits a constructor from Async::IO::Endpoint
Instance Method Details
#address ⇒ Object
117 118 119 |
# File 'lib/async/io/endpoint.rb', line 117 def address specification end |
#bind(&block) ⇒ Object
121 122 123 |
# File 'lib/async/io/endpoint.rb', line 121 def bind(&block) Socket.bind(address, **, &block) end |
#connect(&block) ⇒ Object
125 126 127 |
# File 'lib/async/io/endpoint.rb', line 125 def connect(&block) Socket.connect(address, &block) end |