Issue #8042 has been updated by drbrain (Eric Hodel).


How about unbound_socket?

I would like to use a feature like this one in rinda/ring.rb for multicast support since options need to be set before connect/bind (see #8073)

Perhaps #connect_to or #bind could take a block that would yield the socket for setsockopt before bind/connect?
----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042#change-37481

Author: drbrain (Eric Hodel)
Status: Open
Priority: Normal
Assignee: 
Category: ext
Target version: current: 2.1.0


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/