Sha256: 747c375661ab2d2bdf99e311791cfc373fef1e667085344b36afe333ab79962b

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

require 'ffi/libc/types'
require 'ffi/libc/sockaddr_family'

module FFI
  module LibC
    #
    # sockaddr inet, always good to have around
    #
    class SockaddrIn < SockaddrFamily

      layout :len,      :uint8,
             :family,   :sa_family_t,
             :port,     :in_port_t,
             :addr,     :in_addr_t,
             :_sa_zero, [:uint8, 8]

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-libc-0.1.1 lib/ffi/libc/sockaddr_in.rb
ffi-libc-0.1.0 lib/ffi/libc/sockaddr_in.rb