End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Socket::AncillaryData#level
ancillarydata.level => integer
ext/socket/ancdata.c
View on GitHub ↗
static VALUE
ancillary_level_m(VALUE self)
{
return INT2NUM(ancillary_level(self));
}
returns the cmsg level as an integer.
Example
p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").level #=> 41
See also
#ipv6_pktinfo_ifindex
#timestamp
#ipv6_pktinfo_addr
#type
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0