Sha256: a8f800a814c256c0de15b48ee37e499c79f6c22afb20f913974df07db6a9e16a

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

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

module FFI
  module LibC
    #
    # The generic `sockaddr` structure.
    #
    class Sockaddr < SockaddrFamily

      layout :family, :sa_family_t,
             :data,   [:char, 14]

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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