Sha256: 405fb1e52c3daea32da69cebff7c5b8e758868d3d35e3374c17580431428c4d5
Contents?: true
Size: 911 Bytes
Versions: 5
Compression:
Stored size: 911 Bytes
Contents
module Ethon module Curl # :nodoc: class MsgData < ::FFI::Union layout :whatever, :pointer, :code, :easy_code end # :nodoc: class Msg < ::FFI::Struct layout :code, :msg_code, :easy_handle, :pointer, :data, MsgData end # :nodoc: def Curl.windows? !(RbConfig::CONFIG['host_os'] !~ /mingw|mswin|bccwin/) end # :nodoc: class FDSet < ::FFI::Struct if Curl.windows? layout :fd_count, :u_int, :fd_array, [:u_int, 64] # 2048 FDs def clear; self[:fd_count] = 0; end else # FD Set size. FD_SETSIZE = ::Ethon::Libc.getdtablesize layout :fds_bits, [:long, FD_SETSIZE / ::FFI::Type::LONG.size] # :nodoc: def clear; super; end end end # :nodoc: class Timeval < ::FFI::Struct layout :sec, :time_t, :usec, :suseconds_t end end end
Version data entries
5 entries across 5 versions & 1 rubygems