czmq-ffi-gen 0.14.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGES.md +19 -0
- data/README.md +11 -36
- data/lib/czmq-ffi-gen.rb +4 -2
- data/lib/czmq-ffi-gen/czmq/ffi.rb +168 -23
- data/lib/czmq-ffi-gen/czmq/ffi/version.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +2 -2
- data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +26 -24
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +10 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +41 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +25 -2
- data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +46 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_client.rb +113 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_request.rb +312 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_response.rb +263 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_server.rb +135 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_server_connection.rb +91 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_server_options.rb +161 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +34 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +16 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zosc.rb +487 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +11 -9
- data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +53 -217
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +946 -2
- data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +217 -1
- data/lib/czmq-ffi-gen/czmq_ffi_extensions.rb +16 -0
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- data/lib/czmq-ffi-gen/libzmq.rb +29 -2
- data/lib/czmq-ffi-gen/versions.rb +1 -11
- metadata +28 -33
- data/lib/czmq-ffi-gen/legacy.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 54df901872241cd24a89cf112ef7c5ad4d70add201cdb0530711e3164f59b7a1
|
4
|
+
data.tar.gz: 160874a60cb895fd1e958a3859cb72c945b2702fbe0a5a48c49f22effba3643d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e351142eac434718b4c43ab75254265858507aebfef8a26b306c0d25c40c20bb622b927806ff206c8d7071a86425b4b97c852a8493ef48589a5c2d1d3b2db687
|
7
|
+
data.tar.gz: cd5ef8113db2134e84a4d36ecb5c99ecf81aef397b354db2786a63c5659a35c2a5767ceb110ffc83da6e75ea647dd1fecd09678c619132829b3ff17d940a20bd
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
0.16.1 (11/20/2019)
|
2
|
+
-----
|
3
|
+
* relax gem dependencies
|
4
|
+
* update CZMQ low-level binding
|
5
|
+
* remove support for CZMQ 3
|
6
|
+
* add CZMQ::FFI::LibZMQ.zmq_has, .has?(cap), .has_curve?, .has_draft?
|
7
|
+
* add CZMQ::FFI:has_draft?
|
8
|
+
* add CZMQ::FFI::LibZMQ::VERSION
|
9
|
+
|
10
|
+
0.15.0 (03/04/2018)
|
11
|
+
-----
|
12
|
+
* update CZMQ low-level binding to include fixed errno for unsupported features (ENOTSUP)
|
13
|
+
|
14
|
+
0.14.1 (11/29/2017)
|
15
|
+
-----
|
16
|
+
* update CZMQ low-level binding to include fixes for zmonitor events
|
17
|
+
(zeromq/czmq#1806)
|
18
|
+
* fix building fat binaries for Windows (thanks to Kouhei Sutou)
|
19
|
+
|
1
20
|
0.14.0 (11/27/2017)
|
2
21
|
-----
|
3
22
|
* on Windows with RubyInstaller2: fix loading libczmq
|
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
[](https://gemnasium.com/paddor/czmq-ffi-gen)
|
1
|
+

|
3
2
|
|
4
3
|
# Generated CZMQ::FFI
|
5
4
|
|
@@ -15,14 +14,13 @@ anything you want. :-)
|
|
15
14
|
This is generated code. It is generated from the API models in CZMQ using
|
16
15
|
[zproject](https://github.com/zeromq/zproject). It doesn't feel like Ruby. It's
|
17
16
|
not intended to be used directly. Instead, use
|
18
|
-
[CZTop](https://
|
17
|
+
[CZTop](https://gitlab.com/paddor/cztop), or write your own wrapper for this
|
19
18
|
library.
|
20
19
|
|
21
20
|
### Generated code isn't actually in this repository
|
22
|
-
The actual generated code lies in CZMQ, which is Git submodule of this
|
23
|
-
repository, registered under `vendor/czmq`.
|
24
|
-
|
25
|
-
So if you're not happy with any of the generated code, go have a closer look at
|
21
|
+
The actual generated code lies in CZMQ, which is a Git submodule of this
|
22
|
+
repository, registered under `vendor/czmq`. So if you're not happy with any of
|
23
|
+
the generated code, go have a closer look at
|
26
24
|
[CZMQ](https://github.com/zeromq/czmq) (or
|
27
25
|
[zproject](https://github.com/zeromq/zproject), which is used by CZMQ to
|
28
26
|
generate the low-level binding).
|
@@ -30,7 +28,7 @@ generate the low-level binding).
|
|
30
28
|
### API Documentation
|
31
29
|
For that same reason, API documentation of unreleased code (directly off this
|
32
30
|
repository), like
|
33
|
-
[rubydoc.info/github/paddor/czmq-ffi-gen](http://www.rubydoc.info/
|
31
|
+
[rubydoc.info/github/paddor/czmq-ffi-gen](http://www.rubydoc.info/gitlab/paddor/czmq-ffi-gen)
|
34
32
|
**does NOT include any of the generated code**. _Rubydoc.info_ doesn't check
|
35
33
|
out Git submodules as part of its documentation procedure.
|
36
34
|
|
@@ -44,36 +42,13 @@ for the API documentation **for the released gem**.
|
|
44
42
|
|
45
43
|
## Requirements
|
46
44
|
|
47
|
-
* CZMQ >= 4.
|
48
|
-
* ZMQ >= 4.
|
49
|
-
|
50
|
-
For security mechanisms like CURVE, you can use an external library:
|
51
|
-
* [libsodium](https://github.com/jedisct1/libsodium)
|
45
|
+
* CZMQ >= 4.2
|
46
|
+
* ZMQ >= 4.3
|
52
47
|
|
53
|
-
On
|
48
|
+
On macOS using Homebrew, run:
|
54
49
|
|
55
|
-
$ brew install libsodium
|
56
|
-
$ brew install zmq --with-libsodium
|
57
50
|
$ brew install czmq
|
58
51
|
|
59
|
-
If you're running Linux, go check [this page](http://zeromq.org/distro:_start)
|
60
|
-
to get more help. Make sure to install CZMQ, not only ZMQ.
|
61
|
-
|
62
|
-
### Supported Rubies
|
63
|
-
|
64
|
-
See [.travis.yml](https://github.com/paddor/czmq-ffi-gen/blob/master/.travis.yml)
|
65
|
-
for a list of Ruby versions against which czmq-ffi-gen is tested.
|
66
|
-
|
67
|
-
At the time of writing, these include:
|
68
|
-
|
69
|
-
* MRI 2.3, 2.2.4, 2.1.8
|
70
|
-
* Rubinius (HEAD)
|
71
|
-
* JRuby 9000 (HEAD)
|
72
|
-
|
73
|
-
#### Known NOT to work
|
74
|
-
|
75
|
-
* JRuby 1.7.x and MRI < 2.0
|
76
|
-
* doesn't work because of the use of the double splat operator (`**opts`)
|
77
52
|
|
78
53
|
## Installation
|
79
54
|
|
@@ -93,7 +68,7 @@ Or install it yourself as:
|
|
93
68
|
|
94
69
|
## Usage
|
95
70
|
|
96
|
-
Check out [CZTop](https://
|
71
|
+
Check out [CZTop](https://gitlab.com/paddor/cztop) or the API documentation to
|
97
72
|
see how this project can be used. :-)
|
98
73
|
|
99
74
|
## Development
|
@@ -106,4 +81,4 @@ prompt that will allow you to experiment.
|
|
106
81
|
|
107
82
|
The gem is available as open source under the terms of the [ISC
|
108
83
|
License](http://opensource.org/licenses/ISC). See the
|
109
|
-
[LICENSE](https://
|
84
|
+
[LICENSE](https://gitlab.com/paddor/cztop/blob/master/LICENSE) file.
|
data/lib/czmq-ffi-gen.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
require_relative "czmq-ffi-gen/gem_version"
|
1
2
|
require_relative "czmq-ffi-gen/vendor"
|
2
3
|
require_relative "czmq-ffi-gen/czmq/ffi"
|
3
|
-
require_relative "czmq-ffi-gen/
|
4
|
+
require_relative "czmq-ffi-gen/libzmq"
|
4
5
|
require_relative "czmq-ffi-gen/errors"
|
5
6
|
require_relative "czmq-ffi-gen/signals"
|
6
|
-
require_relative "czmq-ffi-gen/
|
7
|
+
require_relative "czmq-ffi-gen/czmq_ffi_extensions"
|
8
|
+
require_relative "czmq-ffi-gen/versions"
|
7
9
|
CZMQ::FFI.available? or raise LoadError, "libczmq is not available"
|
@@ -74,10 +74,10 @@ module CZMQ
|
|
74
74
|
attach_function :zargs_param_first, [:pointer], :string, **opts
|
75
75
|
attach_function :zargs_param_next, [:pointer], :string, **opts
|
76
76
|
attach_function :zargs_param_name, [:pointer], :string, **opts
|
77
|
-
attach_function :
|
78
|
-
attach_function :
|
79
|
-
attach_function :
|
80
|
-
attach_function :
|
77
|
+
attach_function :zargs_get, [:pointer, :string], :string, **opts
|
78
|
+
attach_function :zargs_getx, [:pointer, :string, :varargs], :string, **opts
|
79
|
+
attach_function :zargs_has, [:pointer, :string], :bool, **opts
|
80
|
+
attach_function :zargs_hasx, [:pointer, :string, :varargs], :bool, **opts
|
81
81
|
attach_function :zargs_print, [:pointer], :void, **opts
|
82
82
|
attach_function :zargs_test, [:bool], :void, **opts
|
83
83
|
|
@@ -135,11 +135,13 @@ module CZMQ
|
|
135
135
|
attach_function :zcertstore_empty, [:pointer], :void, **opts
|
136
136
|
attach_function :zcertstore_print, [:pointer], :void, **opts
|
137
137
|
attach_function :zcertstore_certs, [:pointer], :pointer, **opts
|
138
|
+
attach_function :zcertstore_state, [:pointer], :pointer, **opts
|
138
139
|
attach_function :zcertstore_test, [:bool], :void, **opts
|
139
140
|
|
140
141
|
require_relative 'ffi/zcertstore'
|
141
142
|
|
142
143
|
attach_function :zchunk_new, [:pointer, :size_t], :pointer, **opts
|
144
|
+
attach_function :zchunk_frommem, [:pointer, :size_t, :pointer, :pointer], :pointer, **opts
|
143
145
|
attach_function :zchunk_destroy, [:pointer], :void, **opts
|
144
146
|
attach_function :zchunk_resize, [:pointer, :size_t], :void, **opts
|
145
147
|
attach_function :zchunk_size, [:pointer], :size_t, **opts
|
@@ -159,6 +161,7 @@ module CZMQ
|
|
159
161
|
attach_function :zchunk_strdup, [:pointer], :pointer, **opts
|
160
162
|
attach_function :zchunk_streq, [:pointer, :string], :bool, **opts
|
161
163
|
attach_function :zchunk_pack, [:pointer], :pointer, **opts
|
164
|
+
attach_function :zchunk_packx, [:pointer], :pointer, **opts
|
162
165
|
attach_function :zchunk_unpack, [:pointer], :pointer, **opts
|
163
166
|
attach_function :zchunk_digest, [:pointer], :string, **opts
|
164
167
|
attach_function :zchunk_fprint, [:pointer, :pointer], :void, **opts
|
@@ -181,6 +184,7 @@ module CZMQ
|
|
181
184
|
attach_function :zconfig_load, [:string], :pointer, **opts
|
182
185
|
attach_function :zconfig_loadf, [:string, :varargs], :pointer, **opts
|
183
186
|
attach_function :zconfig_destroy, [:pointer], :void, **opts
|
187
|
+
attach_function :zconfig_dup, [:pointer], :pointer, **opts
|
184
188
|
attach_function :zconfig_name, [:pointer], :pointer, **opts
|
185
189
|
attach_function :zconfig_value, [:pointer], :pointer, **opts
|
186
190
|
attach_function :zconfig_put, [:pointer, :string, :string], :void, **opts
|
@@ -204,6 +208,7 @@ module CZMQ
|
|
204
208
|
attach_function :zconfig_str_load, [:string], :pointer, **opts
|
205
209
|
attach_function :zconfig_str_save, [:pointer], :pointer, **opts
|
206
210
|
attach_function :zconfig_has_changed, [:pointer], :bool, **opts
|
211
|
+
attach_function :zconfig_remove_subtree, [:pointer], :void, **opts
|
207
212
|
attach_function :zconfig_remove, [:pointer], :void, **opts
|
208
213
|
attach_function :zconfig_fprint, [:pointer, :pointer], :void, **opts
|
209
214
|
attach_function :zconfig_print, [:pointer], :void, **opts
|
@@ -283,6 +288,7 @@ module CZMQ
|
|
283
288
|
attach_function :zframe_new, [:pointer, :size_t], :pointer, **opts
|
284
289
|
attach_function :zframe_new_empty, [], :pointer, **opts
|
285
290
|
attach_function :zframe_from, [:string], :pointer, **opts
|
291
|
+
attach_function :zframe_frommem, [:pointer, :size_t, :pointer, :pointer], :pointer, **opts
|
286
292
|
attach_function :zframe_recv, [:pointer], :pointer, **opts
|
287
293
|
attach_function :zframe_destroy, [:pointer], :void, **opts
|
288
294
|
attach_function :zframe_send, [:pointer, :pointer, :int], :int, **opts
|
@@ -302,6 +308,7 @@ module CZMQ
|
|
302
308
|
attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
|
303
309
|
attach_function :zframe_reset, [:pointer, :pointer, :size_t], :void, **opts
|
304
310
|
attach_function :zframe_print, [:pointer, :string], :void, **opts
|
311
|
+
attach_function :zframe_print_n, [:pointer, :string, :size_t], :void, **opts
|
305
312
|
attach_function :zframe_is, [:pointer], :bool, **opts
|
306
313
|
attach_function :zframe_test, [:bool], :void, **opts
|
307
314
|
|
@@ -409,6 +416,7 @@ module CZMQ
|
|
409
416
|
require_relative 'ffi/zlist'
|
410
417
|
|
411
418
|
attach_function :zlistx_new, [], :pointer, **opts
|
419
|
+
attach_function :zlistx_unpack, [:pointer], :pointer, **opts
|
412
420
|
attach_function :zlistx_destroy, [:pointer], :void, **opts
|
413
421
|
attach_function :zlistx_add_start, [:pointer, :pointer], :pointer, **opts
|
414
422
|
attach_function :zlistx_add_end, [:pointer, :pointer], :pointer, **opts
|
@@ -436,6 +444,7 @@ module CZMQ
|
|
436
444
|
attach_function :zlistx_set_destructor, [:pointer, :pointer], :void, **opts
|
437
445
|
attach_function :zlistx_set_duplicator, [:pointer, :pointer], :void, **opts
|
438
446
|
attach_function :zlistx_set_comparator, [:pointer, :pointer], :void, **opts
|
447
|
+
attach_function :zlistx_pack, [:pointer], :pointer, **opts
|
439
448
|
attach_function :zlistx_test, [:bool], :void, **opts
|
440
449
|
|
441
450
|
require_relative 'ffi/zlistx'
|
@@ -494,6 +503,7 @@ module CZMQ
|
|
494
503
|
attach_function :zmsg_encode, [:pointer], :pointer, **opts
|
495
504
|
attach_function :zmsg_dup, [:pointer], :pointer, **opts
|
496
505
|
attach_function :zmsg_print, [:pointer], :void, **opts
|
506
|
+
attach_function :zmsg_print_n, [:pointer, :size_t], :void, **opts
|
497
507
|
attach_function :zmsg_eq, [:pointer, :pointer], :bool, **opts
|
498
508
|
attach_function :zmsg_signal, [:pointer], :int, **opts
|
499
509
|
attach_function :zmsg_is, [:pointer], :bool, **opts
|
@@ -515,7 +525,9 @@ module CZMQ
|
|
515
525
|
|
516
526
|
attach_function :zproc_new, [], :pointer, **opts
|
517
527
|
attach_function :zproc_destroy, [:pointer], :void, **opts
|
528
|
+
attach_function :zproc_args, [:pointer], :pointer, **opts
|
518
529
|
attach_function :zproc_set_args, [:pointer, :pointer], :void, **opts
|
530
|
+
attach_function :zproc_set_argsx, [:pointer, :string, :varargs], :void, **opts
|
519
531
|
attach_function :zproc_set_env, [:pointer, :pointer], :void, **opts
|
520
532
|
attach_function :zproc_set_stdin, [:pointer, :pointer], :void, **opts
|
521
533
|
attach_function :zproc_set_stdout, [:pointer, :pointer], :void, **opts
|
@@ -527,28 +539,11 @@ module CZMQ
|
|
527
539
|
attach_function :zproc_returncode, [:pointer], :int, **opts
|
528
540
|
attach_function :zproc_pid, [:pointer], :int, **opts
|
529
541
|
attach_function :zproc_running, [:pointer], :bool, **opts
|
530
|
-
attach_function :zproc_wait, [:pointer, :
|
542
|
+
attach_function :zproc_wait, [:pointer, :int], :int, **opts
|
543
|
+
attach_function :zproc_shutdown, [:pointer, :int], :void, **opts
|
531
544
|
attach_function :zproc_actor, [:pointer], :pointer, **opts
|
532
545
|
attach_function :zproc_kill, [:pointer, :int], :void, **opts
|
533
546
|
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
547
|
attach_function :zproc_test, [:bool], :void, **opts
|
553
548
|
|
554
549
|
require_relative 'ffi/zproc'
|
@@ -572,6 +567,7 @@ module CZMQ
|
|
572
567
|
attach_function :zsock_new_dish, [:string], :pointer, **opts
|
573
568
|
attach_function :zsock_new_gather, [:string], :pointer, **opts
|
574
569
|
attach_function :zsock_new_scatter, [:string], :pointer, **opts
|
570
|
+
attach_function :zsock_new_dgram, [:string], :pointer, **opts
|
575
571
|
attach_function :zsock_destroy, [:pointer], :void, **opts
|
576
572
|
attach_function :zsock_bind, [:pointer, :string, :varargs], :int, **opts
|
577
573
|
attach_function :zsock_endpoint, [:pointer], :string, **opts
|
@@ -596,6 +592,40 @@ module CZMQ
|
|
596
592
|
attach_function :zsock_leave, [:pointer, :string], :int, **opts
|
597
593
|
attach_function :zsock_is, [:pointer], :bool, **opts
|
598
594
|
attach_function :zsock_resolve, [:pointer], :pointer, **opts
|
595
|
+
attach_function :zsock_has_in, [:pointer], :bool, **opts
|
596
|
+
attach_function :zsock_set_only_first_subscribe, [:pointer, :int], :void, **opts
|
597
|
+
attach_function :zsock_set_hello_msg, [:pointer, :pointer], :void, **opts
|
598
|
+
attach_function :zsock_set_disconnect_msg, [:pointer, :pointer], :void, **opts
|
599
|
+
attach_function :zsock_set_wss_trust_system, [:pointer, :int], :void, **opts
|
600
|
+
attach_function :zsock_set_wss_hostname, [:pointer, :string], :void, **opts
|
601
|
+
attach_function :zsock_set_wss_trust_pem, [:pointer, :string], :void, **opts
|
602
|
+
attach_function :zsock_set_wss_cert_pem, [:pointer, :string], :void, **opts
|
603
|
+
attach_function :zsock_set_wss_key_pem, [:pointer, :string], :void, **opts
|
604
|
+
attach_function :zsock_out_batch_size, [:pointer], :int, **opts
|
605
|
+
attach_function :zsock_set_out_batch_size, [:pointer, :int], :void, **opts
|
606
|
+
attach_function :zsock_in_batch_size, [:pointer], :int, **opts
|
607
|
+
attach_function :zsock_set_in_batch_size, [:pointer, :int], :void, **opts
|
608
|
+
attach_function :zsock_socks_password, [:pointer], :pointer, **opts
|
609
|
+
attach_function :zsock_set_socks_password, [:pointer, :string], :void, **opts
|
610
|
+
attach_function :zsock_socks_username, [:pointer], :pointer, **opts
|
611
|
+
attach_function :zsock_set_socks_username, [:pointer, :string], :void, **opts
|
612
|
+
attach_function :zsock_set_xpub_manual_last_value, [:pointer, :int], :void, **opts
|
613
|
+
attach_function :zsock_router_notify, [:pointer], :int, **opts
|
614
|
+
attach_function :zsock_set_router_notify, [:pointer, :int], :void, **opts
|
615
|
+
attach_function :zsock_multicast_loop, [:pointer], :int, **opts
|
616
|
+
attach_function :zsock_set_multicast_loop, [:pointer, :int], :void, **opts
|
617
|
+
attach_function :zsock_metadata, [:pointer], :pointer, **opts
|
618
|
+
attach_function :zsock_set_metadata, [:pointer, :string], :void, **opts
|
619
|
+
attach_function :zsock_loopback_fastpath, [:pointer], :int, **opts
|
620
|
+
attach_function :zsock_set_loopback_fastpath, [:pointer, :int], :void, **opts
|
621
|
+
attach_function :zsock_zap_enforce_domain, [:pointer], :int, **opts
|
622
|
+
attach_function :zsock_set_zap_enforce_domain, [:pointer, :int], :void, **opts
|
623
|
+
attach_function :zsock_gssapi_principal_nametype, [:pointer], :int, **opts
|
624
|
+
attach_function :zsock_set_gssapi_principal_nametype, [:pointer, :int], :void, **opts
|
625
|
+
attach_function :zsock_gssapi_service_principal_nametype, [:pointer], :int, **opts
|
626
|
+
attach_function :zsock_set_gssapi_service_principal_nametype, [:pointer, :int], :void, **opts
|
627
|
+
attach_function :zsock_bindtodevice, [:pointer], :pointer, **opts
|
628
|
+
attach_function :zsock_set_bindtodevice, [:pointer, :string], :void, **opts
|
599
629
|
attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
|
600
630
|
attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
|
601
631
|
attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
|
@@ -763,6 +793,8 @@ module CZMQ
|
|
763
793
|
attach_function :zsys_handler_set, [:pointer], :void, **opts
|
764
794
|
attach_function :zsys_handler_reset, [], :void, **opts
|
765
795
|
attach_function :zsys_catch_interrupts, [], :void, **opts
|
796
|
+
attach_function :zsys_is_interrupted, [], :bool, **opts
|
797
|
+
attach_function :zsys_set_interrupted, [], :void, **opts
|
766
798
|
attach_function :zsys_file_exists, [:string], :bool, **opts
|
767
799
|
attach_function :zsys_file_modified, [:string], :pointer, **opts
|
768
800
|
attach_function :zsys_file_mode, [:string], :int, **opts
|
@@ -774,6 +806,7 @@ module CZMQ
|
|
774
806
|
attach_function :zsys_file_mode_private, [], :void, **opts
|
775
807
|
attach_function :zsys_file_mode_default, [], :void, **opts
|
776
808
|
attach_function :zsys_version, [:pointer, :pointer, :pointer], :void, **opts
|
809
|
+
attach_function :zsys_sprintf_hint, [:int, :string, :varargs], :pointer, **opts
|
777
810
|
attach_function :zsys_sprintf, [:string, :varargs], :pointer, **opts
|
778
811
|
attach_function :zsys_vprintf, [:string, :pointer], :pointer, **opts
|
779
812
|
attach_function :zsys_udp_new, [:bool], (::FFI::Platform.unix? ? :int : :uint64), **opts
|
@@ -788,10 +821,16 @@ module CZMQ
|
|
788
821
|
attach_function :zsys_set_io_threads, [:size_t], :void, **opts
|
789
822
|
attach_function :zsys_set_thread_sched_policy, [:int], :void, **opts
|
790
823
|
attach_function :zsys_set_thread_priority, [:int], :void, **opts
|
824
|
+
attach_function :zsys_set_thread_name_prefix, [:int], :void, **opts
|
825
|
+
attach_function :zsys_thread_name_prefix, [], :int, **opts
|
826
|
+
attach_function :zsys_thread_affinity_cpu_add, [:int], :void, **opts
|
827
|
+
attach_function :zsys_thread_affinity_cpu_remove, [:int], :void, **opts
|
791
828
|
attach_function :zsys_set_max_sockets, [:size_t], :void, **opts
|
792
829
|
attach_function :zsys_socket_limit, [], :size_t, **opts
|
793
830
|
attach_function :zsys_set_max_msgsz, [:int], :void, **opts
|
794
831
|
attach_function :zsys_max_msgsz, [], :int, **opts
|
832
|
+
attach_function :zsys_set_zero_copy_recv, [:int], :void, **opts
|
833
|
+
attach_function :zsys_zero_copy_recv, [], :int, **opts
|
795
834
|
attach_function :zsys_set_file_stable_age_msec, [:pointer], :void, **opts
|
796
835
|
attach_function :zsys_file_stable_age_msec, [], :pointer, **opts
|
797
836
|
attach_function :zsys_set_linger, [:size_t], :void, **opts
|
@@ -801,14 +840,23 @@ module CZMQ
|
|
801
840
|
attach_function :zsys_pipehwm, [], :size_t, **opts
|
802
841
|
attach_function :zsys_set_ipv6, [:int], :void, **opts
|
803
842
|
attach_function :zsys_ipv6, [], :int, **opts
|
843
|
+
attach_function :zsys_ipv6_available, [], :bool, **opts
|
804
844
|
attach_function :zsys_set_interface, [:string], :void, **opts
|
805
845
|
attach_function :zsys_interface, [], :string, **opts
|
806
846
|
attach_function :zsys_set_ipv6_address, [:string], :void, **opts
|
807
847
|
attach_function :zsys_ipv6_address, [], :string, **opts
|
808
848
|
attach_function :zsys_set_ipv6_mcast_address, [:string], :void, **opts
|
809
849
|
attach_function :zsys_ipv6_mcast_address, [], :string, **opts
|
850
|
+
attach_function :zsys_set_ipv4_mcast_address, [:string], :void, **opts
|
851
|
+
attach_function :zsys_ipv4_mcast_address, [], :string, **opts
|
852
|
+
attach_function :zsys_set_mcast_ttl, [:char], :void, **opts
|
853
|
+
attach_function :zsys_mcast_ttl, [], :char, **opts
|
810
854
|
attach_function :zsys_set_auto_use_fd, [:int], :void, **opts
|
811
855
|
attach_function :zsys_auto_use_fd, [], :int, **opts
|
856
|
+
attach_function :zsys_zprintf, [:string, :pointer], :pointer, **opts
|
857
|
+
attach_function :zsys_zprintf_error, [:string, :pointer], :pointer, **opts
|
858
|
+
attach_function :zsys_zplprintf, [:string, :pointer], :pointer, **opts
|
859
|
+
attach_function :zsys_zplprintf_error, [:string, :pointer], :pointer, **opts
|
812
860
|
attach_function :zsys_set_logident, [:string], :void, **opts
|
813
861
|
attach_function :zsys_set_logstream, [:pointer], :void, **opts
|
814
862
|
attach_function :zsys_set_logsender, [:string], :void, **opts
|
@@ -864,6 +912,103 @@ module CZMQ
|
|
864
912
|
attach_function :zuuid_test, [:bool], :void, **opts
|
865
913
|
|
866
914
|
require_relative 'ffi/zuuid'
|
915
|
+
|
916
|
+
attach_function :zhttp_client_new, [:bool], :pointer, **opts
|
917
|
+
attach_function :zhttp_client_destroy, [:pointer], :void, **opts
|
918
|
+
attach_function :zhttp_client_test, [:bool], :void, **opts
|
919
|
+
|
920
|
+
require_relative 'ffi/zhttp_client'
|
921
|
+
|
922
|
+
attach_function :zhttp_server_new, [:pointer], :pointer, **opts
|
923
|
+
attach_function :zhttp_server_destroy, [:pointer], :void, **opts
|
924
|
+
attach_function :zhttp_server_port, [:pointer], :int, **opts
|
925
|
+
attach_function :zhttp_server_test, [:bool], :void, **opts
|
926
|
+
|
927
|
+
require_relative 'ffi/zhttp_server'
|
928
|
+
|
929
|
+
attach_function :zhttp_server_options_new, [], :pointer, **opts
|
930
|
+
attach_function :zhttp_server_options_from_config, [:pointer], :pointer, **opts
|
931
|
+
attach_function :zhttp_server_options_destroy, [:pointer], :void, **opts
|
932
|
+
attach_function :zhttp_server_options_port, [:pointer], :int, **opts
|
933
|
+
attach_function :zhttp_server_options_set_port, [:pointer, :int], :void, **opts
|
934
|
+
attach_function :zhttp_server_options_backend_address, [:pointer], :string, **opts
|
935
|
+
attach_function :zhttp_server_options_set_backend_address, [:pointer, :string], :void, **opts
|
936
|
+
attach_function :zhttp_server_options_test, [:bool], :void, **opts
|
937
|
+
|
938
|
+
require_relative 'ffi/zhttp_server_options'
|
939
|
+
|
940
|
+
attach_function :zhttp_request_new, [], :pointer, **opts
|
941
|
+
attach_function :zhttp_request_destroy, [:pointer], :void, **opts
|
942
|
+
attach_function :zhttp_request_recv, [:pointer, :pointer], :pointer, **opts
|
943
|
+
attach_function :zhttp_request_send, [:pointer, :pointer, :int, :pointer, :pointer], :int, **opts
|
944
|
+
attach_function :zhttp_request_method, [:pointer], :string, **opts
|
945
|
+
attach_function :zhttp_request_set_method, [:pointer, :string], :void, **opts
|
946
|
+
attach_function :zhttp_request_url, [:pointer], :string, **opts
|
947
|
+
attach_function :zhttp_request_set_url, [:pointer, :string], :void, **opts
|
948
|
+
attach_function :zhttp_request_content_type, [:pointer], :string, **opts
|
949
|
+
attach_function :zhttp_request_set_content_type, [:pointer, :string], :void, **opts
|
950
|
+
attach_function :zhttp_request_content_length, [:pointer], :size_t, **opts
|
951
|
+
attach_function :zhttp_request_headers, [:pointer], :pointer, **opts
|
952
|
+
attach_function :zhttp_request_content, [:pointer], :string, **opts
|
953
|
+
attach_function :zhttp_request_get_content, [:pointer], :pointer, **opts
|
954
|
+
attach_function :zhttp_request_set_content, [:pointer, :pointer], :void, **opts
|
955
|
+
attach_function :zhttp_request_set_content_const, [:pointer, :string], :void, **opts
|
956
|
+
attach_function :zhttp_request_reset_content, [:pointer], :void, **opts
|
957
|
+
attach_function :zhttp_request_match, [:pointer, :string, :string, :varargs], :bool, **opts
|
958
|
+
attach_function :zhttp_request_test, [:bool], :void, **opts
|
959
|
+
|
960
|
+
require_relative 'ffi/zhttp_request'
|
961
|
+
|
962
|
+
attach_function :zhttp_response_new, [], :pointer, **opts
|
963
|
+
attach_function :zhttp_response_destroy, [:pointer], :void, **opts
|
964
|
+
attach_function :zhttp_response_send, [:pointer, :pointer, :pointer], :int, **opts
|
965
|
+
attach_function :zhttp_response_recv, [:pointer, :pointer, :pointer, :pointer], :int, **opts
|
966
|
+
attach_function :zhttp_response_content_type, [:pointer], :string, **opts
|
967
|
+
attach_function :zhttp_response_set_content_type, [:pointer, :string], :void, **opts
|
968
|
+
attach_function :zhttp_response_status_code, [:pointer], :uint32, **opts
|
969
|
+
attach_function :zhttp_response_set_status_code, [:pointer, :uint32], :void, **opts
|
970
|
+
attach_function :zhttp_response_headers, [:pointer], :pointer, **opts
|
971
|
+
attach_function :zhttp_response_content_length, [:pointer], :size_t, **opts
|
972
|
+
attach_function :zhttp_response_content, [:pointer], :string, **opts
|
973
|
+
attach_function :zhttp_response_get_content, [:pointer], :pointer, **opts
|
974
|
+
attach_function :zhttp_response_set_content, [:pointer, :pointer], :void, **opts
|
975
|
+
attach_function :zhttp_response_set_content_const, [:pointer, :string], :void, **opts
|
976
|
+
attach_function :zhttp_response_reset_content, [:pointer], :void, **opts
|
977
|
+
attach_function :zhttp_response_test, [:bool], :void, **opts
|
978
|
+
|
979
|
+
require_relative 'ffi/zhttp_response'
|
980
|
+
|
981
|
+
attach_function :zosc_new, [:string], :pointer, **opts
|
982
|
+
attach_function :zosc_fromframe, [:pointer], :pointer, **opts
|
983
|
+
attach_function :zosc_frommem, [:pointer, :size_t], :pointer, **opts
|
984
|
+
attach_function :zosc_create, [:string, :string, :varargs], :pointer, **opts
|
985
|
+
attach_function :zosc_destroy, [:pointer], :void, **opts
|
986
|
+
attach_function :zosc_size, [:pointer], :size_t, **opts
|
987
|
+
attach_function :zosc_data, [:pointer], :pointer, **opts
|
988
|
+
attach_function :zosc_address, [:pointer], :string, **opts
|
989
|
+
attach_function :zosc_format, [:pointer], :string, **opts
|
990
|
+
attach_function :zosc_append, [:pointer, :string, :varargs], :int, **opts
|
991
|
+
attach_function :zosc_retr, [:pointer, :string, :varargs], :int, **opts
|
992
|
+
attach_function :zosc_dup, [:pointer], :pointer, **opts
|
993
|
+
attach_function :zosc_pack, [:pointer], :pointer, **opts
|
994
|
+
attach_function :zosc_packx, [:pointer], :pointer, **opts
|
995
|
+
attach_function :zosc_unpack, [:pointer], :pointer, **opts
|
996
|
+
attach_function :zosc_print, [:pointer], :void, **opts
|
997
|
+
attach_function :zosc_is, [:pointer], :bool, **opts
|
998
|
+
attach_function :zosc_first, [:pointer, :pointer], :pointer, **opts
|
999
|
+
attach_function :zosc_next, [:pointer, :pointer], :pointer, **opts
|
1000
|
+
attach_function :zosc_last, [:pointer, :pointer], :pointer, **opts
|
1001
|
+
attach_function :zosc_pop_int32, [:pointer, :pointer], :int, **opts
|
1002
|
+
attach_function :zosc_pop_int64, [:pointer, :pointer], :int, **opts
|
1003
|
+
attach_function :zosc_pop_float, [:pointer, :pointer], :int, **opts
|
1004
|
+
attach_function :zosc_pop_double, [:pointer, :pointer], :int, **opts
|
1005
|
+
attach_function :zosc_pop_string, [:pointer, :pointer], :int, **opts
|
1006
|
+
attach_function :zosc_pop_char, [:pointer, :pointer], :int, **opts
|
1007
|
+
attach_function :zosc_pop_bool, [:pointer, :pointer], :int, **opts
|
1008
|
+
attach_function :zosc_pop_midi, [:pointer, :pointer], :int, **opts
|
1009
|
+
attach_function :zosc_test, [:bool], :void, **opts
|
1010
|
+
|
1011
|
+
require_relative 'ffi/zosc'
|
867
1012
|
end
|
868
1013
|
end
|
869
1014
|
end
|