class Async::IO::AddressEndpoint
This class will open and close the socket automatically.
def bind(&block)
-
(Socket)
- the bound socket
Other tags:
- Yield: - the bound socket
def bind(&block) Socket.bind(@address, **@options, &block) end
def connect(&block)
-
(Socket)
- the connected socket
def connect(&block) Socket.connect(@address, **@options, &block) end
def initialize(address, **options)
def initialize(address, **options) super(**options) @address = address @options = options end
def to_s
def to_s "\#<#{self.class} #{@address.inspect}>" end