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

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -75,7 +75,7 @@ module CZMQ
75
75
 
76
76
  # Create a new callback of the following type:
77
77
  # Callback function for reactor socket activity
78
- # typedef int (zloop_reader_fn) (
78
+ # typedef int (zloop_reader_fn) (
79
79
  # zloop_t *loop, zsock_t *reader, void *arg);
80
80
  #
81
81
  # @note WARNING: If your Ruby code doesn't retain a reference to the
@@ -94,7 +94,7 @@ module CZMQ
94
94
 
95
95
  # Create a new callback of the following type:
96
96
  # Callback function for reactor events (low-level)
97
- # typedef int (zloop_fn) (
97
+ # typedef int (zloop_fn) (
98
98
  # zloop_t *loop, zmq_pollitem_t *item, void *arg);
99
99
  #
100
100
  # @note WARNING: If your Ruby code doesn't retain a reference to the
@@ -112,7 +112,7 @@ module CZMQ
112
112
 
113
113
  # Create a new callback of the following type:
114
114
  # Callback for reactor timer events
115
- # typedef int (zloop_timer_fn) (
115
+ # typedef int (zloop_timer_fn) (
116
116
  # zloop_t *loop, int timer_id, void *arg);
117
117
  #
118
118
  # @note WARNING: If your Ruby code doesn't retain a reference to the
@@ -145,10 +145,10 @@ module CZMQ
145
145
  result
146
146
  end
147
147
 
148
- # Register socket reader with the reactor. When the reader has messages,
148
+ # Register socket reader with the reactor. When the reader has messages,
149
149
  # the reactor will call the handler, passing the arg. Returns 0 if OK, -1
150
- # if there was an error. If you register the same socket more than once,
151
- # each instance will invoke its corresponding handler.
150
+ # if there was an error. If you register the same socket more than once,
151
+ # each instance will invoke its corresponding handler.
152
152
  #
153
153
  # @param sock [Zsock, #__ptr]
154
154
  # @param handler [::FFI::Pointer, #to_ptr]
@@ -163,7 +163,7 @@ module CZMQ
163
163
  end
164
164
 
165
165
  # Cancel a socket reader from the reactor. If multiple readers exist for
166
- # same socket, cancels ALL of them.
166
+ # same socket, cancels ALL of them.
167
167
  #
168
168
  # @param sock [Zsock, #__ptr]
169
169
  # @return [void]
@@ -176,7 +176,7 @@ module CZMQ
176
176
  end
177
177
 
178
178
  # Configure a registered reader to ignore errors. If you do not set this,
179
- # then readers that have errors are removed from the reactor silently.
179
+ # then readers that have errors are removed from the reactor silently.
180
180
  #
181
181
  # @param sock [Zsock, #__ptr]
182
182
  # @return [void]
@@ -188,11 +188,11 @@ module CZMQ
188
188
  result
189
189
  end
190
190
 
191
- # Register low-level libzmq pollitem with the reactor. When the pollitem
192
- # is ready, will call the handler, passing the arg. Returns 0 if OK, -1
191
+ # Register low-level libzmq pollitem with the reactor. When the pollitem
192
+ # is ready, will call the handler, passing the arg. Returns 0 if OK, -1
193
193
  # if there was an error. If you register the pollitem more than once, each
194
- # instance will invoke its corresponding handler. A pollitem with
195
- # socket=NULL and fd=0 means 'poll on FD zero'.
194
+ # instance will invoke its corresponding handler. A pollitem with
195
+ # socket=NULL and fd=0 means 'poll on FD zero'.
196
196
  #
197
197
  # @param item [::FFI::Pointer, #to_ptr]
198
198
  # @param handler [::FFI::Pointer, #to_ptr]
@@ -207,7 +207,7 @@ module CZMQ
207
207
 
208
208
  # Cancel a pollitem from the reactor, specified by socket or FD. If both
209
209
  # are specified, uses only socket. If multiple poll items exist for same
210
- # socket/FD, cancels ALL of them.
210
+ # socket/FD, cancels ALL of them.
211
211
  #
212
212
  # @param item [::FFI::Pointer, #to_ptr]
213
213
  # @return [void]
@@ -219,7 +219,7 @@ module CZMQ
219
219
  end
220
220
 
221
221
  # Configure a registered poller to ignore errors. If you do not set this,
222
- # then poller that have errors are removed from the reactor silently.
222
+ # then poller that have errors are removed from the reactor silently.
223
223
  #
224
224
  # @param item [::FFI::Pointer, #to_ptr]
225
225
  # @return [void]
@@ -231,9 +231,9 @@ module CZMQ
231
231
  end
