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