czmq-ffi-gen 0.13.0-x86-mingw32 → 0.14.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +13 -0
- data/lib/czmq-ffi-gen/czmq/ffi.rb +224 -698
- data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +40 -7
- data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +259 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +3 -3
- data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +15 -6
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +25 -11
- data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +18 -18
- data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +6 -6
- data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +27 -17
- data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +4 -4
- data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +36 -36
- data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +27 -19
- data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +22 -21
- data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +54 -54
- data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +82 -80
- data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +30 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +30 -30
- data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +44 -44
- data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +39 -39
- data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +46 -46
- data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +16 -16
- data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +237 -34
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +1201 -973
- data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +58 -19
- data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +836 -0
- data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +6 -6
- data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +10 -10
- data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +4 -4
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- data/lib/czmq-ffi-gen/vendor.rb +9 -1
- data/vendor/local/bin/inproc_lat.exe +0 -0
- data/vendor/local/bin/inproc_thr.exe +0 -0
- data/vendor/local/bin/libczmq.dll +0 -0
- data/vendor/local/bin/libzmq.dll +0 -0
- data/vendor/local/bin/local_lat.exe +0 -0
- data/vendor/local/bin/local_thr.exe +0 -0
- data/vendor/local/bin/remote_lat.exe +0 -0
- data/vendor/local/bin/remote_thr.exe +0 -0
- data/vendor/local/bin/zmakecert.exe +0 -0
- data/vendor/local/include/czmq_library.h +18 -9
- data/vendor/local/include/czmq_prelude.h +104 -16
- data/vendor/local/include/zactor.h +25 -7
- data/vendor/local/include/zarmour.h +3 -3
- data/vendor/local/include/zcert.h +11 -6
- data/vendor/local/include/zcertstore.h +18 -9
- data/vendor/local/include/zchunk.h +18 -18
- data/vendor/local/include/zclock.h +6 -6
- data/vendor/local/include/zconfig.h +25 -16
- data/vendor/local/include/zdigest.h +4 -4
- data/vendor/local/include/zdir.h +36 -36
- data/vendor/local/include/zdir_patch.h +1 -1
- data/vendor/local/include/zfile.h +27 -19
- data/vendor/local/include/zframe.h +22 -21
- data/vendor/local/include/zgossip.h +5 -5
- data/vendor/local/include/zgossip_engine.inc +103 -22
- data/vendor/local/include/zgossip_msg.h +28 -30
- data/vendor/local/include/zhash.h +53 -53
- data/vendor/local/include/zhashx.h +75 -73
- data/vendor/local/include/ziflist.h +22 -1
- data/vendor/local/include/zlist.h +28 -28
- data/vendor/local/include/zlistx.h +41 -41
- data/vendor/local/include/zloop.h +36 -36
- data/vendor/local/include/zmsg.h +46 -46
- data/vendor/local/include/zpoller.h +16 -16
- data/vendor/local/include/zsock.h +414 -364
- data/vendor/local/include/zsock_option.inc +234 -1062
- data/vendor/local/include/zstr.h +44 -19
- data/vendor/local/include/zsys.h +63 -19
- data/vendor/local/include/zuuid.h +4 -4
- data/vendor/local/lib/libczmq.dll.a +0 -0
- data/vendor/local/lib/liblibzmq.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/libczmq.pc +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 696c7775cd04230d25736fb7bd8de7e843cdadaa
|
4
|
+
data.tar.gz: 32768d703aeae39567f83db2c2b398922e26cd89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bf7093663f4d97f490b92f5db85a33fb34811f16726ab627e22866a2aee3ba9e9180b4f640d635a8b094baad8aa387141c854d641423ada160cd623fb7ce183
|
7
|
+
data.tar.gz: 5fcfdcf08e601dd3215edd0ddc48308e46f7da5deded13c69a614af1f03ea41c412911de0853c6a2722f30b2cbd721d248670812f83c7947fc3ea32f64e2eabb
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
0.14.1 (11/29/2017)
|
2
|
+
-----
|
3
|
+
* update CZMQ low-level binding to include fixes for zmonitor events
|
4
|
+
(zeromq/czmq#1806)
|
5
|
+
|
6
|
+
0.14.0 (11/27/2017)
|
7
|
+
-----
|
8
|
+
* on Windows with RubyInstaller2: fix loading libczmq
|
9
|
+
(thanks to Christian Boos)
|
10
|
+
* update CZMQ low-level binding to include the improvements on robustness
|
11
|
+
(zeromq/zproject#1010)
|
12
|
+
* CI: use recent rubies, but don't test MRI 2.1 anymore
|
13
|
+
|
1
14
|
0.13.0 (01/01/2017)
|
2
15
|
-----
|
3
16
|
* update CZMQ low-level binding to v4.0.2 to fix #7
|
@@ -35,6 +35,19 @@ module CZMQ
|
|
35
35
|
@available = false
|
36
36
|
end
|
37
37
|
|
38
|
+
|
39
|
+
def self.attach_function(name, *rest)
|
40
|
+
super
|
41
|
+
rescue ::FFI::NotFoundError
|
42
|
+
define_singleton_method name do |*|
|
43
|
+
raise NotImplementedError, "The function #{name}() is not provided by the CZMQ library installed. Upgrade the library or compile it with --enable-drafts."
|
44
|
+
end
|
45
|
+
|
46
|
+
return unless $VERBOSE || $DEBUG
|
47
|
+
|
48
|
+
warn "The function #{name}() is not provided by the installed CZMQ library."
|
49
|
+
end
|
50
|
+
|
38
51
|
if available?
|
39
52
|
opts = {
|
40
53
|
blocking: true # only necessary on MRI to deal with the GIL.
|
@@ -47,10 +60,29 @@ module CZMQ
|
|
47
60
|
attach_function :zactor_is, [:pointer], :bool, **opts
|
48
61
|
attach_function :zactor_resolve, [:pointer], :pointer, **opts
|
49
62
|
attach_function :zactor_sock, [:pointer], :pointer, **opts
|
63
|
+
attach_function :zactor_set_destructor, [:pointer, :pointer], :void, **opts
|
50
64
|
attach_function :zactor_test, [:bool], :void, **opts
|
51
65
|
|
52
66
|
require_relative 'ffi/zactor'
|
53
67
|
|
68
|
+
attach_function :zargs_new, [:int, :pointer], :pointer, **opts
|
69
|
+
attach_function :zargs_destroy, [:pointer], :void, **opts
|
70
|
+
attach_function :zargs_progname, [:pointer], :string, **opts
|
71
|
+
attach_function :zargs_arguments, [:pointer], :size_t, **opts
|
72
|
+
attach_function :zargs_first, [:pointer], :string, **opts
|
73
|
+
attach_function :zargs_next, [:pointer], :string, **opts
|
74
|
+
attach_function :zargs_param_first, [:pointer], :string, **opts
|
75
|
+
attach_function :zargs_param_next, [:pointer], :string, **opts
|
76
|
+
attach_function :zargs_param_name, [:pointer], :string, **opts
|
77
|
+
attach_function :zargs_param_lookup, [:pointer, :string], :string, **opts
|
78
|
+
attach_function :zargs_param_lookupx, [:pointer, :string, :varargs], :string, **opts
|
79
|
+
attach_function :zargs_has_help, [:pointer], :bool, **opts
|
80
|
+
attach_function :zargs_param_empty, [:string], :bool, **opts
|
81
|
+
attach_function :zargs_print, [:pointer], :void, **opts
|
82
|
+
attach_function :zargs_test, [:bool], :void, **opts
|
83
|
+
|
84
|
+
require_relative 'ffi/zargs'
|
85
|
+
|
54
86
|
attach_function :zarmour_new, [], :pointer, **opts
|
55
87
|
attach_function :zarmour_destroy, [:pointer], :void, **opts
|
56
88
|
attach_function :zarmour_encode, [:pointer, :pointer, :size_t], :pointer, **opts
|
@@ -73,6 +105,7 @@ module CZMQ
|
|
73
105
|
|
74
106
|
attach_function :zcert_new, [], :pointer, **opts
|
75
107
|
attach_function :zcert_new_from, [:pointer, :pointer], :pointer, **opts
|
108
|
+
attach_function :zcert_new_from_txt, [:string, :string], :pointer, **opts
|
76
109
|
attach_function :zcert_load, [:string], :pointer, **opts
|
77
110
|
attach_function :zcert_destroy, [:pointer], :void, **opts
|
78
111
|
attach_function :zcert_public_key, [:pointer], :pointer, **opts
|
@@ -80,17 +113,7 @@ module CZMQ
|
|
80
113
|
attach_function :zcert_public_txt, [:pointer], :string, **opts
|
81
114
|
attach_function :zcert_secret_txt, [:pointer], :string, **opts
|
82
115
|
attach_function :zcert_set_meta, [:pointer, :string, :string, :varargs], :void, **opts
|
83
|
-
|
84
|
-
attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
|
85
|
-
rescue ::FFI::NotFoundError
|
86
|
-
if $VERBOSE || $DEBUG
|
87
|
-
warn "The DRAFT function zcert_unset_meta()" +
|
88
|
-
" is not provided by the installed CZMQ library."
|
89
|
-
end
|
90
|
-
def self.zcert_unset_meta(*)
|
91
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
92
|
-
end
|
93
|
-
end
|
116
|
+
attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
|
94
117
|
attach_function :zcert_meta, [:pointer, :string], :string, **opts
|
95
118
|
attach_function :zcert_meta_keys, [:pointer], :pointer, **opts
|
96
119
|
attach_function :zcert_save, [:pointer, :string], :int, **opts
|
@@ -106,31 +129,12 @@ module CZMQ
|
|
106
129
|
|
107
130
|
attach_function :zcertstore_new, [:string], :pointer, **opts
|
108
131
|
attach_function :zcertstore_destroy, [:pointer], :void, **opts
|
109
|
-
|
110
|
-
attach_function :zcertstore_set_loader, [:pointer, :pointer, :pointer, :pointer], :void, **opts
|
111
|
-
rescue ::FFI::NotFoundError
|
112
|
-
if $VERBOSE || $DEBUG
|
113
|
-
warn "The DRAFT function zcertstore_set_loader()" +
|
114
|
-
" is not provided by the installed CZMQ library."
|
115
|
-
end
|
116
|
-
def self.zcertstore_set_loader(*)
|
117
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
118
|
-
end
|
119
|
-
end
|
132
|
+
attach_function :zcertstore_set_loader, [:pointer, :pointer, :pointer, :pointer], :void, **opts
|
120
133
|
attach_function :zcertstore_lookup, [:pointer, :string], :pointer, **opts
|
121
134
|
attach_function :zcertstore_insert, [:pointer, :pointer], :void, **opts
|
122
|
-
|
123
|
-
attach_function :zcertstore_empty, [:pointer], :void, **opts
|
124
|
-
rescue ::FFI::NotFoundError
|
125
|
-
if $VERBOSE || $DEBUG
|
126
|
-
warn "The DRAFT function zcertstore_empty()" +
|
127
|
-
" is not provided by the installed CZMQ library."
|
128
|
-
end
|
129
|
-
def self.zcertstore_empty(*)
|
130
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
131
|
-
end
|
132
|
-
end
|
135
|
+
attach_function :zcertstore_empty, [:pointer], :void, **opts
|
133
136
|
attach_function :zcertstore_print, [:pointer], :void, **opts
|
137
|
+
attach_function :zcertstore_certs, [:pointer], :pointer, **opts
|
134
138
|
attach_function :zcertstore_test, [:bool], :void, **opts
|
135
139
|
|
136
140
|
require_relative 'ffi/zcertstore'
|
@@ -200,6 +204,7 @@ module CZMQ
|
|
200
204
|
attach_function :zconfig_str_load, [:string], :pointer, **opts
|
201
205
|
attach_function :zconfig_str_save, [:pointer], :pointer, **opts
|
202
206
|
attach_function :zconfig_has_changed, [:pointer], :bool, **opts
|
207
|
+
attach_function :zconfig_remove, [:pointer], :void, **opts
|
203
208
|
attach_function :zconfig_fprint, [:pointer, :pointer], :void, **opts
|
204
209
|
attach_function :zconfig_print, [:pointer], :void, **opts
|
205
210
|
attach_function :zconfig_test, [:bool], :void, **opts
|
@@ -248,6 +253,7 @@ module CZMQ
|
|
248
253
|
require_relative 'ffi/zdir_patch'
|
249
254
|
|
250
255
|
attach_function :zfile_new, [:string, :string], :pointer, **opts
|
256
|
+
attach_function :zfile_tmp, [], :pointer, **opts
|
251
257
|
attach_function :zfile_destroy, [:pointer], :void, **opts
|
252
258
|
attach_function :zfile_dup, [:pointer], :pointer, **opts
|
253
259
|
attach_function :zfile_filename, [:pointer, :string], :string, **opts
|
@@ -289,50 +295,10 @@ module CZMQ
|
|
289
295
|
attach_function :zframe_streq, [:pointer, :string], :bool, **opts
|
290
296
|
attach_function :zframe_more, [:pointer], :int, **opts
|
291
297
|
attach_function :zframe_set_more, [:pointer, :int], :void, **opts
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
warn "The DRAFT function zframe_routing_id()" +
|
297
|
-
" is not provided by the installed CZMQ library."
|
298
|
-
end
|
299
|
-
def self.zframe_routing_id(*)
|
300
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
301
|
-
end
|
302
|
-
end
|
303
|
-
begin # DRAFT method
|
304
|
-
attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
|
305
|
-
rescue ::FFI::NotFoundError
|
306
|
-
if $VERBOSE || $DEBUG
|
307
|
-
warn "The DRAFT function zframe_set_routing_id()" +
|
308
|
-
" is not provided by the installed CZMQ library."
|
309
|
-
end
|
310
|
-
def self.zframe_set_routing_id(*)
|
311
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
312
|
-
end
|
313
|
-
end
|
314
|
-
begin # DRAFT method
|
315
|
-
attach_function :zframe_group, [:pointer], :string, **opts
|
316
|
-
rescue ::FFI::NotFoundError
|
317
|
-
if $VERBOSE || $DEBUG
|
318
|
-
warn "The DRAFT function zframe_group()" +
|
319
|
-
" is not provided by the installed CZMQ library."
|
320
|
-
end
|
321
|
-
def self.zframe_group(*)
|
322
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
323
|
-
end
|
324
|
-
end
|
325
|
-
begin # DRAFT method
|
326
|
-
attach_function :zframe_set_group, [:pointer, :string], :int, **opts
|
327
|
-
rescue ::FFI::NotFoundError
|
328
|
-
if $VERBOSE || $DEBUG
|
329
|
-
warn "The DRAFT function zframe_set_group()" +
|
330
|
-
" is not provided by the installed CZMQ library."
|
331
|
-
end
|
332
|
-
def self.zframe_set_group(*)
|
333
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
334
|
-
end
|
335
|
-
end
|
298
|
+
attach_function :zframe_routing_id, [:pointer], :uint32, **opts
|
299
|
+
attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
|
300
|
+
attach_function :zframe_group, [:pointer], :string, **opts
|
301
|
+
attach_function :zframe_set_group, [:pointer, :string], :int, **opts
|
336
302
|
attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
|
337
303
|
attach_function :zframe_reset, [:pointer, :pointer, :size_t], :void, **opts
|
338
304
|
attach_function :zframe_print, [:pointer, :string], :void, **opts
|
@@ -368,17 +334,7 @@ module CZMQ
|
|
368
334
|
|
369
335
|
attach_function :zhashx_new, [], :pointer, **opts
|
370
336
|
attach_function :zhashx_unpack, [:pointer], :pointer, **opts
|
371
|
-
|
372
|
-
attach_function :zhashx_unpack_own, [:pointer, :pointer], :pointer, **opts
|
373
|
-
rescue ::FFI::NotFoundError
|
374
|
-
if $VERBOSE || $DEBUG
|
375
|
-
warn "The DRAFT function zhashx_unpack_own()" +
|
376
|
-
" is not provided by the installed CZMQ library."
|
377
|
-
end
|
378
|
-
def self.zhashx_unpack_own(*)
|
379
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
380
|
-
end
|
381
|
-
end
|
337
|
+
attach_function :zhashx_unpack_own, [:pointer, :pointer], :pointer, **opts
|
382
338
|
attach_function :zhashx_destroy, [:pointer], :void, **opts
|
383
339
|
attach_function :zhashx_insert, [:pointer, :pointer, :pointer], :int, **opts
|
384
340
|
attach_function :zhashx_update, [:pointer, :pointer, :pointer], :void, **opts
|
@@ -398,17 +354,7 @@ module CZMQ
|
|
398
354
|
attach_function :zhashx_load, [:pointer, :string], :int, **opts
|
399
355
|
attach_function :zhashx_refresh, [:pointer], :int, **opts
|
400
356
|
attach_function :zhashx_pack, [:pointer], :pointer, **opts
|
401
|
-
|
402
|
-
attach_function :zhashx_pack_own, [:pointer, :pointer], :pointer, **opts
|
403
|
-
rescue ::FFI::NotFoundError
|
404
|
-
if $VERBOSE || $DEBUG
|
405
|
-
warn "The DRAFT function zhashx_pack_own()" +
|
406
|
-
" is not provided by the installed CZMQ library."
|
407
|
-
end
|
408
|
-
def self.zhashx_pack_own(*)
|
409
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
410
|
-
end
|
411
|
-
end
|
357
|
+
attach_function :zhashx_pack_own, [:pointer, :pointer], :pointer, **opts
|
412
358
|
attach_function :zhashx_dup, [:pointer], :pointer, **opts
|
413
359
|
attach_function :zhashx_set_destructor, [:pointer, :pointer], :void, **opts
|
414
360
|
attach_function :zhashx_set_duplicator, [:pointer, :pointer], :void, **opts
|
@@ -431,6 +377,9 @@ module CZMQ
|
|
431
377
|
attach_function :ziflist_broadcast, [:pointer], :string, **opts
|
432
378
|
attach_function :ziflist_netmask, [:pointer], :string, **opts
|
433
379
|
attach_function :ziflist_print, [:pointer], :void, **opts
|
380
|
+
attach_function :ziflist_new_ipv6, [], :pointer, **opts
|
381
|
+
attach_function :ziflist_reload_ipv6, [:pointer], :void, **opts
|
382
|
+
attach_function :ziflist_is_ipv6, [:pointer], :bool, **opts
|
434
383
|
attach_function :ziflist_test, [:bool], :void, **opts
|
435
384
|
|
436
385
|
require_relative 'ffi/ziflist'
|
@@ -523,28 +472,8 @@ module CZMQ
|
|
523
472
|
attach_function :zmsg_sendm, [:pointer, :pointer], :int, **opts
|
524
473
|
attach_function :zmsg_size, [:pointer], :size_t, **opts
|
525
474
|
attach_function :zmsg_content_size, [:pointer], :size_t, **opts
|
526
|
-
|
527
|
-
|
528
|
-
rescue ::FFI::NotFoundError
|
529
|
-
if $VERBOSE || $DEBUG
|
530
|
-
warn "The DRAFT function zmsg_routing_id()" +
|
531
|
-
" is not provided by the installed CZMQ library."
|
532
|
-
end
|
533
|
-
def self.zmsg_routing_id(*)
|
534
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
535
|
-
end
|
536
|
-
end
|
537
|
-
begin # DRAFT method
|
538
|
-
attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
|
539
|
-
rescue ::FFI::NotFoundError
|
540
|
-
if $VERBOSE || $DEBUG
|
541
|
-
warn "The DRAFT function zmsg_set_routing_id()" +
|
542
|
-
" is not provided by the installed CZMQ library."
|
543
|
-
end
|
544
|
-
def self.zmsg_set_routing_id(*)
|
545
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
546
|
-
end
|
547
|
-
end
|
475
|
+
attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
|
476
|
+
attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
|
548
477
|
attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts
|
549
478
|
attach_function :zmsg_append, [:pointer, :pointer], :int, **opts
|
550
479
|
attach_function :zmsg_pop, [:pointer], :pointer, **opts
|
@@ -584,215 +513,43 @@ module CZMQ
|
|
584
513
|
|
585
514
|
require_relative 'ffi/zpoller'
|
586
515
|
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
warn "The DRAFT function zproc_hostname()" +
|
625
|
-
" is not provided by the installed CZMQ library."
|
626
|
-
end
|
627
|
-
def self.zproc_hostname(*)
|
628
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
629
|
-
end
|
630
|
-
end
|
631
|
-
begin # DRAFT method
|
632
|
-
attach_function :zproc_daemonize, [:string], :void, **opts
|
633
|
-
rescue ::FFI::NotFoundError
|
634
|
-
if $VERBOSE || $DEBUG
|
635
|
-
warn "The DRAFT function zproc_daemonize()" +
|
636
|
-
" is not provided by the installed CZMQ library."
|
637
|
-
end
|
638
|
-
def self.zproc_daemonize(*)
|
639
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
640
|
-
end
|
641
|
-
end
|
642
|
-
begin # DRAFT method
|
643
|
-
attach_function :zproc_run_as, [:string, :string, :string], :void, **opts
|
644
|
-
rescue ::FFI::NotFoundError
|
645
|
-
if $VERBOSE || $DEBUG
|
646
|
-
warn "The DRAFT function zproc_run_as()" +
|
647
|
-
" is not provided by the installed CZMQ library."
|
648
|
-
end
|
649
|
-
def self.zproc_run_as(*)
|
650
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
651
|
-
end
|
652
|
-
end
|
653
|
-
begin # DRAFT method
|
654
|
-
attach_function :zproc_set_io_threads, [:size_t], :void, **opts
|
655
|
-
rescue ::FFI::NotFoundError
|
656
|
-
if $VERBOSE || $DEBUG
|
657
|
-
warn "The DRAFT function zproc_set_io_threads()" +
|
658
|
-
" is not provided by the installed CZMQ library."
|
659
|
-
end
|
660
|
-
def self.zproc_set_io_threads(*)
|
661
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
662
|
-
end
|
663
|
-
end
|
664
|
-
begin # DRAFT method
|
665
|
-
attach_function :zproc_set_max_sockets, [:size_t], :void, **opts
|
666
|
-
rescue ::FFI::NotFoundError
|
667
|
-
if $VERBOSE || $DEBUG
|
668
|
-
warn "The DRAFT function zproc_set_max_sockets()" +
|
669
|
-
" is not provided by the installed CZMQ library."
|
670
|
-
end
|
671
|
-
def self.zproc_set_max_sockets(*)
|
672
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
673
|
-
end
|
674
|
-
end
|
675
|
-
begin # DRAFT method
|
676
|
-
attach_function :zproc_set_biface, [:string], :void, **opts
|
677
|
-
rescue ::FFI::NotFoundError
|
678
|
-
if $VERBOSE || $DEBUG
|
679
|
-
warn "The DRAFT function zproc_set_biface()" +
|
680
|
-
" is not provided by the installed CZMQ library."
|
681
|
-
end
|
682
|
-
def self.zproc_set_biface(*)
|
683
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
684
|
-
end
|
685
|
-
end
|
686
|
-
begin # DRAFT method
|
687
|
-
attach_function :zproc_biface, [], :string, **opts
|
688
|
-
rescue ::FFI::NotFoundError
|
689
|
-
if $VERBOSE || $DEBUG
|
690
|
-
warn "The DRAFT function zproc_biface()" +
|
691
|
-
" is not provided by the installed CZMQ library."
|
692
|
-
end
|
693
|
-
def self.zproc_biface(*)
|
694
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
695
|
-
end
|
696
|
-
end
|
697
|
-
begin # DRAFT method
|
698
|
-
attach_function :zproc_set_log_ident, [:string], :void, **opts
|
699
|
-
rescue ::FFI::NotFoundError
|
700
|
-
if $VERBOSE || $DEBUG
|
701
|
-
warn "The DRAFT function zproc_set_log_ident()" +
|
702
|
-
" is not provided by the installed CZMQ library."
|
703
|
-
end
|
704
|
-
def self.zproc_set_log_ident(*)
|
705
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
706
|
-
end
|
707
|
-
end
|
708
|
-
begin # DRAFT method
|
709
|
-
attach_function :zproc_set_log_sender, [:string], :void, **opts
|
710
|
-
rescue ::FFI::NotFoundError
|
711
|
-
if $VERBOSE || $DEBUG
|
712
|
-
warn "The DRAFT function zproc_set_log_sender()" +
|
713
|
-
" is not provided by the installed CZMQ library."
|
714
|
-
end
|
715
|
-
def self.zproc_set_log_sender(*)
|
716
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
717
|
-
end
|
718
|
-
end
|
719
|
-
begin # DRAFT method
|
720
|
-
attach_function :zproc_set_log_system, [:bool], :void, **opts
|
721
|
-
rescue ::FFI::NotFoundError
|
722
|
-
if $VERBOSE || $DEBUG
|
723
|
-
warn "The DRAFT function zproc_set_log_system()" +
|
724
|
-
" is not provided by the installed CZMQ library."
|
725
|
-
end
|
726
|
-
def self.zproc_set_log_system(*)
|
727
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
728
|
-
end
|
729
|
-
end
|
730
|
-
begin # DRAFT method
|
731
|
-
attach_function :zproc_log_error, [:string, :varargs], :void, **opts
|
732
|
-
rescue ::FFI::NotFoundError
|
733
|
-
if $VERBOSE || $DEBUG
|
734
|
-
warn "The DRAFT function zproc_log_error()" +
|
735
|
-
" is not provided by the installed CZMQ library."
|
736
|
-
end
|
737
|
-
def self.zproc_log_error(*)
|
738
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
739
|
-
end
|
740
|
-
end
|
741
|
-
begin # DRAFT method
|
742
|
-
attach_function :zproc_log_warning, [:string, :varargs], :void, **opts
|
743
|
-
rescue ::FFI::NotFoundError
|
744
|
-
if $VERBOSE || $DEBUG
|
745
|
-
warn "The DRAFT function zproc_log_warning()" +
|
746
|
-
" is not provided by the installed CZMQ library."
|
747
|
-
end
|
748
|
-
def self.zproc_log_warning(*)
|
749
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
750
|
-
end
|
751
|
-
end
|
752
|
-
begin # DRAFT method
|
753
|
-
attach_function :zproc_log_notice, [:string, :varargs], :void, **opts
|
754
|
-
rescue ::FFI::NotFoundError
|
755
|
-
if $VERBOSE || $DEBUG
|
756
|
-
warn "The DRAFT function zproc_log_notice()" +
|
757
|
-
" is not provided by the installed CZMQ library."
|
758
|
-
end
|
759
|
-
def self.zproc_log_notice(*)
|
760
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
761
|
-
end
|
762
|
-
end
|
763
|
-
begin # DRAFT method
|
764
|
-
attach_function :zproc_log_info, [:string, :varargs], :void, **opts
|
765
|
-
rescue ::FFI::NotFoundError
|
766
|
-
if $VERBOSE || $DEBUG
|
767
|
-
warn "The DRAFT function zproc_log_info()" +
|
768
|
-
" is not provided by the installed CZMQ library."
|
769
|
-
end
|
770
|
-
def self.zproc_log_info(*)
|
771
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
772
|
-
end
|
773
|
-
end
|
774
|
-
begin # DRAFT method
|
775
|
-
attach_function :zproc_log_debug, [:string, :varargs], :void, **opts
|
776
|
-
rescue ::FFI::NotFoundError
|
777
|
-
if $VERBOSE || $DEBUG
|
778
|
-
warn "The DRAFT function zproc_log_debug()" +
|
779
|
-
" is not provided by the installed CZMQ library."
|
780
|
-
end
|
781
|
-
def self.zproc_log_debug(*)
|
782
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
783
|
-
end
|
784
|
-
end
|
785
|
-
begin # DRAFT method
|
786
|
-
attach_function :zproc_test, [:bool], :void, **opts
|
787
|
-
rescue ::FFI::NotFoundError
|
788
|
-
if $VERBOSE || $DEBUG
|
789
|
-
warn "The DRAFT function zproc_test()" +
|
790
|
-
" is not provided by the installed CZMQ library."
|
791
|
-
end
|
792
|
-
def self.zproc_test(*)
|
793
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
794
|
-
end
|
795
|
-
end
|
516
|
+
attach_function :zproc_new, [], :pointer, **opts
|
517
|
+
attach_function :zproc_destroy, [:pointer], :void, **opts
|
518
|
+
attach_function :zproc_set_args, [:pointer, :pointer], :void, **opts
|
519
|
+
attach_function :zproc_set_env, [:pointer, :pointer], :void, **opts
|
520
|
+
attach_function :zproc_set_stdin, [:pointer, :pointer], :void, **opts
|
521
|
+
attach_function :zproc_set_stdout, [:pointer, :pointer], :void, **opts
|
522
|
+
attach_function :zproc_set_stderr, [:pointer, :pointer], :void, **opts
|
523
|
+
attach_function :zproc_stdin, [:pointer], :pointer, **opts
|
524
|
+
attach_function :zproc_stdout, [:pointer], :pointer, **opts
|
525
|
+
attach_function :zproc_stderr, [:pointer], :pointer, **opts
|
526
|
+
attach_function :zproc_run, [:pointer], :int, **opts
|
527
|
+
attach_function :zproc_returncode, [:pointer], :int, **opts
|
528
|
+
attach_function :zproc_pid, [:pointer], :int, **opts
|
529
|
+
attach_function :zproc_running, [:pointer], :bool, **opts
|
530
|
+
attach_function :zproc_wait, [:pointer, :bool], :int, **opts
|
531
|
+
attach_function :zproc_actor, [:pointer], :pointer, **opts
|
532
|
+
attach_function :zproc_kill, [:pointer, :int], :void, **opts
|
533
|
+
attach_function :zproc_set_verbose, [:pointer, :bool], :void, **opts
|
534
|
+
attach_function :zproc_czmq_version, [], :int, **opts
|
535
|
+
attach_function :zproc_interrupted, [], :bool, **opts
|
536
|
+
attach_function :zproc_has_curve, [], :bool, **opts
|
537
|
+
attach_function :zproc_hostname, [], :pointer, **opts
|
538
|
+
attach_function :zproc_daemonize, [:string], :void, **opts
|
539
|
+
attach_function :zproc_run_as, [:string, :string, :string], :void, **opts
|
540
|
+
attach_function :zproc_set_io_threads, [:size_t], :void, **opts
|
541
|
+
attach_function :zproc_set_max_sockets, [:size_t], :void, **opts
|
542
|
+
attach_function :zproc_set_biface, [:string], :void, **opts
|
543
|
+
attach_function :zproc_biface, [], :string, **opts
|
544
|
+
attach_function :zproc_set_log_ident, [:string], :void, **opts
|
545
|
+
attach_function :zproc_set_log_sender, [:string], :void, **opts
|
546
|
+
attach_function :zproc_set_log_system, [:bool], :void, **opts
|
547
|
+
attach_function :zproc_log_error, [:string, :varargs], :void, **opts
|
548
|
+
attach_function :zproc_log_warning, [:string, :varargs], :void, **opts
|
549
|
+
attach_function :zproc_log_notice, [:string, :varargs], :void, **opts
|
550
|
+
attach_function :zproc_log_info, [:string, :varargs], :void, **opts
|
551
|
+
attach_function :zproc_log_debug, [:string, :varargs], :void, **opts
|
552
|
+
attach_function :zproc_test, [:bool], :void, **opts
|
796
553
|
|
797
554
|
require_relative 'ffi/zproc'
|
798
555
|
|
@@ -809,72 +566,12 @@ module CZMQ
|
|
809
566
|
attach_function :zsock_new_xsub, [:string], :pointer, **opts
|
810
567
|
attach_function :zsock_new_pair, [:string], :pointer, **opts
|
811
568
|
attach_function :zsock_new_stream, [:string], :pointer, **opts
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
end
|
819
|
-
def self.zsock_new_server(*)
|
820
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
821
|
-
end
|
822
|
-
end
|
823
|
-
begin # DRAFT method
|
824
|
-
attach_function :zsock_new_client, [:string], :pointer, **opts
|
825
|
-
rescue ::FFI::NotFoundError
|
826
|
-
if $VERBOSE || $DEBUG
|
827
|
-
warn "The DRAFT function zsock_new_client()" +
|
828
|
-
" is not provided by the installed CZMQ library."
|
829
|
-
end
|
830
|
-
def self.zsock_new_client(*)
|
831
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
832
|
-
end
|
833
|
-
end
|
834
|
-
begin # DRAFT method
|
835
|
-
attach_function :zsock_new_radio, [:string], :pointer, **opts
|
836
|
-
rescue ::FFI::NotFoundError
|
837
|
-
if $VERBOSE || $DEBUG
|
838
|
-
warn "The DRAFT function zsock_new_radio()" +
|
839
|
-
" is not provided by the installed CZMQ library."
|
840
|
-
end
|
841
|
-
def self.zsock_new_radio(*)
|
842
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
843
|
-
end
|
844
|
-
end
|
845
|
-
begin # DRAFT method
|
846
|
-
attach_function :zsock_new_dish, [:string], :pointer, **opts
|
847
|
-
rescue ::FFI::NotFoundError
|
848
|
-
if $VERBOSE || $DEBUG
|
849
|
-
warn "The DRAFT function zsock_new_dish()" +
|
850
|
-
" is not provided by the installed CZMQ library."
|
851
|
-
end
|
852
|
-
def self.zsock_new_dish(*)
|
853
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
854
|
-
end
|
855
|
-
end
|
856
|
-
begin # DRAFT method
|
857
|
-
attach_function :zsock_new_gather, [:string], :pointer, **opts
|
858
|
-
rescue ::FFI::NotFoundError
|
859
|
-
if $VERBOSE || $DEBUG
|
860
|
-
warn "The DRAFT function zsock_new_gather()" +
|
861
|
-
" is not provided by the installed CZMQ library."
|
862
|
-
end
|
863
|
-
def self.zsock_new_gather(*)
|
864
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
865
|
-
end
|
866
|
-
end
|
867
|
-
begin # DRAFT method
|
868
|
-
attach_function :zsock_new_scatter, [:string], :pointer, **opts
|
869
|
-
rescue ::FFI::NotFoundError
|
870
|
-
if $VERBOSE || $DEBUG
|
871
|
-
warn "The DRAFT function zsock_new_scatter()" +
|
872
|
-
" is not provided by the installed CZMQ library."
|
873
|
-
end
|
874
|
-
def self.zsock_new_scatter(*)
|
875
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
876
|
-
end
|
877
|
-
end
|
569
|
+
attach_function :zsock_new_server, [:string], :pointer, **opts
|
570
|
+
attach_function :zsock_new_client, [:string], :pointer, **opts
|
571
|
+
attach_function :zsock_new_radio, [:string], :pointer, **opts
|
572
|
+
attach_function :zsock_new_dish, [:string], :pointer, **opts
|
573
|
+
attach_function :zsock_new_gather, [:string], :pointer, **opts
|
574
|
+
attach_function :zsock_new_scatter, [:string], :pointer, **opts
|
878
575
|
attach_function :zsock_destroy, [:pointer], :void, **opts
|
879
576
|
attach_function :zsock_bind, [:pointer, :string, :varargs], :int, **opts
|
880
577
|
attach_function :zsock_endpoint, [:pointer], :string, **opts
|
@@ -889,54 +586,14 @@ module CZMQ
|
|
889
586
|
attach_function :zsock_vrecv, [:pointer, :string, :pointer], :int, **opts
|
890
587
|
attach_function :zsock_bsend, [:pointer, :string, :varargs], :int, **opts
|
891
588
|
attach_function :zsock_brecv, [:pointer, :string, :varargs], :int, **opts
|
892
|
-
|
893
|
-
|
894
|
-
rescue ::FFI::NotFoundError
|
895
|
-
if $VERBOSE || $DEBUG
|
896
|
-
warn "The DRAFT function zsock_routing_id()" +
|
897
|
-
" is not provided by the installed CZMQ library."
|
898
|
-
end
|
899
|
-
def self.zsock_routing_id(*)
|
900
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
901
|
-
end
|
902
|
-
end
|
903
|
-
begin # DRAFT method
|
904
|
-
attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
|
905
|
-
rescue ::FFI::NotFoundError
|
906
|
-
if $VERBOSE || $DEBUG
|
907
|
-
warn "The DRAFT function zsock_set_routing_id()" +
|
908
|
-
" is not provided by the installed CZMQ library."
|
909
|
-
end
|
910
|
-
def self.zsock_set_routing_id(*)
|
911
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
912
|
-
end
|
913
|
-
end
|
589
|
+
attach_function :zsock_routing_id, [:pointer], :uint32, **opts
|
590
|
+
attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
|
914
591
|
attach_function :zsock_set_unbounded, [:pointer], :void, **opts
|
915
592
|
attach_function :zsock_signal, [:pointer, :char], :int, **opts
|
916
593
|
attach_function :zsock_wait, [:pointer], :int, **opts
|
917
594
|
attach_function :zsock_flush, [:pointer], :void, **opts
|
918
|
-
|
919
|
-
|
920
|
-
rescue ::FFI::NotFoundError
|
921
|
-
if $VERBOSE || $DEBUG
|
922
|
-
warn "The DRAFT function zsock_join()" +
|
923
|
-
" is not provided by the installed CZMQ library."
|
924
|
-
end
|
925
|
-
def self.zsock_join(*)
|
926
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
927
|
-
end
|
928
|
-
end
|
929
|
-
begin # DRAFT method
|
930
|
-
attach_function :zsock_leave, [:pointer, :string], :int, **opts
|
931
|
-
rescue ::FFI::NotFoundError
|
932
|
-
if $VERBOSE || $DEBUG
|
933
|
-
warn "The DRAFT function zsock_leave()" +
|
934
|
-
" is not provided by the installed CZMQ library."
|
935
|
-
end
|
936
|
-
def self.zsock_leave(*)
|
937
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
938
|
-
end
|
939
|
-
end
|
595
|
+
attach_function :zsock_join, [:pointer, :string], :int, **opts
|
596
|
+
attach_function :zsock_leave, [:pointer, :string], :int, **opts
|
940
597
|
attach_function :zsock_is, [:pointer], :bool, **opts
|
941
598
|
attach_function :zsock_resolve, [:pointer], :pointer, **opts
|
942
599
|
attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
|
@@ -1015,21 +672,50 @@ module CZMQ
|
|
1015
672
|
attach_function :zsock_set_ipv6, [:pointer, :int], :void, **opts
|
1016
673
|
attach_function :zsock_immediate, [:pointer], :int, **opts
|
1017
674
|
attach_function :zsock_set_immediate, [:pointer, :int], :void, **opts
|
1018
|
-
attach_function :zsock_type, [:pointer], :int, **opts
|
1019
675
|
attach_function :zsock_sndhwm, [:pointer], :int, **opts
|
1020
676
|
attach_function :zsock_set_sndhwm, [:pointer, :int], :void, **opts
|
1021
677
|
attach_function :zsock_rcvhwm, [:pointer], :int, **opts
|
1022
678
|
attach_function :zsock_set_rcvhwm, [:pointer, :int], :void, **opts
|
679
|
+
attach_function :zsock_maxmsgsize, [:pointer], :int, **opts
|
680
|
+
attach_function :zsock_set_maxmsgsize, [:pointer, :int], :void, **opts
|
681
|
+
attach_function :zsock_multicast_hops, [:pointer], :int, **opts
|
682
|
+
attach_function :zsock_set_multicast_hops, [:pointer, :int], :void, **opts
|
683
|
+
attach_function :zsock_set_xpub_verbose, [:pointer, :int], :void, **opts
|
684
|
+
attach_function :zsock_tcp_keepalive, [:pointer], :int, **opts
|
685
|
+
attach_function :zsock_set_tcp_keepalive, [:pointer, :int], :void, **opts
|
686
|
+
attach_function :zsock_tcp_keepalive_idle, [:pointer], :int, **opts
|
687
|
+
attach_function :zsock_set_tcp_keepalive_idle, [:pointer, :int], :void, **opts
|
688
|
+
attach_function :zsock_tcp_keepalive_cnt, [:pointer], :int, **opts
|
689
|
+
attach_function :zsock_set_tcp_keepalive_cnt, [:pointer, :int], :void, **opts
|
690
|
+
attach_function :zsock_tcp_keepalive_intvl, [:pointer], :int, **opts
|
691
|
+
attach_function :zsock_set_tcp_keepalive_intvl, [:pointer, :int], :void, **opts
|
692
|
+
attach_function :zsock_tcp_accept_filter, [:pointer], :pointer, **opts
|
693
|
+
attach_function :zsock_set_tcp_accept_filter, [:pointer, :string], :void, **opts
|
694
|
+
attach_function :zsock_last_endpoint, [:pointer], :pointer, **opts
|
695
|
+
attach_function :zsock_set_router_raw, [:pointer, :int], :void, **opts
|
696
|
+
attach_function :zsock_ipv4only, [:pointer], :int, **opts
|
697
|
+
attach_function :zsock_set_ipv4only, [:pointer, :int], :void, **opts
|
698
|
+
attach_function :zsock_set_delay_attach_on_connect, [:pointer, :int], :void, **opts
|
699
|
+
attach_function :zsock_hwm, [:pointer], :int, **opts
|
700
|
+
attach_function :zsock_set_hwm, [:pointer, :int], :void, **opts
|
701
|
+
attach_function :zsock_swap, [:pointer], :int, **opts
|
702
|
+
attach_function :zsock_set_swap, [:pointer, :int], :void, **opts
|
1023
703
|
attach_function :zsock_affinity, [:pointer], :int, **opts
|
1024
704
|
attach_function :zsock_set_affinity, [:pointer, :int], :void, **opts
|
1025
|
-
attach_function :zsock_set_subscribe, [:pointer, :string], :void, **opts
|
1026
|
-
attach_function :zsock_set_unsubscribe, [:pointer, :string], :void, **opts
|
1027
705
|
attach_function :zsock_identity, [:pointer], :pointer, **opts
|
1028
706
|
attach_function :zsock_set_identity, [:pointer, :string], :void, **opts
|
1029
707
|
attach_function :zsock_rate, [:pointer], :int, **opts
|
1030
708
|
attach_function :zsock_set_rate, [:pointer, :int], :void, **opts
|
1031
709
|
attach_function :zsock_recovery_ivl, [:pointer], :int, **opts
|
1032
710
|
attach_function :zsock_set_recovery_ivl, [:pointer, :int], :void, **opts
|
711
|
+
attach_function :zsock_recovery_ivl_msec, [:pointer], :int, **opts
|
712
|
+
attach_function :zsock_set_recovery_ivl_msec, [:pointer, :int], :void, **opts
|
713
|
+
attach_function :zsock_mcast_loop, [:pointer], :int, **opts
|
714
|
+
attach_function :zsock_set_mcast_loop, [:pointer, :int], :void, **opts
|
715
|
+
attach_function :zsock_rcvtimeo, [:pointer], :int, **opts
|
716
|
+
attach_function :zsock_set_rcvtimeo, [:pointer, :int], :void, **opts
|
717
|
+
attach_function :zsock_sndtimeo, [:pointer], :int, **opts
|
718
|
+
attach_function :zsock_set_sndtimeo, [:pointer, :int], :void, **opts
|
1033
719
|
attach_function :zsock_sndbuf, [:pointer], :int, **opts
|
1034
720
|
attach_function :zsock_set_sndbuf, [:pointer, :int], :void, **opts
|
1035
721
|
attach_function :zsock_rcvbuf, [:pointer], :int, **opts
|
@@ -1042,283 +728,123 @@ module CZMQ
|
|
1042
728
|
attach_function :zsock_set_reconnect_ivl_max, [:pointer, :int], :void, **opts
|
1043
729
|
attach_function :zsock_backlog, [:pointer], :int, **opts
|
1044
730
|
attach_function :zsock_set_backlog, [:pointer, :int], :void, **opts
|
1045
|
-
attach_function :
|
1046
|
-
attach_function :
|
1047
|
-
attach_function :
|
1048
|
-
attach_function :zsock_set_multicast_hops, [:pointer, :int], :void, **opts
|
1049
|
-
attach_function :zsock_rcvtimeo, [:pointer], :int, **opts
|
1050
|
-
attach_function :zsock_set_rcvtimeo, [:pointer, :int], :void, **opts
|
1051
|
-
attach_function :zsock_sndtimeo, [:pointer], :int, **opts
|
1052
|
-
attach_function :zsock_set_sndtimeo, [:pointer, :int], :void, **opts
|
1053
|
-
attach_function :zsock_set_xpub_verbose, [:pointer, :int], :void, **opts
|
1054
|
-
attach_function :zsock_tcp_keepalive, [:pointer], :int, **opts
|
1055
|
-
attach_function :zsock_set_tcp_keepalive, [:pointer, :int], :void, **opts
|
1056
|
-
attach_function :zsock_tcp_keepalive_idle, [:pointer], :int, **opts
|
1057
|
-
attach_function :zsock_set_tcp_keepalive_idle, [:pointer, :int], :void, **opts
|
1058
|
-
attach_function :zsock_tcp_keepalive_cnt, [:pointer], :int, **opts
|
1059
|
-
attach_function :zsock_set_tcp_keepalive_cnt, [:pointer, :int], :void, **opts
|
1060
|
-
attach_function :zsock_tcp_keepalive_intvl, [:pointer], :int, **opts
|
1061
|
-
attach_function :zsock_set_tcp_keepalive_intvl, [:pointer, :int], :void, **opts
|
1062
|
-
attach_function :zsock_tcp_accept_filter, [:pointer], :pointer, **opts
|
1063
|
-
attach_function :zsock_set_tcp_accept_filter, [:pointer, :string], :void, **opts
|
731
|
+
attach_function :zsock_set_subscribe, [:pointer, :string], :void, **opts
|
732
|
+
attach_function :zsock_set_unsubscribe, [:pointer, :string], :void, **opts
|
733
|
+
attach_function :zsock_type, [:pointer], :int, **opts
|
1064
734
|
attach_function :zsock_rcvmore, [:pointer], :int, **opts
|
1065
735
|
attach_function :zsock_fd, [:pointer], (::FFI::Platform.unix? ? :int : :uint64), **opts
|
1066
736
|
attach_function :zsock_events, [:pointer], :int, **opts
|
1067
|
-
attach_function :zsock_last_endpoint, [:pointer], :pointer, **opts
|
1068
|
-
attach_function :zsock_set_router_raw, [:pointer, :int], :void, **opts
|
1069
|
-
attach_function :zsock_ipv4only, [:pointer], :int, **opts
|
1070
|
-
attach_function :zsock_set_ipv4only, [:pointer, :int], :void, **opts
|
1071
|
-
attach_function :zsock_set_delay_attach_on_connect, [:pointer, :int], :void, **opts
|
1072
737
|
attach_function :zsock_test, [:bool], :void, **opts
|
1073
738
|
|
1074
739
|
require_relative 'ffi/zsock'
|
1075
740
|
|
1076
741
|
attach_function :zstr_recv, [:pointer], :pointer, **opts
|
1077
742
|
attach_function :zstr_recvx, [:pointer, :pointer, :varargs], :int, **opts
|
743
|
+
attach_function :zstr_recv_compress, [:pointer], :pointer, **opts
|
1078
744
|
attach_function :zstr_send, [:pointer, :string], :int, **opts
|
1079
745
|
attach_function :zstr_sendm, [:pointer, :string], :int, **opts
|
1080
746
|
attach_function :zstr_sendf, [:pointer, :string, :varargs], :int, **opts
|
1081
747
|
attach_function :zstr_sendfm, [:pointer, :string, :varargs], :int, **opts
|
1082
748
|
attach_function :zstr_sendx, [:pointer, :string, :varargs], :int, **opts
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
if $VERBOSE || $DEBUG
|
1087
|
-
warn "The DRAFT function zstr_str()" +
|
1088
|
-
" is not provided by the installed CZMQ library."
|
1089
|
-
end
|
1090
|
-
def self.zstr_str(*)
|
1091
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1092
|
-
end
|
1093
|
-
end
|
749
|
+
attach_function :zstr_send_compress, [:pointer, :string], :int, **opts
|
750
|
+
attach_function :zstr_sendm_compress, [:pointer, :string], :int, **opts
|
751
|
+
attach_function :zstr_str, [:pointer], :pointer, **opts
|
1094
752
|
attach_function :zstr_free, [:pointer], :void, **opts
|
1095
753
|
attach_function :zstr_test, [:bool], :void, **opts
|
1096
754
|
|
1097
755
|
require_relative 'ffi/zstr'
|
1098
756
|
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
begin # DRAFT method
|
1177
|
-
attach_function :ztimerset_execute, [:pointer], :int, **opts
|
1178
|
-
rescue ::FFI::NotFoundError
|
1179
|
-
if $VERBOSE || $DEBUG
|
1180
|
-
warn "The DRAFT function ztimerset_execute()" +
|
1181
|
-
" is not provided by the installed CZMQ library."
|
1182
|
-
end
|
1183
|
-
def self.ztimerset_execute(*)
|
1184
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1185
|
-
end
|
1186
|
-
end
|
1187
|
-
begin # DRAFT method
|
1188
|
-
attach_function :ztimerset_test, [:bool], :void, **opts
|
1189
|
-
rescue ::FFI::NotFoundError
|
1190
|
-
if $VERBOSE || $DEBUG
|
1191
|
-
warn "The DRAFT function ztimerset_test()" +
|
1192
|
-
" is not provided by the installed CZMQ library."
|
1193
|
-
end
|
1194
|
-
def self.ztimerset_test(*)
|
1195
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1196
|
-
end
|
1197
|
-
end
|
757
|
+
attach_function :zsys_init, [], :pointer, **opts
|
758
|
+
attach_function :zsys_shutdown, [], :void, **opts
|
759
|
+
attach_function :zsys_socket, [:int, :string, :size_t], :pointer, **opts
|
760
|
+
attach_function :zsys_close, [:pointer, :string, :size_t], :int, **opts
|
761
|
+
attach_function :zsys_sockname, [:int], :pointer, **opts
|
762
|
+
attach_function :zsys_create_pipe, [:pointer], :pointer, **opts
|
763
|
+
attach_function :zsys_handler_set, [:pointer], :void, **opts
|
764
|
+
attach_function :zsys_handler_reset, [], :void, **opts
|
765
|
+
attach_function :zsys_catch_interrupts, [], :void, **opts
|
766
|
+
attach_function :zsys_file_exists, [:string], :bool, **opts
|
767
|
+
attach_function :zsys_file_modified, [:string], :pointer, **opts
|
768
|
+
attach_function :zsys_file_mode, [:string], :int, **opts
|
769
|
+
attach_function :zsys_file_delete, [:string], :int, **opts
|
770
|
+
attach_function :zsys_file_stable, [:string], :bool, **opts
|
771
|
+
attach_function :zsys_dir_create, [:string, :varargs], :int, **opts
|
772
|
+
attach_function :zsys_dir_delete, [:string, :varargs], :int, **opts
|
773
|
+
attach_function :zsys_dir_change, [:string], :int, **opts
|
774
|
+
attach_function :zsys_file_mode_private, [], :void, **opts
|
775
|
+
attach_function :zsys_file_mode_default, [], :void, **opts
|
776
|
+
attach_function :zsys_version, [:pointer, :pointer, :pointer], :void, **opts
|
777
|
+
attach_function :zsys_sprintf, [:string, :varargs], :pointer, **opts
|
778
|
+
attach_function :zsys_vprintf, [:string, :pointer], :pointer, **opts
|
779
|
+
attach_function :zsys_udp_new, [:bool], (::FFI::Platform.unix? ? :int : :uint64), **opts
|
780
|
+
attach_function :zsys_udp_close, [(::FFI::Platform.unix? ? :int : :uint64)], :int, **opts
|
781
|
+
attach_function :zsys_udp_send, [(::FFI::Platform.unix? ? :int : :uint64), :pointer, :pointer, :int], :int, **opts
|
782
|
+
attach_function :zsys_udp_recv, [(::FFI::Platform.unix? ? :int : :uint64), :pointer, :int], :pointer, **opts
|
783
|
+
attach_function :zsys_socket_error, [:string], :void, **opts
|
784
|
+
attach_function :zsys_hostname, [], :pointer, **opts
|
785
|
+
attach_function :zsys_daemonize, [:string], :int, **opts
|
786
|
+
attach_function :zsys_run_as, [:string, :string, :string], :int, **opts
|
787
|
+
attach_function :zsys_has_curve, [], :bool, **opts
|
788
|
+
attach_function :zsys_set_io_threads, [:size_t], :void, **opts
|
789
|
+
attach_function :zsys_set_thread_sched_policy, [:int], :void, **opts
|
790
|
+
attach_function :zsys_set_thread_priority, [:int], :void, **opts
|
791
|
+
attach_function :zsys_set_max_sockets, [:size_t], :void, **opts
|
792
|
+
attach_function :zsys_socket_limit, [], :size_t, **opts
|
793
|
+
attach_function :zsys_set_max_msgsz, [:int], :void, **opts
|
794
|
+
attach_function :zsys_max_msgsz, [], :int, **opts
|
795
|
+
attach_function :zsys_set_file_stable_age_msec, [:pointer], :void, **opts
|
796
|
+
attach_function :zsys_file_stable_age_msec, [], :pointer, **opts
|
797
|
+
attach_function :zsys_set_linger, [:size_t], :void, **opts
|
798
|
+
attach_function :zsys_set_sndhwm, [:size_t], :void, **opts
|
799
|
+
attach_function :zsys_set_rcvhwm, [:size_t], :void, **opts
|
800
|
+
attach_function :zsys_set_pipehwm, [:size_t], :void, **opts
|
801
|
+
attach_function :zsys_pipehwm, [], :size_t, **opts
|
802
|
+
attach_function :zsys_set_ipv6, [:int], :void, **opts
|
803
|
+
attach_function :zsys_ipv6, [], :int, **opts
|
804
|
+
attach_function :zsys_set_interface, [:string], :void, **opts
|
805
|
+
attach_function :zsys_interface, [], :string, **opts
|
806
|
+
attach_function :zsys_set_ipv6_address, [:string], :void, **opts
|
807
|
+
attach_function :zsys_ipv6_address, [], :string, **opts
|
808
|
+
attach_function :zsys_set_ipv6_mcast_address, [:string], :void, **opts
|
809
|
+
attach_function :zsys_ipv6_mcast_address, [], :string, **opts
|
810
|
+
attach_function :zsys_set_auto_use_fd, [:int], :void, **opts
|
811
|
+
attach_function :zsys_auto_use_fd, [], :int, **opts
|
812
|
+
attach_function :zsys_set_logident, [:string], :void, **opts
|
813
|
+
attach_function :zsys_set_logstream, [:pointer], :void, **opts
|
814
|
+
attach_function :zsys_set_logsender, [:string], :void, **opts
|
815
|
+
attach_function :zsys_set_logsystem, [:bool], :void, **opts
|
816
|
+
attach_function :zsys_error, [:string, :varargs], :void, **opts
|
817
|
+
attach_function :zsys_warning, [:string, :varargs], :void, **opts
|
818
|
+
attach_function :zsys_notice, [:string, :varargs], :void, **opts
|
819
|
+
attach_function :zsys_info, [:string, :varargs], :void, **opts
|
820
|
+
attach_function :zsys_debug, [:string, :varargs], :void, **opts
|
821
|
+
attach_function :zsys_test, [:bool], :void, **opts
|
822
|
+
|
823
|
+
require_relative 'ffi/zsys'
|
824
|
+
|
825
|
+
attach_function :ztimerset_new, [], :pointer, **opts
|
826
|
+
attach_function :ztimerset_destroy, [:pointer], :void, **opts
|
827
|
+
attach_function :ztimerset_add, [:pointer, :size_t, :pointer, :pointer], :int, **opts
|
828
|
+
attach_function :ztimerset_cancel, [:pointer, :int], :int, **opts
|
829
|
+
attach_function :ztimerset_set_interval, [:pointer, :int, :size_t], :int, **opts
|
830
|
+
attach_function :ztimerset_reset, [:pointer, :int], :int, **opts
|
831
|
+
attach_function :ztimerset_timeout, [:pointer], :int, **opts
|
832
|
+
attach_function :ztimerset_execute, [:pointer], :int, **opts
|
833
|
+
attach_function :ztimerset_test, [:bool], :void, **opts
|
1198
834
|
|
1199
835
|
require_relative 'ffi/ztimerset'
|
1200
836
|
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
begin # DRAFT method
|
1213
|
-
attach_function :ztrie_destroy, [:pointer], :void, **opts
|
1214
|
-
rescue ::FFI::NotFoundError
|
1215
|
-
if $VERBOSE || $DEBUG
|
1216
|
-
warn "The DRAFT function ztrie_destroy()" +
|
1217
|
-
" is not provided by the installed CZMQ library."
|
1218
|
-
end
|
1219
|
-
def self.ztrie_destroy(*)
|
1220
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1221
|
-
end
|
1222
|
-
end
|
1223
|
-
begin # DRAFT method
|
1224
|
-
attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
|
1225
|
-
rescue ::FFI::NotFoundError
|
1226
|
-
if $VERBOSE || $DEBUG
|
1227
|
-
warn "The DRAFT function ztrie_insert_route()" +
|
1228
|
-
" is not provided by the installed CZMQ library."
|
1229
|
-
end
|
1230
|
-
def self.ztrie_insert_route(*)
|
1231
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1232
|
-
end
|
1233
|
-
end
|
1234
|
-
begin # DRAFT method
|
1235
|
-
attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
|
1236
|
-
rescue ::FFI::NotFoundError
|
1237
|
-
if $VERBOSE || $DEBUG
|
1238
|
-
warn "The DRAFT function ztrie_remove_route()" +
|
1239
|
-
" is not provided by the installed CZMQ library."
|
1240
|
-
end
|
1241
|
-
def self.ztrie_remove_route(*)
|
1242
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1243
|
-
end
|
1244
|
-
end
|
1245
|
-
begin # DRAFT method
|
1246
|
-
attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
|
1247
|
-
rescue ::FFI::NotFoundError
|
1248
|
-
if $VERBOSE || $DEBUG
|
1249
|
-
warn "The DRAFT function ztrie_matches()" +
|
1250
|
-
" is not provided by the installed CZMQ library."
|
1251
|
-
end
|
1252
|
-
def self.ztrie_matches(*)
|
1253
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1254
|
-
end
|
1255
|
-
end
|
1256
|
-
begin # DRAFT method
|
1257
|
-
attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
|
1258
|
-
rescue ::FFI::NotFoundError
|
1259
|
-
if $VERBOSE || $DEBUG
|
1260
|
-
warn "The DRAFT function ztrie_hit_data()" +
|
1261
|
-
" is not provided by the installed CZMQ library."
|
1262
|
-
end
|
1263
|
-
def self.ztrie_hit_data(*)
|
1264
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1265
|
-
end
|
1266
|
-
end
|
1267
|
-
begin # DRAFT method
|
1268
|
-
attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
|
1269
|
-
rescue ::FFI::NotFoundError
|
1270
|
-
if $VERBOSE || $DEBUG
|
1271
|
-
warn "The DRAFT function ztrie_hit_parameter_count()" +
|
1272
|
-
" is not provided by the installed CZMQ library."
|
1273
|
-
end
|
1274
|
-
def self.ztrie_hit_parameter_count(*)
|
1275
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1276
|
-
end
|
1277
|
-
end
|
1278
|
-
begin # DRAFT method
|
1279
|
-
attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
|
1280
|
-
rescue ::FFI::NotFoundError
|
1281
|
-
if $VERBOSE || $DEBUG
|
1282
|
-
warn "The DRAFT function ztrie_hit_parameters()" +
|
1283
|
-
" is not provided by the installed CZMQ library."
|
1284
|
-
end
|
1285
|
-
def self.ztrie_hit_parameters(*)
|
1286
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1287
|
-
end
|
1288
|
-
end
|
1289
|
-
begin # DRAFT method
|
1290
|
-
attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
|
1291
|
-
rescue ::FFI::NotFoundError
|
1292
|
-
if $VERBOSE || $DEBUG
|
1293
|
-
warn "The DRAFT function ztrie_hit_asterisk_match()" +
|
1294
|
-
" is not provided by the installed CZMQ library."
|
1295
|
-
end
|
1296
|
-
def self.ztrie_hit_asterisk_match(*)
|
1297
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1298
|
-
end
|
1299
|
-
end
|
1300
|
-
begin # DRAFT method
|
1301
|
-
attach_function :ztrie_print, [:pointer], :void, **opts
|
1302
|
-
rescue ::FFI::NotFoundError
|
1303
|
-
if $VERBOSE || $DEBUG
|
1304
|
-
warn "The DRAFT function ztrie_print()" +
|
1305
|
-
" is not provided by the installed CZMQ library."
|
1306
|
-
end
|
1307
|
-
def self.ztrie_print(*)
|
1308
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1309
|
-
end
|
1310
|
-
end
|
1311
|
-
begin # DRAFT method
|
1312
|
-
attach_function :ztrie_test, [:bool], :void, **opts
|
1313
|
-
rescue ::FFI::NotFoundError
|
1314
|
-
if $VERBOSE || $DEBUG
|
1315
|
-
warn "The DRAFT function ztrie_test()" +
|
1316
|
-
" is not provided by the installed CZMQ library."
|
1317
|
-
end
|
1318
|
-
def self.ztrie_test(*)
|
1319
|
-
raise NotImplementedError, "compile CZMQ with --enable-drafts"
|
1320
|
-
end
|
1321
|
-
end
|
837
|
+
attach_function :ztrie_new, [:pointer], :pointer, **opts
|
838
|
+
attach_function :ztrie_destroy, [:pointer], :void, **opts
|
839
|
+
attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
|
840
|
+
attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
|
841
|
+
attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
|
842
|
+
attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
|
843
|
+
attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
|
844
|
+
attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
|
845
|
+
attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
|
846
|
+
attach_function :ztrie_print, [:pointer], :void, **opts
|
847
|
+
attach_function :ztrie_test, [:bool], :void, **opts
|
1322
848
|
|
1323
849
|
require_relative 'ffi/ztrie'
|
1324
850
|
|