czmq-ffi-gen 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/lib/czmq-ffi-gen/czmq/ffi/version.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +14 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_client.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_request.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_response.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_server.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_server_options.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +12 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +4 -3
- data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +5 -5
- data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zosc.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +110 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +22 -1
- data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi.rb +8 -0
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0ce6ab97770996a32527f2bcc6ed0dfb902d3cb93c46509f8dcd3417e55b6be
|
4
|
+
data.tar.gz: 0031d85ed9d0952f27f0d76566ad090e435177ebd80c7271ab43e24555d3d0d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4507594fd520553e9db3d6d1f1a3ce9a168d6f2ebab5e0178809fc579419b0fa646e5c11f86756b05fb0f0402936999414c32c415b520728704028d9edab76b
|
7
|
+
data.tar.gz: c42860abb75439d4941c4fb6cebbb6148049f007415093dafb59eba8f5cdae1edb399ca511ffe2859ebfe86d5b77015d2e60c6950ab75b1195f737035050bc43
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
1.1.0.pre1 (10/17/2022)
|
2
|
+
-----
|
3
|
+
* updated CZMQ low-level binding
|
4
|
+
|
5
|
+
1.0.0 (01/08/2021)
|
6
|
+
-----
|
7
|
+
* modernized project
|
8
|
+
* updated CZMQ low-level binding
|
9
|
+
* removed CZMQ::FFI::LIBRARY_VERSION
|
10
|
+
|
1
11
|
0.16.1 (11/20/2019)
|
2
12
|
-----
|
3
13
|
* relax gem dependencies
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zactor_destroy ptr_ptr
|
40
41
|
end
|
@@ -54,8 +54,9 @@ module CZMQ
|
|
54
54
|
# @param ptr [::FFI::Pointer]
|
55
55
|
# @return [Proc]
|
56
56
|
def self.create_finalizer_for(ptr)
|
57
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
58
|
+
|
57
59
|
Proc.new do
|
58
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
59
60
|
ptr_ptr.write_pointer ptr
|
60
61
|
::CZMQ::FFI.zargs_destroy ptr_ptr
|
61
62
|
end
|
@@ -51,8 +51,9 @@ module CZMQ
|
|
51
51
|
# @param ptr [::FFI::Pointer]
|
52
52
|
# @return [Proc]
|
53
53
|
def self.create_finalizer_for(ptr)
|
54
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
55
|
+
|
54
56
|
Proc.new do
|
55
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
56
57
|
ptr_ptr.write_pointer ptr
|
57
58
|
::CZMQ::FFI.zarmour_destroy ptr_ptr
|
58
59
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zcert_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zcertstore_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zchunk_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zconfig_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zdigest_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zdir_destroy ptr_ptr
|
40
41
|
end
|
@@ -148,6 +149,18 @@ module CZMQ
|
|
148
149
|
result
|
149
150
|
end
|
150
151
|
|
152
|
+
# Returns a sorted list of char*; Each entry in the list is a path of a file
|
153
|
+
# or directory contained in self.
|
154
|
+
#
|
155
|
+
# @return [Zlist]
|
156
|
+
def list_paths()
|
157
|
+
raise DestroyedError unless @ptr
|
158
|
+
self_p = @ptr
|
159
|
+
result = ::CZMQ::FFI.zdir_list_paths(self_p)
|
160
|
+
result = Zlist.__new result, true
|
161
|
+
result
|
162
|
+
end
|
163
|
+
|
151
164
|
# Remove directory, optionally including all files that it contains, at
|
152
165
|
# all levels. If force is false, will only remove the directory if empty.
|
153
166
|
# If force is true, will remove all files and all subdirectories.
|
@@ -39,8 +39,9 @@ module CZMQ
|
|
39
39
|
# @param ptr [::FFI::Pointer]
|
40
40
|
# @return [Proc]
|
41
41
|
def self.create_finalizer_for(ptr)
|
42
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
43
|
+
|
42
44
|
Proc.new do
|
43
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
44
45
|
ptr_ptr.write_pointer ptr
|
45
46
|
::CZMQ::FFI.zdir_patch_destroy ptr_ptr
|
46
47
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zfile_destroy ptr_ptr
|
40
41
|
end
|
@@ -42,8 +42,9 @@ module CZMQ
|
|
42
42
|
# @param ptr [::FFI::Pointer]
|
43
43
|
# @return [Proc]
|
44
44
|
def self.create_finalizer_for(ptr)
|
45
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
46
|
+
|
45
47
|
Proc.new do
|
46
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
47
48
|
ptr_ptr.write_pointer ptr
|
48
49
|
::CZMQ::FFI.zframe_destroy ptr_ptr
|
49
50
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zhash_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zhashx_destroy ptr_ptr
|
40
41
|
end
|
@@ -35,8 +35,9 @@ module CZMQ
|
|
35
35
|
# @param ptr [::FFI::Pointer]
|
36
36
|
# @return [Proc]
|
37
37
|
def self.create_finalizer_for(ptr)
|
38
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
39
|
+
|
38
40
|
Proc.new do
|
39
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
40
41
|
ptr_ptr.write_pointer ptr
|
41
42
|
::CZMQ::FFI.zhttp_client_destroy ptr_ptr
|
42
43
|
end
|
@@ -35,8 +35,9 @@ module CZMQ
|
|
35
35
|
# @param ptr [::FFI::Pointer]
|
36
36
|
# @return [Proc]
|
37
37
|
def self.create_finalizer_for(ptr)
|
38
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
39
|
+
|
38
40
|
Proc.new do
|
39
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
40
41
|
ptr_ptr.write_pointer ptr
|
41
42
|
::CZMQ::FFI.zhttp_request_destroy ptr_ptr
|
42
43
|
end
|
@@ -35,8 +35,9 @@ module CZMQ
|
|
35
35
|
# @param ptr [::FFI::Pointer]
|
36
36
|
# @return [Proc]
|
37
37
|
def self.create_finalizer_for(ptr)
|
38
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
39
|
+
|
38
40
|
Proc.new do
|
39
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
40
41
|
ptr_ptr.write_pointer ptr
|
41
42
|
::CZMQ::FFI.zhttp_response_destroy ptr_ptr
|
42
43
|
end
|
@@ -47,8 +47,9 @@ module CZMQ
|
|
47
47
|
# @param ptr [::FFI::Pointer]
|
48
48
|
# @return [Proc]
|
49
49
|
def self.create_finalizer_for(ptr)
|
50
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
51
|
+
|
50
52
|
Proc.new do
|
51
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
52
53
|
ptr_ptr.write_pointer ptr
|
53
54
|
::CZMQ::FFI.zhttp_server_destroy ptr_ptr
|
54
55
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zhttp_server_options_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.ziflist_destroy ptr_ptr
|
40
41
|
end
|
@@ -160,6 +161,16 @@ module CZMQ
|
|
160
161
|
result
|
161
162
|
end
|
162
163
|
|
164
|
+
# Return the current interface MAC address as a printable string
|
165
|
+
#
|
166
|
+
# @return [String]
|
167
|
+
def mac()
|
168
|
+
raise DestroyedError unless @ptr
|
169
|
+
self_p = @ptr
|
170
|
+
result = ::CZMQ::FFI.ziflist_mac(self_p)
|
171
|
+
result
|
172
|
+
end
|
173
|
+
|
163
174
|
# Return the list of interfaces.
|
164
175
|
#
|
165
176
|
# @return [void]
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zlist_destroy ptr_ptr
|
40
41
|
end
|
@@ -188,7 +189,7 @@ module CZMQ
|
|
188
189
|
end
|
189
190
|
|
190
191
|
# Append an item to the end of the list, return 0 if OK or -1 if this
|
191
|
-
# failed for some reason (
|
192
|
+
# failed for some reason (invalid input). Note that if a duplicator has
|
192
193
|
# been set, this method will also duplicate the item.
|
193
194
|
#
|
194
195
|
# @param item [::FFI::Pointer, #to_ptr]
|
@@ -201,7 +202,7 @@ module CZMQ
|
|
201
202
|
end
|
202
203
|
|
203
204
|
# Push an item to the start of the list, return 0 if OK or -1 if this
|
204
|
-
# failed for some reason (
|
205
|
+
# failed for some reason (invalid input). Note that if a duplicator has
|
205
206
|
# been set, this method will also duplicate the item.
|
206
207
|
#
|
207
208
|
# @param item [::FFI::Pointer, #to_ptr]
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zlistx_destroy ptr_ptr
|
40
41
|
end
|
@@ -153,7 +154,7 @@ module CZMQ
|
|
153
154
|
|
154
155
|
# Add an item to the head of the list. Calls the item duplicator, if any,
|
155
156
|
# on the item. Resets cursor to list head. Returns an item handle on
|
156
|
-
# success
|
157
|
+
# success.
|
157
158
|
#
|
158
159
|
# @param item [::FFI::Pointer, #to_ptr]
|
159
160
|
# @return [::FFI::Pointer]
|
@@ -166,7 +167,7 @@ module CZMQ
|
|
166
167
|
|
167
168
|
# Add an item to the tail of the list. Calls the item duplicator, if any,
|
168
169
|
# on the item. Resets cursor to list head. Returns an item handle on
|
169
|
-
# success
|
170
|
+
# success.
|
170
171
|
#
|
171
172
|
# @param item [::FFI::Pointer, #to_ptr]
|
172
173
|
# @return [::FFI::Pointer]
|
@@ -390,8 +391,7 @@ module CZMQ
|
|
390
391
|
# duplicator, if any, on the item. If low_value is true, starts searching
|
391
392
|
# from the start of the list, otherwise searches from the end. Use the item
|
392
393
|
# comparator, if any, to find where to place the new node. Returns a handle
|
393
|
-
# to the new node
|
394
|
-
# list head.
|
394
|
+
# to the new node. Resets the cursor to the list head.
|
395
395
|
#
|
396
396
|
# @param item [::FFI::Pointer, #to_ptr]
|
397
397
|
# @param low_value [Boolean]
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zloop_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zmsg_destroy ptr_ptr
|
40
41
|
end
|
@@ -54,8 +54,9 @@ module CZMQ
|
|
54
54
|
# @param ptr [::FFI::Pointer]
|
55
55
|
# @return [Proc]
|
56
56
|
def self.create_finalizer_for(ptr)
|
57
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
58
|
+
|
57
59
|
Proc.new do
|
58
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
59
60
|
ptr_ptr.write_pointer ptr
|
60
61
|
::CZMQ::FFI.zosc_destroy ptr_ptr
|
61
62
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zpoller_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zproc_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zsock_destroy ptr_ptr
|
40
41
|
end
|
@@ -957,6 +958,114 @@ module CZMQ
|
|
957
958
|
result
|
958
959
|
end
|
959
960
|
|
961
|
+
# Get socket option `priority`.
|
962
|
+
# Available from libzmq 4.3.0.
|
963
|
+
#
|
964
|
+
# @return [Integer]
|
965
|
+
def priority()
|
966
|
+
raise DestroyedError unless @ptr
|
967
|
+
self_p = @ptr
|
968
|
+
result = ::CZMQ::FFI.zsock_priority(self_p)
|
969
|
+
result
|
970
|
+
end
|
971
|
+
|
972
|
+
# Get socket option `priority`.
|
973
|
+
# Available from libzmq 4.3.0.
|
974
|
+
#
|
975
|
+
# This is the polymorphic version of #priority.
|
976
|
+
#
|
977
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
978
|
+
# object reference to use this method on
|
979
|
+
# @return [Integer]
|
980
|
+
def self.priority(self_p)
|
981
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
982
|
+
result = ::CZMQ::FFI.zsock_priority(self_p)
|
983
|
+
result
|
984
|
+
end
|
985
|
+
|
986
|
+
# Set socket option `priority`.
|
987
|
+
# Available from libzmq 4.3.0.
|
988
|
+
#
|
989
|
+
# @param priority [Integer, #to_int, #to_i]
|
990
|
+
# @return [void]
|
991
|
+
def set_priority(priority)
|
992
|
+
raise DestroyedError unless @ptr
|
993
|
+
self_p = @ptr
|
994
|
+
priority = Integer(priority)
|
995
|
+
result = ::CZMQ::FFI.zsock_set_priority(self_p, priority)
|
996
|
+
result
|
997
|
+
end
|
998
|
+
|
999
|
+
# Set socket option `priority`.
|
1000
|
+
# Available from libzmq 4.3.0.
|
1001
|
+
#
|
1002
|
+
# This is the polymorphic version of #set_priority.
|
1003
|
+
#
|
1004
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1005
|
+
# object reference to use this method on
|
1006
|
+
# @param priority [Integer, #to_int, #to_i]
|
1007
|
+
# @return [void]
|
1008
|
+
def self.set_priority(self_p, priority)
|
1009
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1010
|
+
priority = Integer(priority)
|
1011
|
+
result = ::CZMQ::FFI.zsock_set_priority(self_p, priority)
|
1012
|
+
result
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# Get socket option `reconnect_stop`.
|
1016
|
+
# Available from libzmq 4.3.0.
|
1017
|
+
#
|
1018
|
+
# @return [Integer]
|
1019
|
+
def reconnect_stop()
|
1020
|
+
raise DestroyedError unless @ptr
|
1021
|
+
self_p = @ptr
|
1022
|
+
result = ::CZMQ::FFI.zsock_reconnect_stop(self_p)
|
1023
|
+
result
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# Get socket option `reconnect_stop`.
|
1027
|
+
# Available from libzmq 4.3.0.
|
1028
|
+
#
|
1029
|
+
# This is the polymorphic version of #reconnect_stop.
|
1030
|
+
#
|
1031
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1032
|
+
# object reference to use this method on
|
1033
|
+
# @return [Integer]
|
1034
|
+
def self.reconnect_stop(self_p)
|
1035
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1036
|
+
result = ::CZMQ::FFI.zsock_reconnect_stop(self_p)
|
1037
|
+
result
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# Set socket option `reconnect_stop`.
|
1041
|
+
# Available from libzmq 4.3.0.
|
1042
|
+
#
|
1043
|
+
# @param reconnect_stop [Integer, #to_int, #to_i]
|
1044
|
+
# @return [void]
|
1045
|
+
def set_reconnect_stop(reconnect_stop)
|
1046
|
+
raise DestroyedError unless @ptr
|
1047
|
+
self_p = @ptr
|
1048
|
+
reconnect_stop = Integer(reconnect_stop)
|
1049
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_stop(self_p, reconnect_stop)
|
1050
|
+
result
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
# Set socket option `reconnect_stop`.
|
1054
|
+
# Available from libzmq 4.3.0.
|
1055
|
+
#
|
1056
|
+
# This is the polymorphic version of #set_reconnect_stop.
|
1057
|
+
#
|
1058
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1059
|
+
# object reference to use this method on
|
1060
|
+
# @param reconnect_stop [Integer, #to_int, #to_i]
|
1061
|
+
# @return [void]
|
1062
|
+
def self.set_reconnect_stop(self_p, reconnect_stop)
|
1063
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1064
|
+
reconnect_stop = Integer(reconnect_stop)
|
1065
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_stop(self_p, reconnect_stop)
|
1066
|
+
result
|
1067
|
+
end
|
1068
|
+
|
960
1069
|
# Set socket option `only_first_subscribe`.
|
961
1070
|
# Available from libzmq 4.3.0.
|
962
1071
|
#
|
@@ -326,7 +326,7 @@ module CZMQ
|
|
326
326
|
|
327
327
|
# Format a string using printf formatting, returning a freshly allocated
|
328
328
|
# buffer. If there was insufficient memory, returns NULL. Free the returned
|
329
|
-
# string using zstr_free(). The hinted version allows to optimize by using
|
329
|
+
# string using zstr_free(). The hinted version allows one to optimize by using
|
330
330
|
# a larger starting buffer size (known to/assumed by the developer) and so
|
331
331
|
# avoid reallocations.
|
332
332
|
#
|
@@ -541,6 +541,27 @@ module CZMQ
|
|
541
541
|
result
|
542
542
|
end
|
543
543
|
|
544
|
+
# Configure the numeric prefix to each thread created for the internal
|
545
|
+
# context's thread pool. This option is only supported on Linux.
|
546
|
+
# If the environment variable ZSYS_THREAD_NAME_PREFIX_STR is defined, that
|
547
|
+
# provides the default.
|
548
|
+
# Note that this method is valid only before any socket is created.
|
549
|
+
#
|
550
|
+
# @param prefix [String, #to_s, nil]
|
551
|
+
# @return [void]
|
552
|
+
def self.set_thread_name_prefix_str(prefix)
|
553
|
+
result = ::CZMQ::FFI.zsys_set_thread_name_prefix_str(prefix)
|
554
|
+
result
|
555
|
+
end
|
556
|
+
|
557
|
+
# Return thread name prefix.
|
558
|
+
#
|
559
|
+
# @return [String]
|
560
|
+
def self.thread_name_prefix_str()
|
561
|
+
result = ::CZMQ::FFI.zsys_thread_name_prefix_str()
|
562
|
+
result
|
563
|
+
end
|
564
|
+
|
544
565
|
# Adds a specific CPU to the affinity list of the ZMQ context thread pool.
|
545
566
|
# This option is only supported on Linux.
|
546
567
|
# Note that this method is valid only before any socket is created.
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.ztimerset_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.ztrie_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zuuid_destroy ptr_ptr
|
40
41
|
end
|
@@ -233,6 +233,7 @@ module CZMQ
|
|
233
233
|
attach_function :zdir_cursize, [:pointer], :pointer, **opts
|
234
234
|
attach_function :zdir_count, [:pointer], :size_t, **opts
|
235
235
|
attach_function :zdir_list, [:pointer], :pointer, **opts
|
236
|
+
attach_function :zdir_list_paths, [:pointer], :pointer, **opts
|
236
237
|
attach_function :zdir_remove, [:pointer, :bool], :void, **opts
|
237
238
|
attach_function :zdir_diff, [:pointer, :pointer, :string], :pointer, **opts
|
238
239
|
attach_function :zdir_resync, [:pointer, :string], :pointer, **opts
|
@@ -383,6 +384,7 @@ module CZMQ
|
|
383
384
|
attach_function :ziflist_address, [:pointer], :string, **opts
|
384
385
|
attach_function :ziflist_broadcast, [:pointer], :string, **opts
|
385
386
|
attach_function :ziflist_netmask, [:pointer], :string, **opts
|
387
|
+
attach_function :ziflist_mac, [:pointer], :string, **opts
|
386
388
|
attach_function :ziflist_print, [:pointer], :void, **opts
|
387
389
|
attach_function :ziflist_new_ipv6, [], :pointer, **opts
|
388
390
|
attach_function :ziflist_reload_ipv6, [:pointer], :void, **opts
|
@@ -593,6 +595,10 @@ module CZMQ
|
|
593
595
|
attach_function :zsock_is, [:pointer], :bool, **opts
|
594
596
|
attach_function :zsock_resolve, [:pointer], :pointer, **opts
|
595
597
|
attach_function :zsock_has_in, [:pointer], :bool, **opts
|
598
|
+
attach_function :zsock_priority, [:pointer], :int, **opts
|
599
|
+
attach_function :zsock_set_priority, [:pointer, :int], :void, **opts
|
600
|
+
attach_function :zsock_reconnect_stop, [:pointer], :int, **opts
|
601
|
+
attach_function :zsock_set_reconnect_stop, [:pointer, :int], :void, **opts
|
596
602
|
attach_function :zsock_set_only_first_subscribe, [:pointer, :int], :void, **opts
|
597
603
|
attach_function :zsock_set_hello_msg, [:pointer, :pointer], :void, **opts
|
598
604
|
attach_function :zsock_set_disconnect_msg, [:pointer, :pointer], :void, **opts
|
@@ -823,6 +829,8 @@ module CZMQ
|
|
823
829
|
attach_function :zsys_set_thread_priority, [:int], :void, **opts
|
824
830
|
attach_function :zsys_set_thread_name_prefix, [:int], :void, **opts
|
825
831
|
attach_function :zsys_thread_name_prefix, [], :int, **opts
|
832
|
+
attach_function :zsys_set_thread_name_prefix_str, [:string], :void, **opts
|
833
|
+
attach_function :zsys_thread_name_prefix_str, [], :string, **opts
|
826
834
|
attach_function :zsys_thread_affinity_cpu_add, [:int], :void, **opts
|
827
835
|
attach_function :zsys_thread_affinity_cpu_remove, [:int], :void, **opts
|
828
836
|
attach_function :zsys_set_max_sockets, [:size_t], :void, **opts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: czmq-ffi-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Wenger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -138,14 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: 3.0.0
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.4.17
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Generated low-level Ruby binding for CZMQ
|