class AddressEndpoint
Definitions
def bind(wrapper = Wrapper.default, &block)
Bind a socket to the given address. If a block is given, the socket will be automatically closed when the block exits.
Signature
-
parameter
socket
Socket
The socket which has been bound.
Implementation
def bind(wrapper = Wrapper.default, &block)
[wrapper.bind(@address, **@options, &block)]
end
def connect(wrapper = Wrapper.default, &block)
Connects a socket to the given address. If a block is given, the socket will be automatically closed when the block exits.
Implementation
def connect(wrapper = Wrapper.default, &block)
wrapper.connect(@address, **@options, &block)
end