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
@@ -95,7 +95,8 @@ module CZMQ
|
|
95
95
|
end
|
96
96
|
|
97
97
|
# Add a reader to be polled. Returns 0 if OK, -1 on failure. The reader may
|
98
|
-
# be a libzmq void * socket, a zsock_t instance,
|
98
|
+
# be a libzmq void * socket, a zsock_t instance, a zactor_t instance or a
|
99
|
+
# file handle.
|
99
100
|
#
|
100
101
|
# @param reader [::FFI::Pointer, #to_ptr]
|
101
102
|
# @return [Integer]
|
@@ -134,14 +135,15 @@ module CZMQ
|
|
134
135
|
end
|
135
136
|
|
136
137
|
# Poll the registered readers for I/O, return first reader that has input.
|
137
|
-
# The reader will be a libzmq void * socket,
|
138
|
-
# instance as specified in zpoller_new/zpoller_add. The
|
139
|
-
# zero or greater, or -1 to wait indefinitely. Socket
|
140
|
-
# by their order in the poll list. If you need a
|
141
|
-
# level zmq_poll method directly. If the poll
|
142
|
-
# or the ZMQ context was destroyed, or the
|
143
|
-
# You can test the actual exit condition by
|
144
|
-
# zpoller_terminated (). The timeout is in
|
138
|
+
# The reader will be a libzmq void * socket, a zsock_t, a zactor_t
|
139
|
+
# instance or a file handle as specified in zpoller_new/zpoller_add. The
|
140
|
+
# timeout should be zero or greater, or -1 to wait indefinitely. Socket
|
141
|
+
# priority is defined by their order in the poll list. If you need a
|
142
|
+
# balanced poll, use the low level zmq_poll method directly. If the poll
|
143
|
+
# call was interrupted (SIGINT), or the ZMQ context was destroyed, or the
|
144
|
+
# timeout expired, returns NULL. You can test the actual exit condition by
|
145
|
+
# calling zpoller_expired () and zpoller_terminated (). The timeout is in
|
146
|
+
# msec.
|
145
147
|
#
|
146
148
|
# @param timeout [Integer, #to_int, #to_i]
|
147
149
|
# @return [::FFI::Pointer]
|
@@ -92,28 +92,53 @@ module CZMQ
|
|
92
92
|
result
|
93
93
|
end
|
94
94
|
|
95
|
+
# Return command line arguments (the first item is the executable) or
|
96
|
+
# NULL if not set.
|
97
|
+
#
|
98
|
+
# @return [Zlist]
|
99
|
+
def args()
|
100
|
+
raise DestroyedError unless @ptr
|
101
|
+
self_p = @ptr
|
102
|
+
result = ::CZMQ::FFI.zproc_args(self_p)
|
103
|
+
result = Zlist.__new result, true
|
104
|
+
result
|
105
|
+
end
|
106
|
+
|
95
107
|
# Setup the command line arguments, the first item must be an (absolute) filename
|
96
108
|
# to run.
|
97
109
|
#
|
98
|
-
# @param
|
110
|
+
# @param arguments [#__ptr_give_ref]
|
111
|
+
# @return [void]
|
112
|
+
def set_args(arguments)
|
113
|
+
raise DestroyedError unless @ptr
|
114
|
+
self_p = @ptr
|
115
|
+
arguments = arguments.__ptr_give_ref
|
116
|
+
result = ::CZMQ::FFI.zproc_set_args(self_p, arguments)
|
117
|
+
result
|
118
|
+
end
|
119
|
+
|
120
|
+
# Setup the command line arguments, the first item must be an (absolute) filename
|
121
|
+
# to run. Variadic function, must be NULL terminated.
|
122
|
+
#
|
123
|
+
# @param arguments [String, #to_s, nil]
|
124
|
+
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
99
125
|
# @return [void]
|
100
|
-
def
|
126
|
+
def set_argsx(arguments, *args)
|
101
127
|
raise DestroyedError unless @ptr
|
102
128
|
self_p = @ptr
|
103
|
-
|
104
|
-
result = ::CZMQ::FFI.zproc_set_args(self_p, args)
|
129
|
+
result = ::CZMQ::FFI.zproc_set_argsx(self_p, arguments, *args)
|
105
130
|
result
|
106
131
|
end
|
107
132
|
|
108
133
|
# Setup the environment variables for the process.
|
109
134
|
#
|
110
|
-
# @param
|
135
|
+
# @param arguments [#__ptr_give_ref]
|
111
136
|
# @return [void]
|
112
|
-
def set_env(
|
137
|
+
def set_env(arguments)
|
113
138
|
raise DestroyedError unless @ptr
|
114
139
|
self_p = @ptr
|
115
|
-
|
116
|
-
result = ::CZMQ::FFI.zproc_set_env(self_p,
|
140
|
+
arguments = arguments.__ptr_give_ref
|
141
|
+
result = ::CZMQ::FFI.zproc_set_env(self_p, arguments)
|
117
142
|
result
|
118
143
|
end
|
119
144
|
|
@@ -189,7 +214,7 @@ module CZMQ
|
|
189
214
|
result
|
190
215
|
end
|
191
216
|
|
192
|
-
# Starts the process.
|
217
|
+
# Starts the process, return just before execve/CreateProcess.
|
193
218
|
#
|
194
219
|
# @return [Integer]
|
195
220
|
def run()
|
@@ -229,19 +254,33 @@ module CZMQ
|
|
229
254
|
result
|
230
255
|
end
|
231
256
|
|
257
|
+
# The timeout should be zero or greater, or -1 to wait indefinitely.
|
232
258
|
# wait or poll process status, return return code
|
233
259
|
#
|
234
|
-
# @param
|
260
|
+
# @param timeout [Integer, #to_int, #to_i]
|
235
261
|
# @return [Integer]
|
236
|
-
def wait(
|
262
|
+
def wait(timeout)
|
237
263
|
raise DestroyedError unless @ptr
|
238
264
|
self_p = @ptr
|
239
|
-
|
240
|
-
result = ::CZMQ::FFI.zproc_wait(self_p,
|
265
|
+
timeout = Integer(timeout)
|
266
|
+
result = ::CZMQ::FFI.zproc_wait(self_p, timeout)
|
241
267
|
result
|
242
268
|
end
|
243
269
|
|
244
|
-
#
|
270
|
+
# send SIGTERM signal to the subprocess, wait for grace period and
|
271
|
+
# eventually send SIGKILL
|
272
|
+
#
|
273
|
+
# @param timeout [Integer, #to_int, #to_i]
|
274
|
+
# @return [void]
|
275
|
+
def shutdown(timeout)
|
276
|
+
raise DestroyedError unless @ptr
|
277
|
+
self_p = @ptr
|
278
|
+
timeout = Integer(timeout)
|
279
|
+
result = ::CZMQ::FFI.zproc_shutdown(self_p, timeout)
|
280
|
+
result
|
281
|
+
end
|
282
|
+
|
283
|
+
# return internal actor, useful for the polling if process died
|
245
284
|
#
|
246
285
|
# @return [::FFI::Pointer]
|
247
286
|
def actor()
|
@@ -275,209 +314,6 @@ module CZMQ
|
|
275
314
|
result
|
276
315
|
end
|
277
316
|
|
278
|
-
# Returns CZMQ version as a single 6-digit integer encoding the major
|
279
|
-
# version (x 10000), the minor version (x 100) and the patch.
|
280
|
-
#
|
281
|
-
# @return [Integer]
|
282
|
-
def self.czmq_version()
|
283
|
-
result = ::CZMQ::FFI.zproc_czmq_version()
|
284
|
-
result
|
285
|
-
end
|
286
|
-
|
287
|
-
# Returns true if the process received a SIGINT or SIGTERM signal.
|
288
|
-
# It is good practice to use this method to exit any infinite loop
|
289
|
-
# processing messages.
|
290
|
-
#
|
291
|
-
# @return [Boolean]
|
292
|
-
def self.interrupted()
|
293
|
-
result = ::CZMQ::FFI.zproc_interrupted()
|
294
|
-
result
|
295
|
-
end
|
296
|
-
|
297
|
-
# Returns true if the underlying libzmq supports CURVE security.
|
298
|
-
#
|
299
|
-
# @return [Boolean]
|
300
|
-
def self.has_curve()
|
301
|
-
result = ::CZMQ::FFI.zproc_has_curve()
|
302
|
-
result
|
303
|
-
end
|
304
|
-
|
305
|
-
# Return current host name, for use in public tcp:// endpoints.
|
306
|
-
# If the host name is not resolvable, returns NULL.
|
307
|
-
#
|
308
|
-
# @return [::FFI::AutoPointer]
|
309
|
-
def self.hostname()
|
310
|
-
result = ::CZMQ::FFI.zproc_hostname()
|
311
|
-
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
312
|
-
result
|
313
|
-
end
|
314
|
-
|
315
|
-
# Move the current process into the background. The precise effect
|
316
|
-
# depends on the operating system. On POSIX boxes, moves to a specified
|
317
|
-
# working directory (if specified), closes all file handles, reopens
|
318
|
-
# stdin, stdout, and stderr to the null device, and sets the process to
|
319
|
-
# ignore SIGHUP. On Windows, does nothing. Returns 0 if OK, -1 if there
|
320
|
-
# was an error.
|
321
|
-
#
|
322
|
-
# @param workdir [String, #to_s, nil]
|
323
|
-
# @return [void]
|
324
|
-
def self.daemonize(workdir)
|
325
|
-
result = ::CZMQ::FFI.zproc_daemonize(workdir)
|
326
|
-
result
|
327
|
-
end
|
328
|
-
|
329
|
-
# Drop the process ID into the lockfile, with exclusive lock, and
|
330
|
-
# switch the process to the specified group and/or user. Any of the
|
331
|
-
# arguments may be null, indicating a no-op. Returns 0 on success,
|
332
|
-
# -1 on failure. Note if you combine this with zsys_daemonize, run
|
333
|
-
# after, not before that method, or the lockfile will hold the wrong
|
334
|
-
# process ID.
|
335
|
-
#
|
336
|
-
# @param lockfile [String, #to_s, nil]
|
337
|
-
# @param group [String, #to_s, nil]
|
338
|
-
# @param user [String, #to_s, nil]
|
339
|
-
# @return [void]
|
340
|
-
def self.run_as(lockfile, group, user)
|
341
|
-
result = ::CZMQ::FFI.zproc_run_as(lockfile, group, user)
|
342
|
-
result
|
343
|
-
end
|
344
|
-
|
345
|
-
# Configure the number of I/O threads that ZeroMQ will use. A good
|
346
|
-
# rule of thumb is one thread per gigabit of traffic in or out. The
|
347
|
-
# default is 1, sufficient for most applications. If the environment
|
348
|
-
# variable ZSYS_IO_THREADS is defined, that provides the default.
|
349
|
-
# Note that this method is valid only before any socket is created.
|
350
|
-
#
|
351
|
-
# @param io_threads [Integer, #to_int, #to_i]
|
352
|
-
# @return [void]
|
353
|
-
def self.set_io_threads(io_threads)
|
354
|
-
io_threads = Integer(io_threads)
|
355
|
-
result = ::CZMQ::FFI.zproc_set_io_threads(io_threads)
|
356
|
-
result
|
357
|
-
end
|
358
|
-
|
359
|
-
# Configure the number of sockets that ZeroMQ will allow. The default
|
360
|
-
# is 1024. The actual limit depends on the system, and you can query it
|
361
|
-
# by using zsys_socket_limit (). A value of zero means "maximum".
|
362
|
-
# Note that this method is valid only before any socket is created.
|
363
|
-
#
|
364
|
-
# @param max_sockets [Integer, #to_int, #to_i]
|
365
|
-
# @return [void]
|
366
|
-
def self.set_max_sockets(max_sockets)
|
367
|
-
max_sockets = Integer(max_sockets)
|
368
|
-
result = ::CZMQ::FFI.zproc_set_max_sockets(max_sockets)
|
369
|
-
result
|
370
|
-
end
|
371
|
-
|
372
|
-
# Set network interface name to use for broadcasts, particularly zbeacon.
|
373
|
-
# This lets the interface be configured for test environments where required.
|
374
|
-
# For example, on Mac OS X, zbeacon cannot bind to 255.255.255.255 which is
|
375
|
-
# the default when there is no specified interface. If the environment
|
376
|
-
# variable ZSYS_INTERFACE is set, use that as the default interface name.
|
377
|
-
# Setting the interface to "*" means "use all available interfaces".
|
378
|
-
#
|
379
|
-
# @param value [String, #to_s, nil]
|
380
|
-
# @return [void]
|
381
|
-
def self.set_biface(value)
|
382
|
-
result = ::CZMQ::FFI.zproc_set_biface(value)
|
383
|
-
result
|
384
|
-
end
|
385
|
-
|
386
|
-
# Return network interface to use for broadcasts, or "" if none was set.
|
387
|
-
#
|
388
|
-
# @return [String]
|
389
|
-
def self.biface()
|
390
|
-
result = ::CZMQ::FFI.zproc_biface()
|
391
|
-
result
|
392
|
-
end
|
393
|
-
|
394
|
-
# Set log identity, which is a string that prefixes all log messages sent
|
395
|
-
# by this process. The log identity defaults to the environment variable
|
396
|
-
# ZSYS_LOGIDENT, if that is set.
|
397
|
-
#
|
398
|
-
# @param value [String, #to_s, nil]
|
399
|
-
# @return [void]
|
400
|
-
def self.set_log_ident(value)
|
401
|
-
result = ::CZMQ::FFI.zproc_set_log_ident(value)
|
402
|
-
result
|
403
|
-
end
|
404
|
-
|
405
|
-
# Sends log output to a PUB socket bound to the specified endpoint. To
|
406
|
-
# collect such log output, create a SUB socket, subscribe to the traffic
|
407
|
-
# you care about, and connect to the endpoint. Log traffic is sent as a
|
408
|
-
# single string frame, in the same format as when sent to stdout. The
|
409
|
-
# log system supports a single sender; multiple calls to this method will
|
410
|
-
# bind the same sender to multiple endpoints. To disable the sender, call
|
411
|
-
# this method with a null argument.
|
412
|
-
#
|
413
|
-
# @param endpoint [String, #to_s, nil]
|
414
|
-
# @return [void]
|
415
|
-
def self.set_log_sender(endpoint)
|
416
|
-
result = ::CZMQ::FFI.zproc_set_log_sender(endpoint)
|
417
|
-
result
|
418
|
-
end
|
419
|
-
|
420
|
-
# Enable or disable logging to the system facility (syslog on POSIX boxes,
|
421
|
-
# event log on Windows). By default this is disabled.
|
422
|
-
#
|
423
|
-
# @param logsystem [Boolean]
|
424
|
-
# @return [void]
|
425
|
-
def self.set_log_system(logsystem)
|
426
|
-
logsystem = !(0==logsystem||!logsystem) # boolean
|
427
|
-
result = ::CZMQ::FFI.zproc_set_log_system(logsystem)
|
428
|
-
result
|
429
|
-
end
|
430
|
-
|
431
|
-
# Log error condition - highest priority
|
432
|
-
#
|
433
|
-
# @param format [String, #to_s, nil]
|
434
|
-
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
435
|
-
# @return [void]
|
436
|
-
def self.log_error(format, *args)
|
437
|
-
result = ::CZMQ::FFI.zproc_log_error(format, *args)
|
438
|
-
result
|
439
|
-
end
|
440
|
-
|
441
|
-
# Log warning condition - high priority
|
442
|
-
#
|
443
|
-
# @param format [String, #to_s, nil]
|
444
|
-
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
445
|
-
# @return [void]
|
446
|
-
def self.log_warning(format, *args)
|
447
|
-
result = ::CZMQ::FFI.zproc_log_warning(format, *args)
|
448
|
-
result
|
449
|
-
end
|
450
|
-
|
451
|
-
# Log normal, but significant, condition - normal priority
|
452
|
-
#
|
453
|
-
# @param format [String, #to_s, nil]
|
454
|
-
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
455
|
-
# @return [void]
|
456
|
-
def self.log_notice(format, *args)
|
457
|
-
result = ::CZMQ::FFI.zproc_log_notice(format, *args)
|
458
|
-
result
|
459
|
-
end
|
460
|
-
|
461
|
-
# Log informational message - low priority
|
462
|
-
#
|
463
|
-
# @param format [String, #to_s, nil]
|
464
|
-
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
465
|
-
# @return [void]
|
466
|
-
def self.log_info(format, *args)
|
467
|
-
result = ::CZMQ::FFI.zproc_log_info(format, *args)
|
468
|
-
result
|
469
|
-
end
|
470
|
-
|
471
|
-
# Log debug-level message - lowest priority
|
472
|
-
#
|
473
|
-
# @param format [String, #to_s, nil]
|
474
|
-
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
475
|
-
# @return [void]
|
476
|
-
def self.log_debug(format, *args)
|
477
|
-
result = ::CZMQ::FFI.zproc_log_debug(format, *args)
|
478
|
-
result
|
479
|
-
end
|
480
|
-
|
481
317
|
# Self test of this class.
|
482
318
|
#
|
483
319
|
# @param verbose [Boolean]
|
@@ -233,6 +233,22 @@ module CZMQ
|
|
233
233
|
__new ptr
|
234
234
|
end
|
235
235
|
|
236
|
+
# Create a DGRAM (UDP) socket. Default action is bind.
|
237
|
+
# The endpoint is a string consisting of a
|
238
|
+
# 'transport'`://` followed by an 'address'. As this is
|
239
|
+
# a UDP socket the 'transport' has to be 'udp'. The
|
240
|
+
# 'address' specifies the ip address and port to
|
241
|
+
# bind to. For example: udp://127.0.0.1:1234
|
242
|
+
# Note: To send to an endpoint over UDP you have to
|
243
|
+
# send a message with the destination endpoint address
|
244
|
+
# as a first message!
|
245
|
+
# @param endpoint [String, #to_s, nil]
|
246
|
+
# @return [CZMQ::Zsock]
|
247
|
+
def self.new_dgram(endpoint)
|
248
|
+
ptr = ::CZMQ::FFI.zsock_new_dgram(endpoint)
|
249
|
+
__new ptr
|
250
|
+
end
|
251
|
+
|
236
252
|
# Destroy the socket. You must use this for any socket created via the
|
237
253
|
# zsock_new method.
|
238
254
|
#
|
@@ -369,6 +385,7 @@ module CZMQ
|
|
369
385
|
# c = zchunk_t *
|
370
386
|
# f = zframe_t *
|
371
387
|
# h = zhashx_t *
|
388
|
+
# l = zlistx_t * (DRAFT)
|
372
389
|
# U = zuuid_t *
|
373
390
|
# p = void * (sends the pointer value, only meaningful over inproc)
|
374
391
|
# m = zmsg_t * (sends all frames in the zmsg)
|
@@ -406,6 +423,7 @@ module CZMQ
|
|
406
423
|
# c = zchunk_t *
|
407
424
|
# f = zframe_t *
|
408
425
|
# h = zhashx_t *
|
426
|
+
# l = zlistx_t * (DRAFT)
|
409
427
|
# U = zuuid_t *
|
410
428
|
# p = void * (sends the pointer value, only meaningful over inproc)
|
411
429
|
# m = zmsg_t * (sends all frames in the zmsg)
|
@@ -475,8 +493,9 @@ module CZMQ
|
|
475
493
|
# f = zframe_t ** (creates zframe)
|
476
494
|
# U = zuuid_t * (creates a zuuid with the data)
|
477
495
|
# h = zhashx_t ** (creates zhashx)
|
496
|
+
# l = zlistx_t ** (creates zlistx) (DRAFT)
|
478
497
|
# p = void ** (stores pointer)
|
479
|
-
# m = zmsg_t ** (creates a zmsg with the
|
498
|
+
# m = zmsg_t ** (creates a zmsg with the remaining frames)
|
480
499
|
# z = null, asserts empty frame (0 arguments)
|
481
500
|
# u = uint * (stores unsigned integer, deprecated)
|
482
501
|
#
|
@@ -512,8 +531,9 @@ module CZMQ
|
|
512
531
|
# f = zframe_t ** (creates zframe)
|
513
532
|
# U = zuuid_t * (creates a zuuid with the data)
|
514
533
|
# h = zhashx_t ** (creates zhashx)
|
534
|
+
# l = zlistx_t ** (creates zlistx) (DRAFT)
|
515
535
|
# p = void ** (stores pointer)
|
516
|
-
# m = zmsg_t ** (creates a zmsg with the
|
536
|
+
# m = zmsg_t ** (creates a zmsg with the remaining frames)
|
517
537
|
# z = null, asserts empty frame (0 arguments)
|
518
538
|
# u = uint * (stores unsigned integer, deprecated)
|
519
539
|
#
|
@@ -914,6 +934,930 @@ module CZMQ
|
|
914
934
|
result
|
915
935
|
end
|
916
936
|
|
937
|
+
# Check whether the socket has available message to read.
|
938
|
+
#
|
939
|
+
# @return [Boolean]
|
940
|
+
def has_in()
|
941
|
+
raise DestroyedError unless @ptr
|
942
|
+
self_p = @ptr
|
943
|
+
result = ::CZMQ::FFI.zsock_has_in(self_p)
|
944
|
+
result
|
945
|
+
end
|
946
|
+
|
947
|
+
# Check whether the socket has available message to read.
|
948
|
+
#
|
949
|
+
# This is the polymorphic version of #has_in.
|
950
|
+
#
|
951
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
952
|
+
# object reference to use this method on
|
953
|
+
# @return [Boolean]
|
954
|
+
def self.has_in(self_p)
|
955
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
956
|
+
result = ::CZMQ::FFI.zsock_has_in(self_p)
|
957
|
+
result
|
958
|
+
end
|
959
|
+
|
960
|
+
# Set socket option `only_first_subscribe`.
|
961
|
+
# Available from libzmq 4.3.0.
|
962
|
+
#
|
963
|
+
# @param only_first_subscribe [Integer, #to_int, #to_i]
|
964
|
+
# @return [void]
|
965
|
+
def set_only_first_subscribe(only_first_subscribe)
|
966
|
+
raise DestroyedError unless @ptr
|
967
|
+
self_p = @ptr
|
968
|
+
only_first_subscribe = Integer(only_first_subscribe)
|
969
|
+
result = ::CZMQ::FFI.zsock_set_only_first_subscribe(self_p, only_first_subscribe)
|
970
|
+
result
|
971
|
+
end
|
972
|
+
|
973
|
+
# Set socket option `only_first_subscribe`.
|
974
|
+
# Available from libzmq 4.3.0.
|
975
|
+
#
|
976
|
+
# This is the polymorphic version of #set_only_first_subscribe.
|
977
|
+
#
|
978
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
979
|
+
# object reference to use this method on
|
980
|
+
# @param only_first_subscribe [Integer, #to_int, #to_i]
|
981
|
+
# @return [void]
|
982
|
+
def self.set_only_first_subscribe(self_p, only_first_subscribe)
|
983
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
984
|
+
only_first_subscribe = Integer(only_first_subscribe)
|
985
|
+
result = ::CZMQ::FFI.zsock_set_only_first_subscribe(self_p, only_first_subscribe)
|
986
|
+
result
|
987
|
+
end
|
988
|
+
|
989
|
+
# Set socket option `hello_msg`.
|
990
|
+
# Available from libzmq 4.3.0.
|
991
|
+
#
|
992
|
+
# @param hello_msg [Zframe, #__ptr]
|
993
|
+
# @return [void]
|
994
|
+
def set_hello_msg(hello_msg)
|
995
|
+
raise DestroyedError unless @ptr
|
996
|
+
self_p = @ptr
|
997
|
+
hello_msg = hello_msg.__ptr if hello_msg
|
998
|
+
result = ::CZMQ::FFI.zsock_set_hello_msg(self_p, hello_msg)
|
999
|
+
result
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# Set socket option `hello_msg`.
|
1003
|
+
# Available from libzmq 4.3.0.
|
1004
|
+
#
|
1005
|
+
# This is the polymorphic version of #set_hello_msg.
|
1006
|
+
#
|
1007
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1008
|
+
# object reference to use this method on
|
1009
|
+
# @param hello_msg [Zframe, #__ptr]
|
1010
|
+
# @return [void]
|
1011
|
+
def self.set_hello_msg(self_p, hello_msg)
|
1012
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1013
|
+
hello_msg = hello_msg.__ptr if hello_msg
|
1014
|
+
result = ::CZMQ::FFI.zsock_set_hello_msg(self_p, hello_msg)
|
1015
|
+
result
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# Set socket option `disconnect_msg`.
|
1019
|
+
# Available from libzmq 4.3.0.
|
1020
|
+
#
|
1021
|
+
# @param disconnect_msg [Zframe, #__ptr]
|
1022
|
+
# @return [void]
|
1023
|
+
def set_disconnect_msg(disconnect_msg)
|
1024
|
+
raise DestroyedError unless @ptr
|
1025
|
+
self_p = @ptr
|
1026
|
+
disconnect_msg = disconnect_msg.__ptr if disconnect_msg
|
1027
|
+
result = ::CZMQ::FFI.zsock_set_disconnect_msg(self_p, disconnect_msg)
|
1028
|
+
result
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
# Set socket option `disconnect_msg`.
|
1032
|
+
# Available from libzmq 4.3.0.
|
1033
|
+
#
|
1034
|
+
# This is the polymorphic version of #set_disconnect_msg.
|
1035
|
+
#
|
1036
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1037
|
+
# object reference to use this method on
|
1038
|
+
# @param disconnect_msg [Zframe, #__ptr]
|
1039
|
+
# @return [void]
|
1040
|
+
def self.set_disconnect_msg(self_p, disconnect_msg)
|
1041
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1042
|
+
disconnect_msg = disconnect_msg.__ptr if disconnect_msg
|
1043
|
+
result = ::CZMQ::FFI.zsock_set_disconnect_msg(self_p, disconnect_msg)
|
1044
|
+
result
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# Set socket option `wss_trust_system`.
|
1048
|
+
# Available from libzmq 4.3.0.
|
1049
|
+
#
|
1050
|
+
# @param wss_trust_system [Integer, #to_int, #to_i]
|
1051
|
+
# @return [void]
|
1052
|
+
def set_wss_trust_system(wss_trust_system)
|
1053
|
+
raise DestroyedError unless @ptr
|
1054
|
+
self_p = @ptr
|
1055
|
+
wss_trust_system = Integer(wss_trust_system)
|
1056
|
+
result = ::CZMQ::FFI.zsock_set_wss_trust_system(self_p, wss_trust_system)
|
1057
|
+
result
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
# Set socket option `wss_trust_system`.
|
1061
|
+
# Available from libzmq 4.3.0.
|
1062
|
+
#
|
1063
|
+
# This is the polymorphic version of #set_wss_trust_system.
|
1064
|
+
#
|
1065
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1066
|
+
# object reference to use this method on
|
1067
|
+
# @param wss_trust_system [Integer, #to_int, #to_i]
|
1068
|
+
# @return [void]
|
1069
|
+
def self.set_wss_trust_system(self_p, wss_trust_system)
|
1070
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1071
|
+
wss_trust_system = Integer(wss_trust_system)
|
1072
|
+
result = ::CZMQ::FFI.zsock_set_wss_trust_system(self_p, wss_trust_system)
|
1073
|
+
result
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# Set socket option `wss_hostname`.
|
1077
|
+
# Available from libzmq 4.3.0.
|
1078
|
+
#
|
1079
|
+
# @param wss_hostname [String, #to_s, nil]
|
1080
|
+
# @return [void]
|
1081
|
+
def set_wss_hostname(wss_hostname)
|
1082
|
+
raise DestroyedError unless @ptr
|
1083
|
+
self_p = @ptr
|
1084
|
+
result = ::CZMQ::FFI.zsock_set_wss_hostname(self_p, wss_hostname)
|
1085
|
+
result
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# Set socket option `wss_hostname`.
|
1089
|
+
# Available from libzmq 4.3.0.
|
1090
|
+
#
|
1091
|
+
# This is the polymorphic version of #set_wss_hostname.
|
1092
|
+
#
|
1093
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1094
|
+
# object reference to use this method on
|
1095
|
+
# @param wss_hostname [String, #to_s, nil]
|
1096
|
+
# @return [void]
|
1097
|
+
def self.set_wss_hostname(self_p, wss_hostname)
|
1098
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1099
|
+
result = ::CZMQ::FFI.zsock_set_wss_hostname(self_p, wss_hostname)
|
1100
|
+
result
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Set socket option `wss_trust_pem`.
|
1104
|
+
# Available from libzmq 4.3.0.
|
1105
|
+
#
|
1106
|
+
# @param wss_trust_pem [String, #to_s, nil]
|
1107
|
+
# @return [void]
|
1108
|
+
def set_wss_trust_pem(wss_trust_pem)
|
1109
|
+
raise DestroyedError unless @ptr
|
1110
|
+
self_p = @ptr
|
1111
|
+
result = ::CZMQ::FFI.zsock_set_wss_trust_pem(self_p, wss_trust_pem)
|
1112
|
+
result
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# Set socket option `wss_trust_pem`.
|
1116
|
+
# Available from libzmq 4.3.0.
|
1117
|
+
#
|
1118
|
+
# This is the polymorphic version of #set_wss_trust_pem.
|
1119
|
+
#
|
1120
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1121
|
+
# object reference to use this method on
|
1122
|
+
# @param wss_trust_pem [String, #to_s, nil]
|
1123
|
+
# @return [void]
|
1124
|
+
def self.set_wss_trust_pem(self_p, wss_trust_pem)
|
1125
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1126
|
+
result = ::CZMQ::FFI.zsock_set_wss_trust_pem(self_p, wss_trust_pem)
|
1127
|
+
result
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# Set socket option `wss_cert_pem`.
|
1131
|
+
# Available from libzmq 4.3.0.
|
1132
|
+
#
|
1133
|
+
# @param wss_cert_pem [String, #to_s, nil]
|
1134
|
+
# @return [void]
|
1135
|
+
def set_wss_cert_pem(wss_cert_pem)
|
1136
|
+
raise DestroyedError unless @ptr
|
1137
|
+
self_p = @ptr
|
1138
|
+
result = ::CZMQ::FFI.zsock_set_wss_cert_pem(self_p, wss_cert_pem)
|
1139
|
+
result
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
# Set socket option `wss_cert_pem`.
|
1143
|
+
# Available from libzmq 4.3.0.
|
1144
|
+
#
|
1145
|
+
# This is the polymorphic version of #set_wss_cert_pem.
|
1146
|
+
#
|
1147
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1148
|
+
# object reference to use this method on
|
1149
|
+
# @param wss_cert_pem [String, #to_s, nil]
|
1150
|
+
# @return [void]
|
1151
|
+
def self.set_wss_cert_pem(self_p, wss_cert_pem)
|
1152
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1153
|
+
result = ::CZMQ::FFI.zsock_set_wss_cert_pem(self_p, wss_cert_pem)
|
1154
|
+
result
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
# Set socket option `wss_key_pem`.
|
1158
|
+
# Available from libzmq 4.3.0.
|
1159
|
+
#
|
1160
|
+
# @param wss_key_pem [String, #to_s, nil]
|
1161
|
+
# @return [void]
|
1162
|
+
def set_wss_key_pem(wss_key_pem)
|
1163
|
+
raise DestroyedError unless @ptr
|
1164
|
+
self_p = @ptr
|
1165
|
+
result = ::CZMQ::FFI.zsock_set_wss_key_pem(self_p, wss_key_pem)
|
1166
|
+
result
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
# Set socket option `wss_key_pem`.
|
1170
|
+
# Available from libzmq 4.3.0.
|
1171
|
+
#
|
1172
|
+
# This is the polymorphic version of #set_wss_key_pem.
|
1173
|
+
#
|
1174
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1175
|
+
# object reference to use this method on
|
1176
|
+
# @param wss_key_pem [String, #to_s, nil]
|
1177
|
+
# @return [void]
|
1178
|
+
def self.set_wss_key_pem(self_p, wss_key_pem)
|
1179
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1180
|
+
result = ::CZMQ::FFI.zsock_set_wss_key_pem(self_p, wss_key_pem)
|
1181
|
+
result
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
# Get socket option `out_batch_size`.
|
1185
|
+
# Available from libzmq 4.3.0.
|
1186
|
+
#
|
1187
|
+
# @return [Integer]
|
1188
|
+
def out_batch_size()
|
1189
|
+
raise DestroyedError unless @ptr
|
1190
|
+
self_p = @ptr
|
1191
|
+
result = ::CZMQ::FFI.zsock_out_batch_size(self_p)
|
1192
|
+
result
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# Get socket option `out_batch_size`.
|
1196
|
+
# Available from libzmq 4.3.0.
|
1197
|
+
#
|
1198
|
+
# This is the polymorphic version of #out_batch_size.
|
1199
|
+
#
|
1200
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1201
|
+
# object reference to use this method on
|
1202
|
+
# @return [Integer]
|
1203
|
+
def self.out_batch_size(self_p)
|
1204
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1205
|
+
result = ::CZMQ::FFI.zsock_out_batch_size(self_p)
|
1206
|
+
result
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
# Set socket option `out_batch_size`.
|
1210
|
+
# Available from libzmq 4.3.0.
|
1211
|
+
#
|
1212
|
+
# @param out_batch_size [Integer, #to_int, #to_i]
|
1213
|
+
# @return [void]
|
1214
|
+
def set_out_batch_size(out_batch_size)
|
1215
|
+
raise DestroyedError unless @ptr
|
1216
|
+
self_p = @ptr
|
1217
|
+
out_batch_size = Integer(out_batch_size)
|
1218
|
+
result = ::CZMQ::FFI.zsock_set_out_batch_size(self_p, out_batch_size)
|
1219
|
+
result
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
# Set socket option `out_batch_size`.
|
1223
|
+
# Available from libzmq 4.3.0.
|
1224
|
+
#
|
1225
|
+
# This is the polymorphic version of #set_out_batch_size.
|
1226
|
+
#
|
1227
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1228
|
+
# object reference to use this method on
|
1229
|
+
# @param out_batch_size [Integer, #to_int, #to_i]
|
1230
|
+
# @return [void]
|
1231
|
+
def self.set_out_batch_size(self_p, out_batch_size)
|
1232
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1233
|
+
out_batch_size = Integer(out_batch_size)
|
1234
|
+
result = ::CZMQ::FFI.zsock_set_out_batch_size(self_p, out_batch_size)
|
1235
|
+
result
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
# Get socket option `in_batch_size`.
|
1239
|
+
# Available from libzmq 4.3.0.
|
1240
|
+
#
|
1241
|
+
# @return [Integer]
|
1242
|
+
def in_batch_size()
|
1243
|
+
raise DestroyedError unless @ptr
|
1244
|
+
self_p = @ptr
|
1245
|
+
result = ::CZMQ::FFI.zsock_in_batch_size(self_p)
|
1246
|
+
result
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
# Get socket option `in_batch_size`.
|
1250
|
+
# Available from libzmq 4.3.0.
|
1251
|
+
#
|
1252
|
+
# This is the polymorphic version of #in_batch_size.
|
1253
|
+
#
|
1254
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1255
|
+
# object reference to use this method on
|
1256
|
+
# @return [Integer]
|
1257
|
+
def self.in_batch_size(self_p)
|
1258
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1259
|
+
result = ::CZMQ::FFI.zsock_in_batch_size(self_p)
|
1260
|
+
result
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
# Set socket option `in_batch_size`.
|
1264
|
+
# Available from libzmq 4.3.0.
|
1265
|
+
#
|
1266
|
+
# @param in_batch_size [Integer, #to_int, #to_i]
|
1267
|
+
# @return [void]
|
1268
|
+
def set_in_batch_size(in_batch_size)
|
1269
|
+
raise DestroyedError unless @ptr
|
1270
|
+
self_p = @ptr
|
1271
|
+
in_batch_size = Integer(in_batch_size)
|
1272
|
+
result = ::CZMQ::FFI.zsock_set_in_batch_size(self_p, in_batch_size)
|
1273
|
+
result
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
# Set socket option `in_batch_size`.
|
1277
|
+
# Available from libzmq 4.3.0.
|
1278
|
+
#
|
1279
|
+
# This is the polymorphic version of #set_in_batch_size.
|
1280
|
+
#
|
1281
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1282
|
+
# object reference to use this method on
|
1283
|
+
# @param in_batch_size [Integer, #to_int, #to_i]
|
1284
|
+
# @return [void]
|
1285
|
+
def self.set_in_batch_size(self_p, in_batch_size)
|
1286
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1287
|
+
in_batch_size = Integer(in_batch_size)
|
1288
|
+
result = ::CZMQ::FFI.zsock_set_in_batch_size(self_p, in_batch_size)
|
1289
|
+
result
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
# Get socket option `socks_password`.
|
1293
|
+
# Available from libzmq 4.3.0.
|
1294
|
+
#
|
1295
|
+
# @return [::FFI::AutoPointer]
|
1296
|
+
def socks_password()
|
1297
|
+
raise DestroyedError unless @ptr
|
1298
|
+
self_p = @ptr
|
1299
|
+
result = ::CZMQ::FFI.zsock_socks_password(self_p)
|
1300
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1301
|
+
result
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
# Get socket option `socks_password`.
|
1305
|
+
# Available from libzmq 4.3.0.
|
1306
|
+
#
|
1307
|
+
# This is the polymorphic version of #socks_password.
|
1308
|
+
#
|
1309
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1310
|
+
# object reference to use this method on
|
1311
|
+
# @return [::FFI::AutoPointer]
|
1312
|
+
def self.socks_password(self_p)
|
1313
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1314
|
+
result = ::CZMQ::FFI.zsock_socks_password(self_p)
|
1315
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1316
|
+
result
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
# Set socket option `socks_password`.
|
1320
|
+
# Available from libzmq 4.3.0.
|
1321
|
+
#
|
1322
|
+
# @param socks_password [String, #to_s, nil]
|
1323
|
+
# @return [void]
|
1324
|
+
def set_socks_password(socks_password)
|
1325
|
+
raise DestroyedError unless @ptr
|
1326
|
+
self_p = @ptr
|
1327
|
+
result = ::CZMQ::FFI.zsock_set_socks_password(self_p, socks_password)
|
1328
|
+
result
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# Set socket option `socks_password`.
|
1332
|
+
# Available from libzmq 4.3.0.
|
1333
|
+
#
|
1334
|
+
# This is the polymorphic version of #set_socks_password.
|
1335
|
+
#
|
1336
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1337
|
+
# object reference to use this method on
|
1338
|
+
# @param socks_password [String, #to_s, nil]
|
1339
|
+
# @return [void]
|
1340
|
+
def self.set_socks_password(self_p, socks_password)
|
1341
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1342
|
+
result = ::CZMQ::FFI.zsock_set_socks_password(self_p, socks_password)
|
1343
|
+
result
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
# Get socket option `socks_username`.
|
1347
|
+
# Available from libzmq 4.3.0.
|
1348
|
+
#
|
1349
|
+
# @return [::FFI::AutoPointer]
|
1350
|
+
def socks_username()
|
1351
|
+
raise DestroyedError unless @ptr
|
1352
|
+
self_p = @ptr
|
1353
|
+
result = ::CZMQ::FFI.zsock_socks_username(self_p)
|
1354
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1355
|
+
result
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
# Get socket option `socks_username`.
|
1359
|
+
# Available from libzmq 4.3.0.
|
1360
|
+
#
|
1361
|
+
# This is the polymorphic version of #socks_username.
|
1362
|
+
#
|
1363
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1364
|
+
# object reference to use this method on
|
1365
|
+
# @return [::FFI::AutoPointer]
|
1366
|
+
def self.socks_username(self_p)
|
1367
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1368
|
+
result = ::CZMQ::FFI.zsock_socks_username(self_p)
|
1369
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1370
|
+
result
|
1371
|
+
end
|
1372
|
+
|
1373
|
+
# Set socket option `socks_username`.
|
1374
|
+
# Available from libzmq 4.3.0.
|
1375
|
+
#
|
1376
|
+
# @param socks_username [String, #to_s, nil]
|
1377
|
+
# @return [void]
|
1378
|
+
def set_socks_username(socks_username)
|
1379
|
+
raise DestroyedError unless @ptr
|
1380
|
+
self_p = @ptr
|
1381
|
+
result = ::CZMQ::FFI.zsock_set_socks_username(self_p, socks_username)
|
1382
|
+
result
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
# Set socket option `socks_username`.
|
1386
|
+
# Available from libzmq 4.3.0.
|
1387
|
+
#
|
1388
|
+
# This is the polymorphic version of #set_socks_username.
|
1389
|
+
#
|
1390
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1391
|
+
# object reference to use this method on
|
1392
|
+
# @param socks_username [String, #to_s, nil]
|
1393
|
+
# @return [void]
|
1394
|
+
def self.set_socks_username(self_p, socks_username)
|
1395
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1396
|
+
result = ::CZMQ::FFI.zsock_set_socks_username(self_p, socks_username)
|
1397
|
+
result
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# Set socket option `xpub_manual_last_value`.
|
1401
|
+
# Available from libzmq 4.3.0.
|
1402
|
+
#
|
1403
|
+
# @param xpub_manual_last_value [Integer, #to_int, #to_i]
|
1404
|
+
# @return [void]
|
1405
|
+
def set_xpub_manual_last_value(xpub_manual_last_value)
|
1406
|
+
raise DestroyedError unless @ptr
|
1407
|
+
self_p = @ptr
|
1408
|
+
xpub_manual_last_value = Integer(xpub_manual_last_value)
|
1409
|
+
result = ::CZMQ::FFI.zsock_set_xpub_manual_last_value(self_p, xpub_manual_last_value)
|
1410
|
+
result
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
# Set socket option `xpub_manual_last_value`.
|
1414
|
+
# Available from libzmq 4.3.0.
|
1415
|
+
#
|
1416
|
+
# This is the polymorphic version of #set_xpub_manual_last_value.
|
1417
|
+
#
|
1418
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1419
|
+
# object reference to use this method on
|
1420
|
+
# @param xpub_manual_last_value [Integer, #to_int, #to_i]
|
1421
|
+
# @return [void]
|
1422
|
+
def self.set_xpub_manual_last_value(self_p, xpub_manual_last_value)
|
1423
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1424
|
+
xpub_manual_last_value = Integer(xpub_manual_last_value)
|
1425
|
+
result = ::CZMQ::FFI.zsock_set_xpub_manual_last_value(self_p, xpub_manual_last_value)
|
1426
|
+
result
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
# Get socket option `router_notify`.
|
1430
|
+
# Available from libzmq 4.3.0.
|
1431
|
+
#
|
1432
|
+
# @return [Integer]
|
1433
|
+
def router_notify()
|
1434
|
+
raise DestroyedError unless @ptr
|
1435
|
+
self_p = @ptr
|
1436
|
+
result = ::CZMQ::FFI.zsock_router_notify(self_p)
|
1437
|
+
result
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
# Get socket option `router_notify`.
|
1441
|
+
# Available from libzmq 4.3.0.
|
1442
|
+
#
|
1443
|
+
# This is the polymorphic version of #router_notify.
|
1444
|
+
#
|
1445
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1446
|
+
# object reference to use this method on
|
1447
|
+
# @return [Integer]
|
1448
|
+
def self.router_notify(self_p)
|
1449
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1450
|
+
result = ::CZMQ::FFI.zsock_router_notify(self_p)
|
1451
|
+
result
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
# Set socket option `router_notify`.
|
1455
|
+
# Available from libzmq 4.3.0.
|
1456
|
+
#
|
1457
|
+
# @param router_notify [Integer, #to_int, #to_i]
|
1458
|
+
# @return [void]
|
1459
|
+
def set_router_notify(router_notify)
|
1460
|
+
raise DestroyedError unless @ptr
|
1461
|
+
self_p = @ptr
|
1462
|
+
router_notify = Integer(router_notify)
|
1463
|
+
result = ::CZMQ::FFI.zsock_set_router_notify(self_p, router_notify)
|
1464
|
+
result
|
1465
|
+
end
|
1466
|
+
|
1467
|
+
# Set socket option `router_notify`.
|
1468
|
+
# Available from libzmq 4.3.0.
|
1469
|
+
#
|
1470
|
+
# This is the polymorphic version of #set_router_notify.
|
1471
|
+
#
|
1472
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1473
|
+
# object reference to use this method on
|
1474
|
+
# @param router_notify [Integer, #to_int, #to_i]
|
1475
|
+
# @return [void]
|
1476
|
+
def self.set_router_notify(self_p, router_notify)
|
1477
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1478
|
+
router_notify = Integer(router_notify)
|
1479
|
+
result = ::CZMQ::FFI.zsock_set_router_notify(self_p, router_notify)
|
1480
|
+
result
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
# Get socket option `multicast_loop`.
|
1484
|
+
# Available from libzmq 4.3.0.
|
1485
|
+
#
|
1486
|
+
# @return [Integer]
|
1487
|
+
def multicast_loop()
|
1488
|
+
raise DestroyedError unless @ptr
|
1489
|
+
self_p = @ptr
|
1490
|
+
result = ::CZMQ::FFI.zsock_multicast_loop(self_p)
|
1491
|
+
result
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
# Get socket option `multicast_loop`.
|
1495
|
+
# Available from libzmq 4.3.0.
|
1496
|
+
#
|
1497
|
+
# This is the polymorphic version of #multicast_loop.
|
1498
|
+
#
|
1499
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1500
|
+
# object reference to use this method on
|
1501
|
+
# @return [Integer]
|
1502
|
+
def self.multicast_loop(self_p)
|
1503
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1504
|
+
result = ::CZMQ::FFI.zsock_multicast_loop(self_p)
|
1505
|
+
result
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
# Set socket option `multicast_loop`.
|
1509
|
+
# Available from libzmq 4.3.0.
|
1510
|
+
#
|
1511
|
+
# @param multicast_loop [Integer, #to_int, #to_i]
|
1512
|
+
# @return [void]
|
1513
|
+
def set_multicast_loop(multicast_loop)
|
1514
|
+
raise DestroyedError unless @ptr
|
1515
|
+
self_p = @ptr
|
1516
|
+
multicast_loop = Integer(multicast_loop)
|
1517
|
+
result = ::CZMQ::FFI.zsock_set_multicast_loop(self_p, multicast_loop)
|
1518
|
+
result
|
1519
|
+
end
|
1520
|
+
|
1521
|
+
# Set socket option `multicast_loop`.
|
1522
|
+
# Available from libzmq 4.3.0.
|
1523
|
+
#
|
1524
|
+
# This is the polymorphic version of #set_multicast_loop.
|
1525
|
+
#
|
1526
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1527
|
+
# object reference to use this method on
|
1528
|
+
# @param multicast_loop [Integer, #to_int, #to_i]
|
1529
|
+
# @return [void]
|
1530
|
+
def self.set_multicast_loop(self_p, multicast_loop)
|
1531
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1532
|
+
multicast_loop = Integer(multicast_loop)
|
1533
|
+
result = ::CZMQ::FFI.zsock_set_multicast_loop(self_p, multicast_loop)
|
1534
|
+
result
|
1535
|
+
end
|
1536
|
+
|
1537
|
+
# Get socket option `metadata`.
|
1538
|
+
# Available from libzmq 4.3.0.
|
1539
|
+
#
|
1540
|
+
# @return [::FFI::AutoPointer]
|
1541
|
+
def metadata()
|
1542
|
+
raise DestroyedError unless @ptr
|
1543
|
+
self_p = @ptr
|
1544
|
+
result = ::CZMQ::FFI.zsock_metadata(self_p)
|
1545
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1546
|
+
result
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
# Get socket option `metadata`.
|
1550
|
+
# Available from libzmq 4.3.0.
|
1551
|
+
#
|
1552
|
+
# This is the polymorphic version of #metadata.
|
1553
|
+
#
|
1554
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1555
|
+
# object reference to use this method on
|
1556
|
+
# @return [::FFI::AutoPointer]
|
1557
|
+
def self.metadata(self_p)
|
1558
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1559
|
+
result = ::CZMQ::FFI.zsock_metadata(self_p)
|
1560
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1561
|
+
result
|
1562
|
+
end
|
1563
|
+
|
1564
|
+
# Set socket option `metadata`.
|
1565
|
+
# Available from libzmq 4.3.0.
|
1566
|
+
#
|
1567
|
+
# @param metadata [String, #to_s, nil]
|
1568
|
+
# @return [void]
|
1569
|
+
def set_metadata(metadata)
|
1570
|
+
raise DestroyedError unless @ptr
|
1571
|
+
self_p = @ptr
|
1572
|
+
result = ::CZMQ::FFI.zsock_set_metadata(self_p, metadata)
|
1573
|
+
result
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
# Set socket option `metadata`.
|
1577
|
+
# Available from libzmq 4.3.0.
|
1578
|
+
#
|
1579
|
+
# This is the polymorphic version of #set_metadata.
|
1580
|
+
#
|
1581
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1582
|
+
# object reference to use this method on
|
1583
|
+
# @param metadata [String, #to_s, nil]
|
1584
|
+
# @return [void]
|
1585
|
+
def self.set_metadata(self_p, metadata)
|
1586
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1587
|
+
result = ::CZMQ::FFI.zsock_set_metadata(self_p, metadata)
|
1588
|
+
result
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
# Get socket option `loopback_fastpath`.
|
1592
|
+
# Available from libzmq 4.3.0.
|
1593
|
+
#
|
1594
|
+
# @return [Integer]
|
1595
|
+
def loopback_fastpath()
|
1596
|
+
raise DestroyedError unless @ptr
|
1597
|
+
self_p = @ptr
|
1598
|
+
result = ::CZMQ::FFI.zsock_loopback_fastpath(self_p)
|
1599
|
+
result
|
1600
|
+
end
|
1601
|
+
|
1602
|
+
# Get socket option `loopback_fastpath`.
|
1603
|
+
# Available from libzmq 4.3.0.
|
1604
|
+
#
|
1605
|
+
# This is the polymorphic version of #loopback_fastpath.
|
1606
|
+
#
|
1607
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1608
|
+
# object reference to use this method on
|
1609
|
+
# @return [Integer]
|
1610
|
+
def self.loopback_fastpath(self_p)
|
1611
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1612
|
+
result = ::CZMQ::FFI.zsock_loopback_fastpath(self_p)
|
1613
|
+
result
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# Set socket option `loopback_fastpath`.
|
1617
|
+
# Available from libzmq 4.3.0.
|
1618
|
+
#
|
1619
|
+
# @param loopback_fastpath [Integer, #to_int, #to_i]
|
1620
|
+
# @return [void]
|
1621
|
+
def set_loopback_fastpath(loopback_fastpath)
|
1622
|
+
raise DestroyedError unless @ptr
|
1623
|
+
self_p = @ptr
|
1624
|
+
loopback_fastpath = Integer(loopback_fastpath)
|
1625
|
+
result = ::CZMQ::FFI.zsock_set_loopback_fastpath(self_p, loopback_fastpath)
|
1626
|
+
result
|
1627
|
+
end
|
1628
|
+
|
1629
|
+
# Set socket option `loopback_fastpath`.
|
1630
|
+
# Available from libzmq 4.3.0.
|
1631
|
+
#
|
1632
|
+
# This is the polymorphic version of #set_loopback_fastpath.
|
1633
|
+
#
|
1634
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1635
|
+
# object reference to use this method on
|
1636
|
+
# @param loopback_fastpath [Integer, #to_int, #to_i]
|
1637
|
+
# @return [void]
|
1638
|
+
def self.set_loopback_fastpath(self_p, loopback_fastpath)
|
1639
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1640
|
+
loopback_fastpath = Integer(loopback_fastpath)
|
1641
|
+
result = ::CZMQ::FFI.zsock_set_loopback_fastpath(self_p, loopback_fastpath)
|
1642
|
+
result
|
1643
|
+
end
|
1644
|
+
|
1645
|
+
# Get socket option `zap_enforce_domain`.
|
1646
|
+
# Available from libzmq 4.3.0.
|
1647
|
+
#
|
1648
|
+
# @return [Integer]
|
1649
|
+
def zap_enforce_domain()
|
1650
|
+
raise DestroyedError unless @ptr
|
1651
|
+
self_p = @ptr
|
1652
|
+
result = ::CZMQ::FFI.zsock_zap_enforce_domain(self_p)
|
1653
|
+
result
|
1654
|
+
end
|
1655
|
+
|
1656
|
+
# Get socket option `zap_enforce_domain`.
|
1657
|
+
# Available from libzmq 4.3.0.
|
1658
|
+
#
|
1659
|
+
# This is the polymorphic version of #zap_enforce_domain.
|
1660
|
+
#
|
1661
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1662
|
+
# object reference to use this method on
|
1663
|
+
# @return [Integer]
|
1664
|
+
def self.zap_enforce_domain(self_p)
|
1665
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1666
|
+
result = ::CZMQ::FFI.zsock_zap_enforce_domain(self_p)
|
1667
|
+
result
|
1668
|
+
end
|
1669
|
+
|
1670
|
+
# Set socket option `zap_enforce_domain`.
|
1671
|
+
# Available from libzmq 4.3.0.
|
1672
|
+
#
|
1673
|
+
# @param zap_enforce_domain [Integer, #to_int, #to_i]
|
1674
|
+
# @return [void]
|
1675
|
+
def set_zap_enforce_domain(zap_enforce_domain)
|
1676
|
+
raise DestroyedError unless @ptr
|
1677
|
+
self_p = @ptr
|
1678
|
+
zap_enforce_domain = Integer(zap_enforce_domain)
|
1679
|
+
result = ::CZMQ::FFI.zsock_set_zap_enforce_domain(self_p, zap_enforce_domain)
|
1680
|
+
result
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
# Set socket option `zap_enforce_domain`.
|
1684
|
+
# Available from libzmq 4.3.0.
|
1685
|
+
#
|
1686
|
+
# This is the polymorphic version of #set_zap_enforce_domain.
|
1687
|
+
#
|
1688
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1689
|
+
# object reference to use this method on
|
1690
|
+
# @param zap_enforce_domain [Integer, #to_int, #to_i]
|
1691
|
+
# @return [void]
|
1692
|
+
def self.set_zap_enforce_domain(self_p, zap_enforce_domain)
|
1693
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1694
|
+
zap_enforce_domain = Integer(zap_enforce_domain)
|
1695
|
+
result = ::CZMQ::FFI.zsock_set_zap_enforce_domain(self_p, zap_enforce_domain)
|
1696
|
+
result
|
1697
|
+
end
|
1698
|
+
|
1699
|
+
# Get socket option `gssapi_principal_nametype`.
|
1700
|
+
# Available from libzmq 4.3.0.
|
1701
|
+
#
|
1702
|
+
# @return [Integer]
|
1703
|
+
def gssapi_principal_nametype()
|
1704
|
+
raise DestroyedError unless @ptr
|
1705
|
+
self_p = @ptr
|
1706
|
+
result = ::CZMQ::FFI.zsock_gssapi_principal_nametype(self_p)
|
1707
|
+
result
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
# Get socket option `gssapi_principal_nametype`.
|
1711
|
+
# Available from libzmq 4.3.0.
|
1712
|
+
#
|
1713
|
+
# This is the polymorphic version of #gssapi_principal_nametype.
|
1714
|
+
#
|
1715
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1716
|
+
# object reference to use this method on
|
1717
|
+
# @return [Integer]
|
1718
|
+
def self.gssapi_principal_nametype(self_p)
|
1719
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1720
|
+
result = ::CZMQ::FFI.zsock_gssapi_principal_nametype(self_p)
|
1721
|
+
result
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
# Set socket option `gssapi_principal_nametype`.
|
1725
|
+
# Available from libzmq 4.3.0.
|
1726
|
+
#
|
1727
|
+
# @param gssapi_principal_nametype [Integer, #to_int, #to_i]
|
1728
|
+
# @return [void]
|
1729
|
+
def set_gssapi_principal_nametype(gssapi_principal_nametype)
|
1730
|
+
raise DestroyedError unless @ptr
|
1731
|
+
self_p = @ptr
|
1732
|
+
gssapi_principal_nametype = Integer(gssapi_principal_nametype)
|
1733
|
+
result = ::CZMQ::FFI.zsock_set_gssapi_principal_nametype(self_p, gssapi_principal_nametype)
|
1734
|
+
result
|
1735
|
+
end
|
1736
|
+
|
1737
|
+
# Set socket option `gssapi_principal_nametype`.
|
1738
|
+
# Available from libzmq 4.3.0.
|
1739
|
+
#
|
1740
|
+
# This is the polymorphic version of #set_gssapi_principal_nametype.
|
1741
|
+
#
|
1742
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1743
|
+
# object reference to use this method on
|
1744
|
+
# @param gssapi_principal_nametype [Integer, #to_int, #to_i]
|
1745
|
+
# @return [void]
|
1746
|
+
def self.set_gssapi_principal_nametype(self_p, gssapi_principal_nametype)
|
1747
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1748
|
+
gssapi_principal_nametype = Integer(gssapi_principal_nametype)
|
1749
|
+
result = ::CZMQ::FFI.zsock_set_gssapi_principal_nametype(self_p, gssapi_principal_nametype)
|
1750
|
+
result
|
1751
|
+
end
|
1752
|
+
|
1753
|
+
# Get socket option `gssapi_service_principal_nametype`.
|
1754
|
+
# Available from libzmq 4.3.0.
|
1755
|
+
#
|
1756
|
+
# @return [Integer]
|
1757
|
+
def gssapi_service_principal_nametype()
|
1758
|
+
raise DestroyedError unless @ptr
|
1759
|
+
self_p = @ptr
|
1760
|
+
result = ::CZMQ::FFI.zsock_gssapi_service_principal_nametype(self_p)
|
1761
|
+
result
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
# Get socket option `gssapi_service_principal_nametype`.
|
1765
|
+
# Available from libzmq 4.3.0.
|
1766
|
+
#
|
1767
|
+
# This is the polymorphic version of #gssapi_service_principal_nametype.
|
1768
|
+
#
|
1769
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1770
|
+
# object reference to use this method on
|
1771
|
+
# @return [Integer]
|
1772
|
+
def self.gssapi_service_principal_nametype(self_p)
|
1773
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1774
|
+
result = ::CZMQ::FFI.zsock_gssapi_service_principal_nametype(self_p)
|
1775
|
+
result
|
1776
|
+
end
|
1777
|
+
|
1778
|
+
# Set socket option `gssapi_service_principal_nametype`.
|
1779
|
+
# Available from libzmq 4.3.0.
|
1780
|
+
#
|
1781
|
+
# @param gssapi_service_principal_nametype [Integer, #to_int, #to_i]
|
1782
|
+
# @return [void]
|
1783
|
+
def set_gssapi_service_principal_nametype(gssapi_service_principal_nametype)
|
1784
|
+
raise DestroyedError unless @ptr
|
1785
|
+
self_p = @ptr
|
1786
|
+
gssapi_service_principal_nametype = Integer(gssapi_service_principal_nametype)
|
1787
|
+
result = ::CZMQ::FFI.zsock_set_gssapi_service_principal_nametype(self_p, gssapi_service_principal_nametype)
|
1788
|
+
result
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
# Set socket option `gssapi_service_principal_nametype`.
|
1792
|
+
# Available from libzmq 4.3.0.
|
1793
|
+
#
|
1794
|
+
# This is the polymorphic version of #set_gssapi_service_principal_nametype.
|
1795
|
+
#
|
1796
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1797
|
+
# object reference to use this method on
|
1798
|
+
# @param gssapi_service_principal_nametype [Integer, #to_int, #to_i]
|
1799
|
+
# @return [void]
|
1800
|
+
def self.set_gssapi_service_principal_nametype(self_p, gssapi_service_principal_nametype)
|
1801
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1802
|
+
gssapi_service_principal_nametype = Integer(gssapi_service_principal_nametype)
|
1803
|
+
result = ::CZMQ::FFI.zsock_set_gssapi_service_principal_nametype(self_p, gssapi_service_principal_nametype)
|
1804
|
+
result
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
# Get socket option `bindtodevice`.
|
1808
|
+
# Available from libzmq 4.3.0.
|
1809
|
+
#
|
1810
|
+
# @return [::FFI::AutoPointer]
|
1811
|
+
def bindtodevice()
|
1812
|
+
raise DestroyedError unless @ptr
|
1813
|
+
self_p = @ptr
|
1814
|
+
result = ::CZMQ::FFI.zsock_bindtodevice(self_p)
|
1815
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1816
|
+
result
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
# Get socket option `bindtodevice`.
|
1820
|
+
# Available from libzmq 4.3.0.
|
1821
|
+
#
|
1822
|
+
# This is the polymorphic version of #bindtodevice.
|
1823
|
+
#
|
1824
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1825
|
+
# object reference to use this method on
|
1826
|
+
# @return [::FFI::AutoPointer]
|
1827
|
+
def self.bindtodevice(self_p)
|
1828
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1829
|
+
result = ::CZMQ::FFI.zsock_bindtodevice(self_p)
|
1830
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
1831
|
+
result
|
1832
|
+
end
|
1833
|
+
|
1834
|
+
# Set socket option `bindtodevice`.
|
1835
|
+
# Available from libzmq 4.3.0.
|
1836
|
+
#
|
1837
|
+
# @param bindtodevice [String, #to_s, nil]
|
1838
|
+
# @return [void]
|
1839
|
+
def set_bindtodevice(bindtodevice)
|
1840
|
+
raise DestroyedError unless @ptr
|
1841
|
+
self_p = @ptr
|
1842
|
+
result = ::CZMQ::FFI.zsock_set_bindtodevice(self_p, bindtodevice)
|
1843
|
+
result
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
# Set socket option `bindtodevice`.
|
1847
|
+
# Available from libzmq 4.3.0.
|
1848
|
+
#
|
1849
|
+
# This is the polymorphic version of #set_bindtodevice.
|
1850
|
+
#
|
1851
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1852
|
+
# object reference to use this method on
|
1853
|
+
# @param bindtodevice [String, #to_s, nil]
|
1854
|
+
# @return [void]
|
1855
|
+
def self.set_bindtodevice(self_p, bindtodevice)
|
1856
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1857
|
+
result = ::CZMQ::FFI.zsock_set_bindtodevice(self_p, bindtodevice)
|
1858
|
+
result
|
1859
|
+
end
|
1860
|
+
|
917
1861
|
# Get socket option `heartbeat_ivl`.
|
918
1862
|
# Available from libzmq 4.2.0.
|
919
1863
|
#
|