Type:
Class

Socket::AncillaryData represents the ancillary data (control information) used by sendmsg and recvmsg system call. It contains socket family, control message (cmsg) level, cmsg type and cmsg data.

new
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

Socket::AncillaryData.new(family, cmsg_level, cmsg_type, cmsg_data) â ancillarydata Class Public methods

2025-01-10 15:47:30
family
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancillarydata.family => integer Instance Public methods returns the socket

2025-01-10 15:47:30
ipv6_pktinfo_ifindex
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancdata.ipv6_pktinfo_ifindex => addr Instance Public methods Extracts ifindex

2025-01-10 15:47:30
level
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancillarydata.level => integer Instance Public methods returns the cmsg

2025-01-10 15:47:30
timestamp
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancillarydata.timestamp => time Instance Public methods returns the timestamp

2025-01-10 15:47:30
unix_rights 2
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancillarydata.unix_rights => array-of-IOs or nil Instance Public methods returns

2025-01-10 15:47:30
int
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

Socket::AncillaryData.int(family, cmsg_level, cmsg_type, integer) => ancillarydata Class Public methods

2025-01-10 15:47:30
ip_pktinfo 2
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancdata.ip_pktinfo => [addr, ifindex, spec_dst] Instance Public methods Extracts

2025-01-10 15:47:30
type
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancillarydata.type => integer Instance Public methods returns the cmsg type

2025-01-10 15:47:30
ipv6_pktinfo 2
  • References/Ruby on Rails/Ruby/Classes/Socket/Socket::AncillaryData

ancdata.ipv6_pktinfo => [addr, ifindex] Instance Public methods Extracts

2025-01-10 15:47:30