Class: FFI::PCap::SockAddrFamily
- Inherits:
-
Struct
- Object
- Struct
- FFI::PCap::SockAddrFamily
- 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
Instance Method Summary collapse
-
#lookup_family ⇒ Object
returns an address family name for the :family struct member value.
Instance Method Details
#lookup_family ⇒ Object
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 |