232
232
 
233
233
  # Register a timer that expires after some delay and repeats some number of
234
- # times. At each expiry, will call the handler, passing the arg. To run a
234
+ # times. At each expiry, will call the handler, passing the arg. To run a
235
235
  # timer forever, use 0 times. Returns a timer_id that is used to cancel the
236
- # timer in the future. Returns -1 if there was an error.
236
+ # timer in the future. Returns -1 if there was an error.
237
237
  #
238
238
  # @param delay [Integer, #to_int, #to_i]
239
239
  # @param times [Integer, #to_int, #to_i]
@@ -250,7 +250,7 @@ module CZMQ
250
250
  end
251
251
 
252
252
  # Cancel a specific timer identified by a specific timer_id (as returned by
253
- # zloop_timer).
253
+ # zloop_timer).
254
254
  #
255
255
  # @param timer_id [Integer, #to_int, #to_i]
256
256
  # @return [Integer]
@@ -262,15 +262,15 @@ module CZMQ
262
262
  result
263
263
  end
264
264
 
265
- # Register a ticket timer. Ticket timers are very fast in the case where
266
- # you use a lot of timers (thousands), and frequently remove and add them.
267
- # The main use case is expiry timers for servers that handle many clients,
265
+ # Register a ticket timer. Ticket timers are very fast in the case where
266
+ # you use a lot of timers (thousands), and frequently remove and add them.
267
+ # The main use case is expiry timers for servers that handle many clients,
268
268
  # and which reset the expiry timer for each message received from a client.
269
- # Whereas normal timers perform poorly as the number of clients grows, the
270
- # cost of ticket timers is constant, no matter the number of clients. You
271
- # must set the ticket delay using zloop_set_ticket_delay before creating a
272
- # ticket. Returns a handle to the timer that you should use in
273
- # zloop_ticket_reset and zloop_ticket_delete.
269
+ # Whereas normal timers perform poorly as the number of clients grows, the
270
+ # cost of ticket timers is constant, no matter the number of clients. You
271
+ # must set the ticket delay using zloop_set_ticket_delay before creating a
272
+ # ticket. Returns a handle to the timer that you should use in
273
+ # zloop_ticket_reset and zloop_ticket_delete.
274
274
  #
275
275
  # @param handler [::FFI::Pointer, #to_ptr]
276
276
  # @param arg [::FFI::Pointer, #to_ptr]
@@ -283,7 +283,7 @@ module CZMQ
283
283
  end
284
284
 
285
285
  # Reset a ticket timer, which moves it to the end of the ticket list and
286
- # resets its execution time. This is a very fast operation.
286
+ # resets its execution time. This is a very fast operation.
287
287
  #
288
288
  # @param handle [::FFI::Pointer, #to_ptr]
289
289
  # @return [void]
@@ -294,9 +294,9 @@ module CZMQ
294
294
  result
295
295
  end
296
296
 
297
- # Delete a ticket timer. We do not actually delete the ticket here, as
297
+ # Delete a ticket timer. We do not actually delete the ticket here, as
298
298
  # other code may still refer to the ticket. We mark as deleted, and remove
299
- # later and safely.
299
+ # later and safely.
300
300
  #
301
301
  # @param handle [::FFI::Pointer, #to_ptr]
302
302
  # @return [void]
@@ -307,7 +307,7 @@ module CZMQ
307
307
  result
308
308
  end
309
309
 
310
- # Set the ticket delay, which applies to all tickets. If you lower the
310
+ # Set the ticket delay, which applies to all tickets. If you lower the
311
311
  # delay and there are already tickets created, the results are undefined.
312
312
  #
313
313
  # @param ticket_delay [Integer, #to_int, #to_i]
@@ -320,11 +320,11 @@ module CZMQ
320
320
  result
321
321
  end
322
322
 
323
- # Set hard limit on number of timers allowed. Setting more than a small
323
+ # Set hard limit on number of timers allowed. Setting more than a small
324
324
  # number of timers (10-100) can have a dramatic impact on the performance
325
- # of the reactor. For high-volume cases, use ticket timers. If the hard
326
- # limit is reached, the reactor stops creating new timers and logs an
327
- # error.
325
+ # of the reactor. For high-volume cases, use ticket timers. If the hard
326
+ # limit is reached, the reactor stops creating new timers and logs an
327
+ # error.
328
328
  #
329
329
  # @param max_timers [Integer, #to_int, #to_i]
330
330
  # @return [void]
@@ -337,7 +337,7 @@ module CZMQ
337
337
  end
338
338
 
339
339
  # Set verbose tracing of reactor on/off. The default verbose setting is
