czmq-ffi-gen 0.13.0-x64-mingw32 → 0.14.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +13 -0
  3. data/lib/czmq-ffi-gen/czmq/ffi.rb +224 -698
  4. data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +40 -7
  5. data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +259 -0
  6. data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +3 -3
  7. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +15 -6
  8. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +25 -11
  9. data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +18 -18
  10. data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +6 -6
  11. data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +27 -17
  12. data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +4 -4
  13. data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +36 -36
  14. data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +1 -1
  15. data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +27 -19
  16. data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +22 -21
  17. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +54 -54
  18. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +82 -80
  19. data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +30 -0
  20. data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +30 -30
  21. data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +44 -44
  22. data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +39 -39
  23. data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +46 -46
  24. data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +16 -16
  25. data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +237 -34
  26. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +1201 -973
  27. data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +58 -19
  28. data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +836 -0
  29. data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +6 -6
  30. data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +10 -10
  31. data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +4 -4
  32. data/lib/czmq-ffi-gen/gem_version.rb +1 -1
  33. data/lib/czmq-ffi-gen/vendor.rb +9 -1
  34. data/vendor/local/bin/inproc_lat.exe +0 -0
  35. data/vendor/local/bin/inproc_thr.exe +0 -0
  36. data/vendor/local/bin/libczmq.dll +0 -0
  37. data/vendor/local/bin/libzmq.dll +0 -0
  38. data/vendor/local/bin/local_lat.exe +0 -0
  39. data/vendor/local/bin/local_thr.exe +0 -0
  40. data/vendor/local/bin/remote_lat.exe +0 -0
  41. data/vendor/local/bin/remote_thr.exe +0 -0
  42. data/vendor/local/bin/zmakecert.exe +0 -0
  43. data/vendor/local/include/czmq_library.h +18 -9
  44. data/vendor/local/include/czmq_prelude.h +104 -16
  45. data/vendor/local/include/zactor.h +25 -7
  46. data/vendor/local/include/zarmour.h +3 -3
  47. data/vendor/local/include/zcert.h +11 -6
  48. data/vendor/local/include/zcertstore.h +18 -9
  49. data/vendor/local/include/zchunk.h +18 -18
  50. data/vendor/local/include/zclock.h +6 -6
  51. data/vendor/local/include/zconfig.h +25 -16
  52. data/vendor/local/include/zdigest.h +4 -4
  53. data/vendor/local/include/zdir.h +36 -36
  54. data/vendor/local/include/zdir_patch.h +1 -1
  55. data/vendor/local/include/zfile.h +27 -19
  56. data/vendor/local/include/zframe.h +22 -21
  57. data/vendor/local/include/zgossip.h +5 -5
  58. data/vendor/local/include/zgossip_engine.inc +103 -22
  59. data/vendor/local/include/zgossip_msg.h +28 -30
  60. data/vendor/local/include/zhash.h +53 -53
  61. data/vendor/local/include/zhashx.h +75 -73
  62. data/vendor/local/include/ziflist.h +22 -1
  63. data/vendor/local/include/zlist.h +28 -28
  64. data/vendor/local/include/zlistx.h +41 -41
  65. data/vendor/local/include/zloop.h +36 -36
  66. data/vendor/local/include/zmsg.h +46 -46
  67. data/vendor/local/include/zpoller.h +16 -16
  68. data/vendor/local/include/zsock.h +414 -364
  69. data/vendor/local/include/zsock_option.inc +234 -1062
  70. data/vendor/local/include/zstr.h +44 -19
  71. data/vendor/local/include/zsys.h +63 -19
  72. data/vendor/local/include/zuuid.h +4 -4
  73. data/vendor/local/lib/libczmq.dll.a +0 -0
  74. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  75. data/vendor/local/lib/pkgconfig/libczmq.pc +1 -1
  76. metadata +6 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cd68500db946592d1fd66b75d9cac6a507b245d
4
- data.tar.gz: cda59dbf35b6a33b09b5210366370b39aad6a88f
3
+ metadata.gz: c2f24f1d784b077713f98a3553c4ca062074b345
4
+ data.tar.gz: 5dbb9d2fe01ec88098f778463c37c0843370ec06
5
5
  SHA512:
