Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

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 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0