Skip to content
instance method

Socket::AncillaryData#int

() -> ::Integer
ancillarydata.int => integer

Returns the data in ancillarydata as an int.

The size and endian is dependent on the host.

Example
ancdata = Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, STDERR.fileno)
p ancdata.int #=> 2
See also .int #inspect #ip_pktinfo #family also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0