ip_pktinfo

Socket::AncillaryData.ip_pktinfo(addr, ifindex) => ancdata
Socket::AncillaryData.ip_pktinfo(addr, ifindex, spec_dst) => ancdata
Class Public methods

Returns new ancillary data for IP_PKTINFO.

If spec_dst is not given, addr is used.

IP_PKTINFO is not standard.

Supported platform: GNU/Linux

addr = Addrinfo.ip("127.0.0.1")
ifindex = 0
spec_dst = Addrinfo.ip("127.0.0.1")
p Socket::AncillaryData.ip_pktinfo(addr, ifindex, spec_dst)
#=> #<Socket::AncillaryData: INET IP PKTINFO 127.0.0.1 ifindex:0 spec_dst:127.0.0.1>
doc_ruby_on_rails
2015-05-15 02:34:48
Comments
Leave a Comment

Please login to continue.