Sha256: 7ffba99af0f9f9e3888d4e1c8e05403d298382b7986cfd46ad08687604047623

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

require 'ffi/libc/types'
require 'ffi/libc/sock_addr_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

4 entries across 4 versions & 1 rubygems

Version Path
ffi-libc-0.0.5 lib/ffi/libc/sock_addr_in.rb
ffi-libc-0.0.4 lib/ffi/libc/sock_addr_in.rb
ffi-libc-0.0.3 lib/ffi/libc/sock_addr_in.rb
ffi-libc-0.0.2 lib/ffi/libc/sock_addr_in.rb