6
- metadata.gz: 497fa1b800a32e1eef2396d1027bd3a4bcd62cecad55dce001407b59174e1dfa64c6ad355da9172939176019eda5f71698ec86cef8802fb807db1d007e1eb8f7
7
- data.tar.gz: 80dbc9b9f2aaa62746db7610de3a9f10bcd2fbce8dddccb3cc066f5f0e50f7938143956d471e4a8949afc5c939ff275f3c9378287ae9f4c30e9af7766d4d34a2
6
+ metadata.gz: cdc2dd5964ed0c7b6137590d1bccd079de300b2ca2a5f970723aa5efbb35b20edcc1079f85aca4b0598356a9a5da563bdfc24017679ac52a8a858543dc9a27da
7
+ data.tar.gz: c3a1bef89b56581a23e39e2048a42080e3c2cc419afe91c62eef59b7d6134376614a7b3847a97d5e323e7ad399d88d532e5e8fb270be3d32efb902fa766fa998
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
- begin # DRAFT method
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
- begin # DRAFT method
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
- begin # DRAFT method
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
- begin # DRAFT method
293
- attach_function :zframe_routing_id, [:pointer], :uint32, **opts
294
- rescue ::FFI::NotFoundError
295
- if $VERBOSE || $DEBUG
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
- begin # DRAFT method
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
- begin # DRAFT method
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
- begin # DRAFT method
527
- attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
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
- begin # DRAFT method
588
- attach_function :zproc_czmq_version, [], :int, **opts
589
- rescue ::FFI::NotFoundError
590
- if $VERBOSE || $DEBUG
591
- warn "The DRAFT function zproc_czmq_version()" +
592
- " is not provided by the installed CZMQ library."
593
- end
594
- def self.zproc_czmq_version(*)
595
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
596
- end
597
- end
598
- begin # DRAFT method
599
- attach_function :zproc_interrupted, [], :bool, **opts
600
- rescue ::FFI::NotFoundError
601
- if $VERBOSE || $DEBUG
602
- warn "The DRAFT function zproc_interrupted()" +
603
- " is not provided by the installed CZMQ library."
604
- end
605
- def self.zproc_interrupted(*)
606
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
607
- end
608
- end
609
- begin # DRAFT method
610
- attach_function :zproc_has_curve, [], :bool, **opts
611
- rescue ::FFI::NotFoundError
612
- if $VERBOSE || $DEBUG
613
- warn "The DRAFT function zproc_has_curve()" +
614
- " is not provided by the installed CZMQ library."
615
- end
616
- def self.zproc_has_curve(*)
617
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
618
- end
619
- end
620
- begin # DRAFT method
621
- attach_function :zproc_hostname, [], :pointer, **opts
622
- rescue ::FFI::NotFoundError
623
- if $VERBOSE || $DEBUG
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
- begin # DRAFT method
813
- attach_function :zsock_new_server, [:string], :pointer, **opts
814
- rescue ::FFI::NotFoundError
815
- if $VERBOSE || $DEBUG
816
- warn "The DRAFT function zsock_new_server()" +
817
- " is not provided by the installed CZMQ library."
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
- begin # DRAFT method
893
- attach_function :zsock_routing_id, [:pointer], :uint32, **opts
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
- begin # DRAFT method
919
- attach_function :zsock_join, [:pointer, :string], :int, **opts
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 :zsock_maxmsgsize, [:pointer], :int, **opts
1046
- attach_function :zsock_set_maxmsgsize, [:pointer, :int], :void, **opts
1047
- attach_function :zsock_multicast_hops, [:pointer], :int, **opts
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
- begin # DRAFT method
1084
- attach_function :zstr_str, [:pointer], :pointer, **opts
1085
- rescue ::FFI::NotFoundError
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
- begin # DRAFT method
1100
- attach_function :ztimerset_new, [], :pointer, **opts
1101
- rescue ::FFI::NotFoundError
1102
- if $VERBOSE || $DEBUG
1103
- warn "The DRAFT function ztimerset_new()" +
1104
- " is not provided by the installed CZMQ library."
1105
- end
1106
- def self.ztimerset_new(*)
1107
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1108
- end
1109
- end
1110
- begin # DRAFT method
1111
- attach_function :ztimerset_destroy, [:pointer], :void, **opts
1112
- rescue ::FFI::NotFoundError
1113
- if $VERBOSE || $DEBUG
1114
- warn "The DRAFT function ztimerset_destroy()" +
1115
- " is not provided by the installed CZMQ library."
1116
- end
1117
- def self.ztimerset_destroy(*)
1118
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1119
- end
1120
- end
1121
- begin # DRAFT method
1122
- attach_function :ztimerset_add, [:pointer, :size_t, :pointer, :pointer], :int, **opts
1123
- rescue ::FFI::NotFoundError
1124
- if $VERBOSE || $DEBUG
1125
- warn "The DRAFT function ztimerset_add()" +
1126
- " is not provided by the installed CZMQ library."
1127
- end
1128
- def self.ztimerset_add(*)
1129
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1130
- end
1131
- end
1132
- begin # DRAFT method
1133
- attach_function :ztimerset_cancel, [:pointer, :int], :int, **opts
1134
- rescue ::FFI::NotFoundError
1135
- if $VERBOSE || $DEBUG
1136
- warn "The DRAFT function ztimerset_cancel()" +
1137
- " is not provided by the installed CZMQ library."
1138
- end
1139
- def self.ztimerset_cancel(*)
1140
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1141
- end
1142
- end
1143
- begin # DRAFT method
1144
- attach_function :ztimerset_set_interval, [:pointer, :int, :size_t], :int, **opts
1145
- rescue ::FFI::NotFoundError
1146
- if $VERBOSE || $DEBUG
1147
- warn "The DRAFT function ztimerset_set_interval()" +
1148
- " is not provided by the installed CZMQ library."
1149
- end
1150
- def self.ztimerset_set_interval(*)
1151
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1152
- end
1153
- end
1154
- begin # DRAFT method
1155
- attach_function :ztimerset_reset, [:pointer, :int], :int, **opts
1156
- rescue ::FFI::NotFoundError
1157
- if $VERBOSE || $DEBUG
1158
- warn "The DRAFT function ztimerset_reset()" +
1159
- " is not provided by the installed CZMQ library."
1160
- end
1161
- def self.ztimerset_reset(*)
1162
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1163
- end
1164
- end
1165
- begin # DRAFT method
1166
- attach_function :ztimerset_timeout, [:pointer], :int, **opts
1167
- rescue ::FFI::NotFoundError
1168
- if $VERBOSE || $DEBUG
1169
- warn "The DRAFT function ztimerset_timeout()" +
1170
- " is not provided by the installed CZMQ library."
1171
- end
1172
- def self.ztimerset_timeout(*)
1173
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1174
- end
1175
- end
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
- begin # DRAFT method
1202
- attach_function :ztrie_new, [:pointer], :pointer, **opts
1203
- rescue ::FFI::NotFoundError
1204
- if $VERBOSE || $DEBUG
1205
- warn "The DRAFT function ztrie_new()" +
1206
- " is not provided by the installed CZMQ library."
1207
- end
1208
- def self.ztrie_new(*)
1209
- raise NotImplementedError, "compile CZMQ with --enable-drafts"
1210
- end
1211
- end
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