class IO::Endpoint::Generic
def bind(wrapper = Wrapper.default, &block)
@parameter socket [Socket] The socket which has been bound.
@yields {|socket| ...} An optional block which will be passed the socket.
@parameter wrapper [Wrapper] The wrapper to use for binding.
Bind a socket to the given address. If a block is given, the socket will be automatically closed when the block exits.
def bind(wrapper = Wrapper.default, &block) raise NotImplementedError end