Sha256: 062352e52fc8477fecc46bcd7d7823c171b16536bc9d928a23ab5c1181e15909

Contents?: true

Size: 742 Bytes

Versions: 24

Compression:

Stored size: 742 Bytes

Contents

# This file contains the structures required to configure libcouchbase to use
# windows IOCP for event IO

module Libcouchbase::Ext

    # ref: http://docs.couchbase.com/sdk-api/couchbase-c-client-2.6.2/group__lcb-io-plugin-api.html

    IOType = enum [
        :IO_libevent, 0x02,
        :IO_winsock, 0x03,
        :IO_libev, 0x04,
        :IO_select, 0x05,
        :IO_winIOCP, 0x06,
        :IO_libuv, 0x07
    ]

    class IOOptions < FFI::Struct
        layout :version, :int,      # Always 0
               :type,    IOType,    # Always IO_winIOCP
               :cookie,  :pointer
    end

    # pointer param returns IO opts structure
    attach_function :create_io_ops, :lcb_create_io_ops, [:pointer, IOOptions.by_ref], ErrorT
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
libcouchbase-1.2.3 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.2.2 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.2.1 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.2.0 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.1.1 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.1.0 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.0.4 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.0.3 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.0.2 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.0.1 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-1.0.0 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.3.3 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.3.1 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.2.0 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.1.0 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.0.9 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.0.8 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.0.7 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.0.6 lib/libcouchbase/ext/libcouchbase_iocp.rb
libcouchbase-0.0.5 lib/libcouchbase/ext/libcouchbase_iocp.rb