lib/libuv/ext/platform/unix.rb in libuv-0.10.3 vs lib/libuv/ext/platform/unix.rb in libuv-0.11.0
- old
+ new
@@ -11,8 +11,19 @@
:st_uid, :uid_t, :st_gid, :gid_t, :st_rdev, :dev_t, :st_size, :off_t,
:st_blksize, :blksize_t, :st_blocks, :blkcnt_t, :st_atime, :time_t,
:st_mtime, :time_t, :st_ctime, :time_t
end
+ class UvAddrinfo < FFI::Struct
+ layout :flags, :int,
+ :family, :int,
+ :socktype, :int,
+ :protocol, :int,
+ :addrlen, :socklen_t,
+ :addr, Sockaddr.by_ref,
+ :canonname, :string,
+ :next, UvAddrinfo.by_ref
+ end
+
attach_function :ntohs, [:ushort], :ushort, :blocking => true
end
-end
\ No newline at end of file
+end