Class: Caper::SockAddrFamily

Inherits:
FFI::Struct
  • Object
show all
Includes:
FFI::DRY::StructHelper
Defined in:
lib/caper/bsd.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



25
26
27
# File 'lib/caper/bsd.rb', line 25

def lookup_family
  AF[ self[:family] ]
end