czmq-ffi-gen 0.13.0 → 0.14.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 +8 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +40 -7
- data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +259 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +3 -3
- data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +15 -6
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +25 -11
- data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +18 -18
- data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +6 -6
- data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +27 -17
- data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +4 -4
- data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +36 -36
- data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +27 -19
- data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +22 -21
- data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +54 -54
- data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +82 -80
- data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +30 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +30 -30
- data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +44 -44
- data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +39 -39
- data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +46 -46
- data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +16 -16
- data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +237 -34
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +1201 -973
- data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +58 -19
- data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +836 -0
- data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +6 -6
- data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +10 -10
- data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +4 -4
- data/lib/czmq-ffi-gen/czmq/ffi.rb +224 -698
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- data/lib/czmq-ffi-gen/vendor.rb +9 -1
- metadata +5 -3
@@ -132,7 +132,7 @@ module CZMQ
|
|
132
132
|
result
|
133
133
|
end
|
134
134
|
|
135
|
-
# Set timer interval. Returns 0 if OK, -1 on failure.
|
135
|
+
# Set timer interval. Returns 0 if OK, -1 on failure.
|
136
136
|
# This method is slow, canceling the timer and adding a new one yield better performance.
|
137
137
|
#
|
138
138
|
# @param timer_id [Integer, #to_int, #to_i]
|
@@ -148,7 +148,7 @@ module CZMQ
|
|
148
148
|
end
|
149
149
|
|
150
150
|
# Reset timer to start interval counting from current time. Returns 0 if OK, -1 on failure.
|
151
|
-
# This method is slow, canceling the timer and adding a new one yield better performance.
|
151
|
+
# This method is slow, canceling the timer and adding a new one yield better performance.
|
152
152
|
#
|
153
153
|
# @param timer_id [Integer, #to_int, #to_i]
|
154
154
|
# @return [Integer]
|
@@ -160,9 +160,9 @@ module CZMQ
|
|
160
160
|
result
|
161
161
|
end
|
162
162
|
|
163
|
-
# Return the time until the next interval.
|
163
|
+
# Return the time until the next interval.
|
164
164
|
# Should be used as timeout parameter for the zpoller wait method.
|
165
|
-
# The timeout is in msec.
|
165
|
+
# The timeout is in msec.
|
166
166
|
#
|
167
167
|
# @return [Integer]
|
168
168
|
def timeout()
|
@@ -173,8 +173,8 @@ module CZMQ
|
|
173
173
|
end
|
174
174
|
|
175
175
|
# Invoke callback function of all timers which their interval has elapsed.
|
176
|
-
# Should be call after zpoller wait method.
|
177
|
-
# Returns 0 if OK, -1 on failure.
|
176
|
+
# Should be call after zpoller wait method.
|
177
|
+
# Returns 0 if OK, -1 on failure.
|
178
178
|
#
|
179
179
|
# @return [Integer]
|
180
180
|
def execute()
|
@@ -76,7 +76,7 @@ module CZMQ
|
|
76
76
|
# Create a new callback of the following type:
|
77
77
|
# Callback function for ztrie_node to destroy node data.
|
78
78
|
# typedef void (ztrie_destroy_data_fn) (
|
79
|
-
# void **data);
|
79
|
+
# void **data);
|
80
80
|
#
|
81
81
|
# @note WARNING: If your Ruby code doesn't retain a reference to the
|
82
82
|
# FFI::Function object after passing it to a C function call,
|
@@ -107,9 +107,9 @@ module CZMQ
|
|
107
107
|
result
|
108
108
|
end
|
109
109
|
|
110
|
-
# Inserts a new route into the tree and attaches the data. Returns -1
|
110
|
+
# Inserts a new route into the tree and attaches the data. Returns -1
|
111
111
|
# if the route already exists, otherwise 0. This method takes ownership of
|
112
|
-
# the provided data if a destroy_data_fn is provided.
|
112
|
+
# the provided data if a destroy_data_fn is provided.
|
113
113
|
#
|
114
114
|
# @param path [String, #to_s, nil]
|
115
115
|
# @param data [::FFI::Pointer, #to_ptr]
|
@@ -123,8 +123,8 @@ module CZMQ
|
|
123
123
|
end
|
124
124
|
|
125
125
|
# Removes a route from the trie and destroys its data. Returns -1 if the
|
126
|
-
# route does not exists, otherwise 0.
|
127
|
-
# the start of the list call zlist_first (). Advances the cursor.
|
126
|
+
# route does not exists, otherwise 0.
|
127
|
+
# the start of the list call zlist_first (). Advances the cursor.
|
128
128
|
#
|
129
129
|
# @param path [String, #to_s, nil]
|
130
130
|
# @return [Integer]
|
@@ -147,8 +147,8 @@ module CZMQ
|
|
147
147
|
end
|
148
148
|
|
149
149
|
# Returns the data of a matched route from last ztrie_matches. If the path
|
150
|
-
# did not match, returns NULL. Do not delete the data as it's owned by
|
151
|
-
# ztrie.
|
150
|
+
# did not match, returns NULL. Do not delete the data as it's owned by
|
151
|
+
# ztrie.
|
152
152
|
#
|
153
153
|
# @return [::FFI::Pointer]
|
154
154
|
def hit_data()
|
@@ -168,9 +168,9 @@ module CZMQ
|
|
168
168
|
result
|
169
169
|
end
|
170
170
|
|
171
|
-
# Returns the parameters of a matched route with named regexes from last
|
171
|
+
# Returns the parameters of a matched route with named regexes from last
|
172
172
|
# ztrie_matches. If the path did not match or the route did not contain any
|
173
|
-
# named regexes, returns NULL.
|
173
|
+
# named regexes, returns NULL.
|
174
174
|
#
|
175
175
|
# @return [Zhashx]
|
176
176
|
def hit_parameters()
|
@@ -182,7 +182,7 @@ module CZMQ
|
|
182
182
|
end
|
183
183
|
|
184
184
|
# Returns the asterisk matched part of a route, if there has been no match
|
185
|
-
# or no asterisk match, returns NULL.
|
185
|
+
# or no asterisk match, returns NULL.
|
186
186
|
#
|
187
187
|
# @return [String]
|
188
188
|
def hit_asterisk_match()
|
@@ -110,7 +110,7 @@ module CZMQ
|
|
110
110
|
end
|
111
111
|
|
112
112
|
# Set UUID to new supplied string value skipping '-' and '{' '}'
|
113
|
-
# optional delimiters. Return 0 if OK, else returns -1.
|
113
|
+
# optional delimiters. Return 0 if OK, else returns -1.
|
114
114
|
#
|
115
115
|
# @param source [String, #to_s, nil]
|
116
116
|
# @return [Integer]
|
@@ -152,8 +152,8 @@ module CZMQ
|
|
152
152
|
end
|
153
153
|
|
154
154
|
# Return UUID in the canonical string format: 8-4-4-4-12, in lower
|
155
|
-
# case. Caller does not modify or free returned value. See
|
156
|
-
# http://en.wikipedia.org/wiki/Universally_unique_identifier
|
155
|
+
# case. Caller does not modify or free returned value. See
|
156
|
+
# http://en.wikipedia.org/wiki/Universally_unique_identifier
|
157
157
|
#
|
158
158
|
# @return [String]
|
159
159
|
def str_canonical()
|
@@ -197,7 +197,7 @@ module CZMQ
|
|
197
197
|
end
|
198
198
|
|
199
199
|
# Make copy of UUID object; if uuid is null, or memory was exhausted,
|
200
|
-
# returns null.
|
200
|
+
# returns null.
|
201
201
|
#
|
202
202
|
# @return [Zuuid]
|
203
203
|
def dup()
|