340
- # off (false).
340
+ # off (false).
341
341
  #
342
342
  # @param verbose [Boolean]
343
343
  # @return [void]
@@ -349,10 +349,10 @@ module CZMQ
349
349
  result
350
350
  end
351
351
 
352
- # By default the reactor stops if the process receives a SIGINT or SIGTERM
352
+ # By default the reactor stops if the process receives a SIGINT or SIGTERM
353
353
  # signal. This makes it impossible to shut-down message based architectures
354
354
  # like zactors. This method lets you switch off break handling. The default
355
- # nonstop setting is off (false).
355
+ # nonstop setting is off (false).
356
356
  #
357
357
  # @param nonstop [Boolean]
358
358
  # @return [void]
@@ -364,10 +364,10 @@ module CZMQ
364
364
  result
365
365
  end
366
366
 
367
- # Start the reactor. Takes control of the thread and returns when the 0MQ
367
+ # Start the reactor. Takes control of the thread and returns when the 0MQ
368
368
  # context is terminated or the process is interrupted, or any event handler
369
- # returns -1. Event handlers may register new sockets and timers, and
370
- # cancel sockets. Returns 0 if interrupted, -1 if canceled by a handler.
369
+ # returns -1. Event handlers may register new sockets and timers, and
370
+ # cancel sockets. Returns 0 if interrupted, -1 if canceled by a handler.
371
371
  #
372
372
  # @return [Integer]
373
373
  def start()
@@ -80,10 +80,10 @@ module CZMQ
80
80
  __new ptr
81
81
  end
82
82
 
83
- # Receive message from socket, returns zmsg_t object or NULL if the recv
84
- # was interrupted. Does a blocking recv. If you want to not block then use
83
+ # Receive message from socket, returns zmsg_t object or NULL if the recv
84
+ # was interrupted. Does a blocking recv. If you want to not block then use
85
85
  # the zloop class or zmsg_recv_nowait or zmq_poll to check for socket input
86
- # before receiving.
86
+ # before receiving.
87
87
  # @param source [::FFI::Pointer, #to_ptr]
88
88
  # @return [CZMQ::Zmsg]
89
89
  def self.recv(source)
@@ -92,7 +92,7 @@ module CZMQ
92
92
  end
93
93
 
94
94
  # Load/append an open file into new message, return the message.
95
- # Returns NULL if the message could not be loaded.
95
+ # Returns NULL if the message could not be loaded.
96
96
  # @param file [::FFI::Pointer, #to_ptr]
97
97
  # @return [CZMQ::Zmsg]
98
98
  def self.load(file)
@@ -101,8 +101,8 @@ module CZMQ
101
101
  end
102
102
 
103
103
  # Decodes a serialized message frame created by zmsg_encode () and returns
104
- # a new zmsg_t object. Returns NULL if the frame was badly formatted or
105
- # there was insufficient memory to work.
104
+ # a new zmsg_t object. Returns NULL if the frame was badly formatted or
105
+ # there was insufficient memory to work.
106
106
  # @param frame [Zframe, #__ptr]
107
107
  # @return [CZMQ::Zmsg]
108
108
  def self.decode(frame)
@@ -112,8 +112,8 @@ module CZMQ
112
112
  end
113
113
 
114
114
  # Generate a signal message encoding the given status. A signal is a short
115
- # message carrying a 1-byte success/failure code (by convention, 0 means
116
- # OK). Signals are encoded to be distinguishable from "normal" messages.
115
+ # message carrying a 1-byte success/failure code (by convention, 0 means
116
+ # OK). Signals are encoded to be distinguishable from "normal" messages.
117
117
  # @param status [Integer, #to_int, #to_i]
118
118
  # @return [CZMQ::Zmsg]
119
119
  def self.new_signal(status)
@@ -134,8 +134,8 @@ module CZMQ
134
134
 
135
135
  # Send message to destination socket, and destroy the message after sending
136
136
  # it successfully. If the message has no frames, sends nothing but destroys
137
- # the message anyhow. Nullifies the caller's reference to the message (as
138
- # it is a destructor).
137
+ # the message anyhow. Nullifies the caller's reference to the message (as
138
+ # it is a destructor).
139
139
  #
140
140
  # @param self_p [#__ptr_give_ref]
141
141
  # @param dest [::FFI::Pointer, #to_ptr]
@@ -146,12 +146,12 @@ module CZMQ
146
146
  result
147
147
  end
148
148
 
149
- # Send message to destination socket as part of a multipart sequence, and
150
- # destroy the message after sending it successfully. Note that after a
149
+ # Send message to destination socket as part of a multipart sequence, and
150
+ # destroy the message after sending it successfully. Note that after a
151
151
  # zmsg_sendm, you must call zmsg_send or another method that sends a final
