Class: FFI::PCap::SockAddrFamily

Inherits:
Struct
  • Object
show all
Includes:
DRY::StructHelper
Defined in:
lib/ffi/pcap/bsd/sock_addr_family.rb

Overview

Common abstract superclass for all sockaddr struct classes

Direct Known Subclasses

SockAddr, SockAddrDl, SockAddrIn, SockAddrIn6

Instance Method Summary collapse

Instance Method Details

#lookup_familyObject

returns an address family name for the :family struct member value



13
14
15
# File 'lib/ffi/pcap/bsd/sock_addr_family.rb', line 13

def lookup_family
  AF[self[:family]]
end