instance method
Socket::AncillaryData#family
() -> ::Integer
ancillarydata.family => integer
ext/socket/ancdata.c
View on GitHub ↗
static VALUE
ancillary_family_m(VALUE self)
{
return INT2NUM(ancillary_family(self));
}
returns the socket family as an integer.
Example
p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").family #=> 10