152
- # message part. If the message has no frames, sends nothing but destroys
153
- # the message anyhow. Nullifies the caller's reference to the message (as
154
- # it is a destructor).
152
+ # message part. If the message has no frames, sends nothing but destroys
153
+ # the message anyhow. Nullifies the caller's reference to the message (as
154
+ # it is a destructor).
155
155
  #
156
156
  # @param self_p [#__ptr_give_ref]
157
157
  # @param dest [::FFI::Pointer, #to_ptr]
@@ -183,7 +183,7 @@ module CZMQ
183
183
  end
184
184
 
185
185
  # Return message routing ID, if the message came from a ZMQ_SERVER socket.
186
- # Else returns zero.
186
+ # Else returns zero.
187
187
  #
188
188
  # @return [Integer]
189
189
  def routing_id()
@@ -194,7 +194,7 @@ module CZMQ
194
194
  end
195
195
 
196
196
  # Set routing ID on message. This is used if/when the message is sent to a
197
- # ZMQ_SERVER socket.
197
+ # ZMQ_SERVER socket.
198
198
  #
199
199
  # @param routing_id [Integer, #to_int, #to_i]
200
200
  # @return [void]
@@ -206,10 +206,10 @@ module CZMQ
206
206
  result
207
207
  end
208
208
 
209
- # Push frame to the front of the message, i.e. before all other frames.
209
+ # Push frame to the front of the message, i.e. before all other frames.
210
210
  # Message takes ownership of frame, will destroy it when message is sent.
211
- # Returns 0 on success, -1 on error. Deprecates zmsg_push, which did not
212
- # nullify the caller's frame reference.
211
+ # Returns 0 on success, -1 on error. Deprecates zmsg_push, which did not
212
+ # nullify the caller's frame reference.
213
213
  #
214
214
  # @param frame_p [#__ptr_give_ref]
215
215
  # @return [Integer]
@@ -221,10 +221,10 @@ module CZMQ
221
221
  result
222
222
  end
223
223
 
224
- # Add frame to the end of the message, i.e. after all other frames.
224
+ # Add frame to the end of the message, i.e. after all other frames.
225
225
  # Message takes ownership of frame, will destroy it when message is sent.
226
- # Returns 0 on success. Deprecates zmsg_add, which did not nullify the
227
- # caller's frame reference.
226
+ # Returns 0 on success. Deprecates zmsg_add, which did not nullify the
227
+ # caller's frame reference.
228
228
  #
229
229
  # @param frame_p [#__ptr_give_ref]
230
230
  # @return [Integer]
@@ -248,7 +248,7 @@ module CZMQ
248
248
  end
249
249
 
250
250
  # Push block of memory to front of message, as a new frame.
251
- # Returns 0 on success, -1 on error.
251
+ # Returns 0 on success, -1 on error.
252
252
  #
253
253
  # @param data [::FFI::Pointer, #to_ptr]
254
254
  # @param size [Integer, #to_int, #to_i]
@@ -262,7 +262,7 @@ module CZMQ
262
262
  end
263
263
 
264
264
  # Add block of memory to the end of the message, as a new frame.
265
- # Returns 0 on success, -1 on error.
265
+ # Returns 0 on success, -1 on error.
266
266
  #
267
267
  # @param data [::FFI::Pointer, #to_ptr]
268
268
  # @param size [Integer, #to_int, #to_i]
@@ -276,7 +276,7 @@ module CZMQ
276
276
  end
277
277
 
278
278
  # Push string as new frame to front of message.
279
- # Returns 0 on success, -1 on error.
279
+ # Returns 0 on success, -1 on error.
280
280
  #
281
281
  # @param string [String, #to_s, nil]
282
282
  # @return [Integer]
@@ -288,7 +288,7 @@ module CZMQ
288
288
  end
289
289
 
290
290
  # Push string as new frame to end of message.
291
- # Returns 0 on success, -1 on error.
291
+ # Returns 0 on success, -1 on error.
292
292
  #
293
293
  # @param string [String, #to_s, nil]
294
294
  # @return [Integer]
@@ -300,7 +300,7 @@ module CZMQ
300
300
  end
301
301
 
302
302
  # Push formatted string as new frame to front of message.
303
- # Returns 0 on success, -1 on error.
303
+ # Returns 0 on success, -1 on error.
304
304
  #
305
305
  # @param format [String, #to_s, nil]
306
306
  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
@@ -313,7 +313,7 @@ module CZMQ
313
313
  end
314
314
 
315
315
  # Push formatted string as new frame to end of message.
