Sha256: c1ea3cbc77394990cfd440dbdcf49efe5131dbc1710559f874f1f9c8f75cac4e
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
module Libuv module Ext typedef :uint32_t, :in_addr_t typedef :uint16, :in_port_t typedef :int, :mode_t # http://stackoverflow.com/questions/1953639/is-it-safe-to-cast-socket-to-int-under-win64 typedef :int, :uv_os_sock_t module WS2 extend FFI::Library ffi_lib('Ws2_32.dll').first # this is for ntohs attach_function :ntohs, [:ushort], :ushort, :blocking => true end def_delegators :WS2, :ntohs module_function :ntohs # win32 has a different uv_buf_t layout to everything else. class UvBuf < FFI::Struct layout :len, :ulong, :base, :pointer end # win32 uses _stati64 class UvFSStat < FFI::Struct layout :st_gid, :gid_t, :st_atime, :time_t, :st_ctime, :time_t, :st_dev, :dev_t, :st_ino, :ino_t, :st_mode, :mode_t, :st_mtime, :time_t, :st_nlink, :nlink_t, :st_rdev, :dev_t, :st_size, :off_t, :st_uid, :uid_t end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libuv-0.10.3 | lib/libuv/ext/platform/windows.rb |