316
- # Returns 0 on success, -1 on error.
316
+ # Returns 0 on success, -1 on error.
317
317
  #
318
318
  # @param format [String, #to_s, nil]
319
319
  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
@@ -326,7 +326,7 @@ module CZMQ
326
326
  end
327
327
 
328
328
  # Pop frame off front of message, return as fresh string. If there were
329
- # no more frames in the message, returns NULL.
329
+ # no more frames in the message, returns NULL.
330
330
  #
331
331
  # @return [::FFI::AutoPointer]
332
332
  def popstr()
@@ -337,9 +337,9 @@ module CZMQ
337
337
  result
338
338
  end
339
339
 
340
- # Push encoded message as a new frame. Message takes ownership of
340
+ # Push encoded message as a new frame. Message takes ownership of
341
341
  # submessage, so the original is destroyed in this call. Returns 0 on
342
- # success, -1 on error.
342
+ # success, -1 on error.
343
343
  #
344
344
  # @param msg_p [#__ptr_give_ref]
345
345
  # @return [Integer]
@@ -352,7 +352,7 @@ module CZMQ
352
352
  end
353
353
 
354
354
  # Remove first submessage from message, if any. Returns zmsg_t, or NULL if
355
- # decoding was not successful.
355
+ # decoding was not successful.
356
356
  #
357
357
  # @return [Zmsg]
358
358
  def popmsg()
@@ -376,7 +376,7 @@ module CZMQ
376
376
  end
377
377
 
378
378
  # Set cursor to first frame in message. Returns frame, or NULL, if the
379
- # message is empty. Use this to navigate the frames as a list.
379
+ # message is empty. Use this to navigate the frames as a list.
380
380
  #
381
381
  # @return [Zframe]
382
382
  def first()
@@ -388,7 +388,7 @@ module CZMQ
388
388
  end
389
389
 
390
390
  # Return the next frame. If there are no more frames, returns NULL. To move
391
- # to the first frame call zmsg_first(). Advances the cursor.
391
+ # to the first frame call zmsg_first(). Advances the cursor.
392
392
  #
393
393
  # @return [Zframe]
394
394
  def next()
@@ -410,11 +410,11 @@ module CZMQ
410
410
  result
411
411
  end
412
412
 
413
- # Save message to an open file, return 0 if OK, else -1. The message is
414
- # saved as a series of frames, each with length and data. Note that the
415
- # file is NOT guaranteed to be portable between operating systems, not
413
+ # Save message to an open file, return 0 if OK, else -1. The message is
414
+ # saved as a series of frames, each with length and data. Note that the
415
+ # file is NOT guaranteed to be portable between operating systems, not
416
416
  # versions of CZMQ. The file format is at present undocumented and liable
417
- # to arbitrary change.
417
+ # to arbitrary change.
418
418
  #
419
419
  # @param file [::FFI::Pointer, #to_ptr]
420
420
  # @return [Integer]
@@ -426,10 +426,10 @@ module CZMQ
426
426
  end
427
427
 
428
428
  # Serialize multipart message to a single message frame. Use this method
429
- # to send structured messages across transports that do not support
430
- # multipart data. Allocates and returns a new frame containing the
431
- # serialized message. To decode a serialized message frame, use
432
- # zmsg_decode ().
429
+ # to send structured messages across transports that do not support
430
+ # multipart data. Allocates and returns a new frame containing the
431
+ # serialized message. To decode a serialized message frame, use
432
+ # zmsg_decode ().
433
433
  #
434
434
  # @return [Zframe]
435
435
  def encode()
@@ -441,7 +441,7 @@ module CZMQ
441
441
  end
442
442
 
443
443
  # Create copy of message, as new message object. Returns a fresh zmsg_t
444
- # object. If message is null, or memory was exhausted, returns null.
444
+ # object. If message is null, or memory was exhausted, returns null.
445
445
  #
446
446
  # @return [Zmsg]
447
447
  def dup()
@@ -453,7 +453,7 @@ module CZMQ
453
453
  end
454
454
 
455
455
  # Send message to zsys log sink (may be stdout, or system facility as
456
- # configured by zsys_set_logstream).
456
+ # configured by zsys_set_logstream).
457
457
  #
458
458
  # @return [void]
459
459
  def print()
@@ -463,7 +463,7 @@ module CZMQ
463
463
  result
464
464
  end
465
465
 
466
- # Return true if the two messages have the same number of frames and each
466
+ # Return true if the two messages have the same number of frames and each
467
467
  # frame in the first message is identical to the corresponding frame in the
468
468
  # other message. As with zframe_eq, return false if either message is NULL.
469
469
  #