czmq-ffi-gen 0.13.0-x64-mingw32 → 0.14.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +13 -0
- data/lib/czmq-ffi-gen/czmq/ffi.rb +224 -698
- 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/gem_version.rb +1 -1
- data/lib/czmq-ffi-gen/vendor.rb +9 -1
- data/vendor/local/bin/inproc_lat.exe +0 -0
- data/vendor/local/bin/inproc_thr.exe +0 -0
- data/vendor/local/bin/libczmq.dll +0 -0
- data/vendor/local/bin/libzmq.dll +0 -0
- data/vendor/local/bin/local_lat.exe +0 -0
- data/vendor/local/bin/local_thr.exe +0 -0
- data/vendor/local/bin/remote_lat.exe +0 -0
- data/vendor/local/bin/remote_thr.exe +0 -0
- data/vendor/local/bin/zmakecert.exe +0 -0
- data/vendor/local/include/czmq_library.h +18 -9
- data/vendor/local/include/czmq_prelude.h +104 -16
- data/vendor/local/include/zactor.h +25 -7
- data/vendor/local/include/zarmour.h +3 -3
- data/vendor/local/include/zcert.h +11 -6
- data/vendor/local/include/zcertstore.h +18 -9
- data/vendor/local/include/zchunk.h +18 -18
- data/vendor/local/include/zclock.h +6 -6
- data/vendor/local/include/zconfig.h +25 -16
- data/vendor/local/include/zdigest.h +4 -4
- data/vendor/local/include/zdir.h +36 -36
- data/vendor/local/include/zdir_patch.h +1 -1
- data/vendor/local/include/zfile.h +27 -19
- data/vendor/local/include/zframe.h +22 -21
- data/vendor/local/include/zgossip.h +5 -5
- data/vendor/local/include/zgossip_engine.inc +103 -22
- data/vendor/local/include/zgossip_msg.h +28 -30
- data/vendor/local/include/zhash.h +53 -53
- data/vendor/local/include/zhashx.h +75 -73
- data/vendor/local/include/ziflist.h +22 -1
- data/vendor/local/include/zlist.h +28 -28
- data/vendor/local/include/zlistx.h +41 -41
- data/vendor/local/include/zloop.h +36 -36
- data/vendor/local/include/zmsg.h +46 -46
- data/vendor/local/include/zpoller.h +16 -16
- data/vendor/local/include/zsock.h +414 -364
- data/vendor/local/include/zsock_option.inc +234 -1062
- data/vendor/local/include/zstr.h +44 -19
- data/vendor/local/include/zsys.h +63 -19
- data/vendor/local/include/zuuid.h +4 -4
- data/vendor/local/lib/libczmq.dll.a +0 -0
- data/vendor/local/lib/liblibzmq.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/libczmq.pc +1 -1
- metadata +6 -3
@@ -73,9 +73,9 @@ module CZMQ
|
|
73
73
|
@finalizer = nil
|
74
74
|
end
|
75
75
|
|
76
|
-
# Create new poller, specifying zero or more readers. The list of
|
76
|
+
# Create new poller, specifying zero or more readers. The list of
|
77
77
|
# readers ends in a NULL. Each reader can be a zsock_t instance, a
|
78
|
-
# zactor_t instance, a libzmq socket (void *), or a file handle.
|
78
|
+
# zactor_t instance, a libzmq socket (void *), or a file handle.
|
79
79
|
# @param reader [::FFI::Pointer, #to_ptr]
|
80
80
|
# @param args [Array<Object>]
|
81
81
|
# @return [CZMQ::Zpoller]
|
@@ -95,7 +95,7 @@ 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, or a zactor_t instance.
|
98
|
+
# be a libzmq void * socket, a zsock_t instance, or a zactor_t instance.
|
99
99
|
#
|
100
100
|
# @param reader [::FFI::Pointer, #to_ptr]
|
101
101
|
# @return [Integer]
|
@@ -107,7 +107,7 @@ module CZMQ
|
|
107
107
|
end
|
108
108
|
|
109
109
|
# Remove a reader from the poller; returns 0 if OK, -1 on failure. The reader
|
110
|
-
# must have been passed during construction, or in an zpoller_add () call.
|
110
|
+
# must have been passed during construction, or in an zpoller_add () call.
|
111
111
|
#
|
112
112
|
# @param reader [::FFI::Pointer, #to_ptr]
|
113
113
|
# @return [Integer]
|
@@ -118,10 +118,10 @@ module CZMQ
|
|
118
118
|
result
|
119
119
|
end
|
120
120
|
|
121
|
-
# By default the poller stops if the process receives a SIGINT or SIGTERM
|
121
|
+
# By default the poller stops if the process receives a SIGINT or SIGTERM
|
122
122
|
# signal. This makes it impossible to shut-down message based architectures
|
123
123
|
# like zactors. This method lets you switch off break handling. The default
|
124
|
-
# nonstop setting is off (false).
|
124
|
+
# nonstop setting is off (false).
|
125
125
|
#
|
126
126
|
# @param nonstop [Boolean]
|
127
127
|
# @return [void]
|
@@ -133,15 +133,15 @@ module CZMQ
|
|
133
133
|
result
|
134
134
|
end
|
135
135
|
|
136
|
-
# Poll the registered readers for I/O, return first reader that has input.
|
137
|
-
# The reader will be a libzmq void * socket, or a zsock_t or zactor_t
|
138
|
-
# instance as specified in zpoller_new/zpoller_add. The timeout should be
|
139
|
-
# zero or greater, or -1 to wait indefinitely. Socket priority is defined
|
140
|
-
# by their order in the poll list. If you need a balanced poll, use the low
|
136
|
+
# Poll the registered readers for I/O, return first reader that has input.
|
137
|
+
# The reader will be a libzmq void * socket, or a zsock_t or zactor_t
|
138
|
+
# instance as specified in zpoller_new/zpoller_add. The timeout should be
|
139
|
+
# zero or greater, or -1 to wait indefinitely. Socket priority is defined
|
140
|
+
# by their order in the poll list. If you need a balanced poll, use the low
|
141
141
|
# level zmq_poll method directly. If the poll call was interrupted (SIGINT),
|
142
|
-
# or the ZMQ context was destroyed, or the timeout expired, returns NULL.
|
143
|
-
# You can test the actual exit condition by calling zpoller_expired () and
|
144
|
-
# zpoller_terminated (). The timeout is in msec.
|
142
|
+
# or the ZMQ context was destroyed, or the timeout expired, returns NULL.
|
143
|
+
# You can test the actual exit condition by calling zpoller_expired () and
|
144
|
+
# zpoller_terminated (). The timeout is in msec.
|
145
145
|
#
|
146
146
|
# @param timeout [Integer, #to_int, #to_i]
|
147
147
|
# @return [::FFI::Pointer]
|
@@ -154,7 +154,7 @@ module CZMQ
|
|
154
154
|
end
|
155
155
|
|
156
156
|
# Return true if the last zpoller_wait () call ended because the timeout
|
157
|
-
# expired, without any error.
|
157
|
+
# expired, without any error.
|
158
158
|
#
|
159
159
|
# @return [Boolean]
|
160
160
|
def expired()
|
@@ -165,7 +165,7 @@ module CZMQ
|
|
165
165
|
end
|
166
166
|
|
167
167
|
# Return true if the last zpoller_wait () call ended because the process
|
168
|
-
# was interrupted, or the parent context was destroyed.
|
168
|
+
# was interrupted, or the parent context was destroyed.
|
169
169
|
#
|
170
170
|
# @return [Boolean]
|
171
171
|
def terminated()
|
@@ -30,12 +30,13 @@ module CZMQ
|
|
30
30
|
ObjectSpace.define_finalizer self, @finalizer
|
31
31
|
end
|
32
32
|
end
|
33
|
+
# @param ptr [::FFI::Pointer]
|
33
34
|
# @return [Proc]
|
34
35
|
def self.create_finalizer_for(ptr)
|
35
36
|
Proc.new do
|
36
|
-
|
37
|
-
|
38
|
-
|
37
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
|
+
ptr_ptr.write_pointer ptr
|
39
|
+
::CZMQ::FFI.zproc_destroy ptr_ptr
|
39
40
|
end
|
40
41
|
end
|
41
42
|
# @return [Boolean]
|
@@ -72,8 +73,210 @@ module CZMQ
|
|
72
73
|
@finalizer = nil
|
73
74
|
end
|
74
75
|
|
76
|
+
# Create a new zproc.
|
77
|
+
# NOTE: On Windows and with libzmq3 and libzmq2 this function
|
78
|
+
# returns NULL. Code needs to be ported there.
|
79
|
+
# @return [CZMQ::Zproc]
|
80
|
+
def self.new()
|
81
|
+
ptr = ::CZMQ::FFI.zproc_new()
|
82
|
+
__new ptr
|
83
|
+
end
|
84
|
+
|
85
|
+
# Destroy zproc, wait until process ends.
|
86
|
+
#
|
87
|
+
# @return [void]
|
88
|
+
def destroy()
|
89
|
+
return unless @ptr
|
90
|
+
self_p = __ptr_give_ref
|
91
|
+
result = ::CZMQ::FFI.zproc_destroy(self_p)
|
92
|
+
result
|
93
|
+
end
|
94
|
+
|
95
|
+
# Setup the command line arguments, the first item must be an (absolute) filename
|
96
|
+
# to run.
|
97
|
+
#
|
98
|
+
# @param args [Zlistx, #__ptr]
|
99
|
+
# @return [void]
|
100
|
+
def set_args(args)
|
101
|
+
raise DestroyedError unless @ptr
|
102
|
+
self_p = @ptr
|
103
|
+
args = args.__ptr if args
|
104
|
+
result = ::CZMQ::FFI.zproc_set_args(self_p, args)
|
105
|
+
result
|
106
|
+
end
|
107
|
+
|
108
|
+
# Setup the environment variables for the process.
|
109
|
+
#
|
110
|
+
# @param args [Zhashx, #__ptr]
|
111
|
+
# @return [void]
|
112
|
+
def set_env(args)
|
113
|
+
raise DestroyedError unless @ptr
|
114
|
+
self_p = @ptr
|
115
|
+
args = args.__ptr if args
|
116
|
+
result = ::CZMQ::FFI.zproc_set_env(self_p, args)
|
117
|
+
result
|
118
|
+
end
|
119
|
+
|
120
|
+
# Connects process stdin with a readable ('>', connect) zeromq socket. If
|
121
|
+
# socket argument is NULL, zproc creates own managed pair of inproc
|
122
|
+
# sockets. The writable one is then accessbile via zproc_stdin method.
|
123
|
+
#
|
124
|
+
# @param socket [::FFI::Pointer, #to_ptr]
|
125
|
+
# @return [void]
|
126
|
+
def set_stdin(socket)
|
127
|
+
raise DestroyedError unless @ptr
|
128
|
+
self_p = @ptr
|
129
|
+
result = ::CZMQ::FFI.zproc_set_stdin(self_p, socket)
|
130
|
+
result
|
131
|
+
end
|
132
|
+
|
133
|
+
# Connects process stdout with a writable ('@', bind) zeromq socket. If
|
134
|
+
# socket argument is NULL, zproc creates own managed pair of inproc
|
135
|
+
# sockets. The readable one is then accessbile via zproc_stdout method.
|
136
|
+
#
|
137
|
+
# @param socket [::FFI::Pointer, #to_ptr]
|
138
|
+
# @return [void]
|
139
|
+
def set_stdout(socket)
|
140
|
+
raise DestroyedError unless @ptr
|
141
|
+
self_p = @ptr
|
142
|
+
result = ::CZMQ::FFI.zproc_set_stdout(self_p, socket)
|
143
|
+
result
|
144
|
+
end
|
145
|
+
|
146
|
+
# Connects process stderr with a writable ('@', bind) zeromq socket. If
|
147
|
+
# socket argument is NULL, zproc creates own managed pair of inproc
|
148
|
+
# sockets. The readable one is then accessbile via zproc_stderr method.
|
149
|
+
#
|
150
|
+
# @param socket [::FFI::Pointer, #to_ptr]
|
151
|
+
# @return [void]
|
152
|
+
def set_stderr(socket)
|
153
|
+
raise DestroyedError unless @ptr
|
154
|
+
self_p = @ptr
|
155
|
+
result = ::CZMQ::FFI.zproc_set_stderr(self_p, socket)
|
156
|
+
result
|
157
|
+
end
|
158
|
+
|
159
|
+
# Return subprocess stdin writable socket. NULL for
|
160
|
+
# not initialized or external sockets.
|
161
|
+
#
|
162
|
+
# @return [::FFI::Pointer]
|
163
|
+
def stdin()
|
164
|
+
raise DestroyedError unless @ptr
|
165
|
+
self_p = @ptr
|
166
|
+
result = ::CZMQ::FFI.zproc_stdin(self_p)
|
167
|
+
result
|
168
|
+
end
|
169
|
+
|
170
|
+
# Return subprocess stdout readable socket. NULL for
|
171
|
+
# not initialized or external sockets.
|
172
|
+
#
|
173
|
+
# @return [::FFI::Pointer]
|
174
|
+
def stdout()
|
175
|
+
raise DestroyedError unless @ptr
|
176
|
+
self_p = @ptr
|
177
|
+
result = ::CZMQ::FFI.zproc_stdout(self_p)
|
178
|
+
result
|
179
|
+
end
|
180
|
+
|
181
|
+
# Return subprocess stderr readable socket. NULL for
|
182
|
+
# not initialized or external sockets.
|
183
|
+
#
|
184
|
+
# @return [::FFI::Pointer]
|
185
|
+
def stderr()
|
186
|
+
raise DestroyedError unless @ptr
|
187
|
+
self_p = @ptr
|
188
|
+
result = ::CZMQ::FFI.zproc_stderr(self_p)
|
189
|
+
result
|
190
|
+
end
|
191
|
+
|
192
|
+
# Starts the process.
|
193
|
+
#
|
194
|
+
# @return [Integer]
|
195
|
+
def run()
|
196
|
+
raise DestroyedError unless @ptr
|
197
|
+
self_p = @ptr
|
198
|
+
result = ::CZMQ::FFI.zproc_run(self_p)
|
199
|
+
result
|
200
|
+
end
|
201
|
+
|
202
|
+
# process exit code
|
203
|
+
#
|
204
|
+
# @return [Integer]
|
205
|
+
def returncode()
|
206
|
+
raise DestroyedError unless @ptr
|
207
|
+
self_p = @ptr
|
208
|
+
result = ::CZMQ::FFI.zproc_returncode(self_p)
|
209
|
+
result
|
210
|
+
end
|
211
|
+
|
212
|
+
# PID of the process
|
213
|
+
#
|
214
|
+
# @return [Integer]
|
215
|
+
def pid()
|
216
|
+
raise DestroyedError unless @ptr
|
217
|
+
self_p = @ptr
|
218
|
+
result = ::CZMQ::FFI.zproc_pid(self_p)
|
219
|
+
result
|
220
|
+
end
|
221
|
+
|
222
|
+
# return true if process is running, false if not yet started or finished
|
223
|
+
#
|
224
|
+
# @return [Boolean]
|
225
|
+
def running()
|
226
|
+
raise DestroyedError unless @ptr
|
227
|
+
self_p = @ptr
|
228
|
+
result = ::CZMQ::FFI.zproc_running(self_p)
|
229
|
+
result
|
230
|
+
end
|
231
|
+
|
232
|
+
# wait or poll process status, return return code
|
233
|
+
#
|
234
|
+
# @param hang [Boolean]
|
235
|
+
# @return [Integer]
|
236
|
+
def wait(hang)
|
237
|
+
raise DestroyedError unless @ptr
|
238
|
+
self_p = @ptr
|
239
|
+
hang = !(0==hang||!hang) # boolean
|
240
|
+
result = ::CZMQ::FFI.zproc_wait(self_p, hang)
|
241
|
+
result
|
242
|
+
end
|
243
|
+
|
244
|
+
# return internal actor, usefull for the polling if process died
|
245
|
+
#
|
246
|
+
# @return [::FFI::Pointer]
|
247
|
+
def actor()
|
248
|
+
raise DestroyedError unless @ptr
|
249
|
+
self_p = @ptr
|
250
|
+
result = ::CZMQ::FFI.zproc_actor(self_p)
|
251
|
+
result
|
252
|
+
end
|
253
|
+
|
254
|
+
# send a signal to the subprocess
|
255
|
+
#
|
256
|
+
# @param signal [Integer, #to_int, #to_i]
|
257
|
+
# @return [void]
|
258
|
+
def kill(signal)
|
259
|
+
raise DestroyedError unless @ptr
|
260
|
+
self_p = @ptr
|
261
|
+
signal = Integer(signal)
|
262
|
+
result = ::CZMQ::FFI.zproc_kill(self_p, signal)
|
263
|
+
result
|
264
|
+
end
|
265
|
+
|
266
|
+
# set verbose mode
|
267
|
+
#
|
268
|
+
# @param verbose [Boolean]
|
269
|
+
# @return [void]
|
270
|
+
def set_verbose(verbose)
|
271
|
+
raise DestroyedError unless @ptr
|
272
|
+
self_p = @ptr
|
273
|
+
verbose = !(0==verbose||!verbose) # boolean
|
274
|
+
result = ::CZMQ::FFI.zproc_set_verbose(self_p, verbose)
|
275
|
+
result
|
276
|
+
end
|
277
|
+
|
75
278
|
# Returns CZMQ version as a single 6-digit integer encoding the major
|
76
|
-
# version (x 10000), the minor version (x 100) and the patch.
|
279
|
+
# version (x 10000), the minor version (x 100) and the patch.
|
77
280
|
#
|
78
281
|
# @return [Integer]
|
79
282
|
def self.czmq_version()
|
@@ -83,7 +286,7 @@ module CZMQ
|
|
83
286
|
|
84
287
|
# Returns true if the process received a SIGINT or SIGTERM signal.
|
85
288
|
# It is good practice to use this method to exit any infinite loop
|
86
|
-
# processing messages.
|
289
|
+
# processing messages.
|
87
290
|
#
|
88
291
|
# @return [Boolean]
|
89
292
|
def self.interrupted()
|
@@ -100,7 +303,7 @@ module CZMQ
|
|
100
303
|
end
|
101
304
|
|
102
305
|
# Return current host name, for use in public tcp:// endpoints.
|
103
|
-
# If the host name is not resolvable, returns NULL.
|
306
|
+
# If the host name is not resolvable, returns NULL.
|
104
307
|
#
|
105
308
|
# @return [::FFI::AutoPointer]
|
106
309
|
def self.hostname()
|
@@ -109,12 +312,12 @@ module CZMQ
|
|
109
312
|
result
|
110
313
|
end
|
111
314
|
|
112
|
-
# Move the current process into the background. The precise effect
|
315
|
+
# Move the current process into the background. The precise effect
|
113
316
|
# depends on the operating system. On POSIX boxes, moves to a specified
|
114
|
-
# working directory (if specified), closes all file handles, reopens
|
317
|
+
# working directory (if specified), closes all file handles, reopens
|
115
318
|
# stdin, stdout, and stderr to the null device, and sets the process to
|
116
319
|
# ignore SIGHUP. On Windows, does nothing. Returns 0 if OK, -1 if there
|
117
|
-
# was an error.
|
320
|
+
# was an error.
|
118
321
|
#
|
119
322
|
# @param workdir [String, #to_s, nil]
|
120
323
|
# @return [void]
|
@@ -123,12 +326,12 @@ module CZMQ
|
|
123
326
|
result
|
124
327
|
end
|
125
328
|
|
126
|
-
# Drop the process ID into the lockfile, with exclusive lock, and
|
127
|
-
# switch the process to the specified group and/or user. Any of the
|
128
|
-
# arguments may be null, indicating a no-op. Returns 0 on success,
|
129
|
-
# -1 on failure. Note if you combine this with zsys_daemonize, run
|
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
|
130
333
|
# after, not before that method, or the lockfile will hold the wrong
|
131
|
-
# process ID.
|
334
|
+
# process ID.
|
132
335
|
#
|
133
336
|
# @param lockfile [String, #to_s, nil]
|
134
337
|
# @param group [String, #to_s, nil]
|
@@ -139,11 +342,11 @@ module CZMQ
|
|
139
342
|
result
|
140
343
|
end
|
141
344
|
|
142
|
-
# Configure the number of I/O threads that ZeroMQ will use. A good
|
143
|
-
# rule of thumb is one thread per gigabit of traffic in or out. The
|
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
|
144
347
|
# default is 1, sufficient for most applications. If the environment
|
145
|
-
# variable ZSYS_IO_THREADS is defined, that provides the default.
|
146
|
-
# Note that this method is valid only before any socket is created.
|
348
|
+
# variable ZSYS_IO_THREADS is defined, that provides the default.
|
349
|
+
# Note that this method is valid only before any socket is created.
|
147
350
|
#
|
148
351
|
# @param io_threads [Integer, #to_int, #to_i]
|
149
352
|
# @return [void]
|
@@ -153,10 +356,10 @@ module CZMQ
|
|
153
356
|
result
|
154
357
|
end
|
155
358
|
|
156
|
-
# Configure the number of sockets that ZeroMQ will allow. The default
|
359
|
+
# Configure the number of sockets that ZeroMQ will allow. The default
|
157
360
|
# is 1024. The actual limit depends on the system, and you can query it
|
158
|
-
# by using zsys_socket_limit (). A value of zero means "maximum".
|
159
|
-
# Note that this method is valid only before any socket is created.
|
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.
|
160
363
|
#
|
161
364
|
# @param max_sockets [Integer, #to_int, #to_i]
|
162
365
|
# @return [void]
|
@@ -166,12 +369,12 @@ module CZMQ
|
|
166
369
|
result
|
167
370
|
end
|
168
371
|
|
169
|
-
# Set network interface name to use for broadcasts, particularly zbeacon.
|
372
|
+
# Set network interface name to use for broadcasts, particularly zbeacon.
|
170
373
|
# This lets the interface be configured for test environments where required.
|
171
|
-
# For example, on Mac OS X, zbeacon cannot bind to 255.255.255.255 which is
|
172
|
-
# the default when there is no specified interface. If the environment
|
173
|
-
# variable ZSYS_INTERFACE is set, use that as the default interface name.
|
174
|
-
# Setting the interface to "*" means "use all available interfaces".
|
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".
|
175
378
|
#
|
176
379
|
# @param value [String, #to_s, nil]
|
177
380
|
# @return [void]
|
@@ -189,8 +392,8 @@ module CZMQ
|
|
189
392
|
end
|
190
393
|
|
191
394
|
# Set log identity, which is a string that prefixes all log messages sent
|
192
|
-
# by this process. The log identity defaults to the environment variable
|
193
|
-
# ZSYS_LOGIDENT, if that is set.
|
395
|
+
# by this process. The log identity defaults to the environment variable
|
396
|
+
# ZSYS_LOGIDENT, if that is set.
|
194
397
|
#
|
195
398
|
# @param value [String, #to_s, nil]
|
196
399
|
# @return [void]
|
@@ -199,13 +402,13 @@ module CZMQ
|
|
199
402
|
result
|
200
403
|
end
|
201
404
|
|
202
|
-
# Sends log output to a PUB socket bound to the specified endpoint. To
|
203
|
-
# collect such log output, create a SUB socket, subscribe to the traffic
|
204
|
-
# you care about, and connect to the endpoint. Log traffic is sent as a
|
205
|
-
# single string frame, in the same format as when sent to stdout. The
|
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
|
206
409
|
# log system supports a single sender; multiple calls to this method will
|
207
410
|
# bind the same sender to multiple endpoints. To disable the sender, call
|
208
|
-
# this method with a null argument.
|
411
|
+
# this method with a null argument.
|
209
412
|
#
|
210
413
|
# @param endpoint [String, #to_s, nil]
|
211
414
|
# @return [void]
|
@@ -215,7 +418,7 @@ module CZMQ
|
|
215
418
|
end
|
216
419
|
|
217
420
|
# Enable or disable logging to the system facility (syslog on POSIX boxes,
|
218
|
-
# event log on Windows). By default this is disabled.
|
421
|
+
# event log on Windows). By default this is disabled.
|
219
422
|
#
|
220
423
|
# @param logsystem [Boolean]
|
221
424
|
# @return [void]
|
@@ -74,11 +74,11 @@ module CZMQ
|
|
74
74
|
end
|
75
75
|
|
76
76
|
# Create a new socket. Returns the new socket, or NULL if the new socket
|
77
|
-
# could not be created. Note that the symbol zsock_new (and other
|
78
|
-
# constructors/destructors for zsock) are redirected to the *_checked
|
79
|
-
# variant, enabling intelligent socket leak detection. This can have
|
77
|
+
# could not be created. Note that the symbol zsock_new (and other
|
78
|
+
# constructors/destructors for zsock) are redirected to the *_checked
|
79
|
+
# variant, enabling intelligent socket leak detection. This can have
|
80
80
|
# performance implications if you use a LOT of sockets. To turn off this
|
81
|
-
# redirection behaviour, define ZSOCK_NOCHECK.
|
81
|
+
# redirection behaviour, define ZSOCK_NOCHECK.
|
82
82
|
# @param type [Integer, #to_int, #to_i]
|
83
83
|
# @return [CZMQ::Zsock]
|
84
84
|
def self.new(type)
|
@@ -96,7 +96,7 @@ module CZMQ
|
|
96
96
|
end
|
97
97
|
|
98
98
|
# Create a SUB socket, and optionally subscribe to some prefix string. Default
|
99
|
-
# action is connect.
|
99
|
+
# action is connect.
|
100
100
|
# @param endpoint [String, #to_s, nil]
|
101
101
|
# @param subscribe [String, #to_s, nil]
|
102
102
|
# @return [CZMQ::Zsock]
|
@@ -234,7 +234,7 @@ module CZMQ
|
|
234
234
|
end
|
235
235
|
|
236
236
|
# Destroy the socket. You must use this for any socket created via the
|
237
|
-
# zsock_new method.
|
237
|
+
# zsock_new method.
|
238
238
|
#
|
239
239
|
# @return [void]
|
240
240
|
def destroy()
|
@@ -244,26 +244,26 @@ module CZMQ
|
|
244
244
|
result
|
245
245
|
end
|
246
246
|
|
247
|
-
# Bind a socket to a formatted endpoint. For tcp:// endpoints, supports
|
248
|
-
# ephemeral ports, if you specify the port number as "*". By default
|
249
|
-
# zsock uses the IANA designated range from C000 (49152) to FFFF (65535).
|
250
|
-
# To override this range, follow the "*" with "[first-last]". Either or
|
251
|
-
# both first and last may be empty. To bind to a random port within the
|
252
|
-
# range, use "!" in place of "*".
|
253
|
-
#
|
254
|
-
# Examples:
|
255
|
-
# tcp://127.0.0.1:* bind to first free port from C000 up
|
256
|
-
# tcp://127.0.0.1:! bind to random port from C000 to FFFF
|
257
|
-
# tcp://127.0.0.1:*[60000-] bind to first free port from 60000 up
|
258
|
-
# tcp://127.0.0.1:![-60000] bind to random port from C000 to 60000
|
259
|
-
# tcp://127.0.0.1:![55000-55999]
|
260
|
-
# bind to random port from 55000 to 55999
|
261
|
-
#
|
262
|
-
# On success, returns the actual port number used, for tcp:// endpoints,
|
247
|
+
# Bind a socket to a formatted endpoint. For tcp:// endpoints, supports
|
248
|
+
# ephemeral ports, if you specify the port number as "*". By default
|
249
|
+
# zsock uses the IANA designated range from C000 (49152) to FFFF (65535).
|
250
|
+
# To override this range, follow the "*" with "[first-last]". Either or
|
251
|
+
# both first and last may be empty. To bind to a random port within the
|
252
|
+
# range, use "!" in place of "*".
|
253
|
+
#
|
254
|
+
# Examples:
|
255
|
+
# tcp://127.0.0.1:* bind to first free port from C000 up
|
256
|
+
# tcp://127.0.0.1:! bind to random port from C000 to FFFF
|
257
|
+
# tcp://127.0.0.1:*[60000-] bind to first free port from 60000 up
|
258
|
+
# tcp://127.0.0.1:![-60000] bind to random port from C000 to 60000
|
259
|
+
# tcp://127.0.0.1:![55000-55999]
|
260
|
+
# bind to random port from 55000 to 55999
|
261
|
+
#
|
262
|
+
# On success, returns the actual port number used, for tcp:// endpoints,
|
263
263
|
# and 0 for other transports. On failure, returns -1. Note that when using
|
264
|
-
# ephemeral ports, a port may be reused by different services without
|
265
|
-
# clients being aware. Protocols that run on ephemeral ports should take
|
266
|
-
# this into account.
|
264
|
+
# ephemeral ports, a port may be reused by different services without
|
265
|
+
# clients being aware. Protocols that run on ephemeral ports should take
|
266
|
+
# this into account.
|
267
267
|
#
|
268
268
|
# @param format [String, #to_s, nil]
|
269
269
|
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
@@ -285,9 +285,9 @@ module CZMQ
|
|
285
285
|
result
|
286
286
|
end
|
287
287
|
|
288
|
-
# Unbind a socket from a formatted endpoint.
|
288
|
+
# Unbind a socket from a formatted endpoint.
|
289
289
|
# Returns 0 if OK, -1 if the endpoint was invalid or the function
|
290
|
-
# isn't supported.
|
290
|
+
# isn't supported.
|
291
291
|
#
|
292
292
|
# @param format [String, #to_s, nil]
|
293
293
|
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
@@ -299,7 +299,7 @@ module CZMQ
|
|
299
299
|
result
|
300
300
|
end
|
301
301
|
|
302
|
-
# Connect a socket to a formatted endpoint
|
302
|
+
# Connect a socket to a formatted endpoint
|
303
303
|
# Returns 0 if OK, -1 if the endpoint was invalid.
|
304
304
|
#
|
305
305
|
# @param format [String, #to_s, nil]
|
@@ -312,9 +312,9 @@ module CZMQ
|
|
312
312
|
result
|
313
313
|
end
|
314
314
|
|
315
|
-
# Disconnect a socket from a formatted endpoint
|
315
|
+
# Disconnect a socket from a formatted endpoint
|
316
316
|
# Returns 0 if OK, -1 if the endpoint was invalid or the function
|
317
|
-
# isn't supported.
|
317
|
+
# isn't supported.
|
318
318
|
#
|
319
319
|
# @param format [String, #to_s, nil]
|
320
320
|
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
@@ -326,12 +326,12 @@ module CZMQ
|
|
326
326
|
result
|
327
327
|
end
|
328
328
|
|
329
|
-
# Attach a socket to zero or more endpoints. If endpoints is not null,
|
330
|
-
# parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
|
329
|
+
# Attach a socket to zero or more endpoints. If endpoints is not null,
|
330
|
+
# parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
|
331
331
|
# '@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
|
332
|
-
# endpoints were valid, or -1 if there was a syntax error. If the endpoint
|
333
|
-
# does not start with '@' or '>', the serverish argument defines whether
|
334
|
-
# it is used to bind (serverish = true) or connect (serverish = false).
|
332
|
+
# endpoints were valid, or -1 if there was a syntax error. If the endpoint
|
333
|
+
# does not start with '@' or '>', the serverish argument defines whether
|
334
|
+
# it is used to bind (serverish = true) or connect (serverish = false).
|
335
335
|
#
|
336
336
|
# @param endpoints [String, #to_s, nil]
|
337
337
|
# @param serverish [Boolean]
|
@@ -354,32 +354,32 @@ module CZMQ
|
|
354
354
|
result
|
355
355
|
end
|
356
356
|
|
357
|
-
# Send a 'picture' message to the socket (or actor). The picture is a
|
357
|
+
# Send a 'picture' message to the socket (or actor). The picture is a
|
358
358
|
# string that defines the type of each frame. This makes it easy to send
|
359
|
-
# a complex multiframe message in one call. The picture can contain any
|
360
|
-
# of these characters, each corresponding to one or two arguments:
|
361
|
-
#
|
362
|
-
# i = int (signed)
|
363
|
-
# 1 = uint8_t
|
364
|
-
# 2 = uint16_t
|
365
|
-
# 4 = uint32_t
|
366
|
-
# 8 = uint64_t
|
367
|
-
# s = char *
|
368
|
-
# b = byte *, size_t (2 arguments)
|
369
|
-
# c = zchunk_t *
|
370
|
-
# f = zframe_t *
|
371
|
-
# h = zhashx_t *
|
372
|
-
# U = zuuid_t *
|
373
|
-
# p = void * (sends the pointer value, only meaningful over inproc)
|
374
|
-
# m = zmsg_t * (sends all frames in the zmsg)
|
375
|
-
# z = sends zero-sized frame (0 arguments)
|
376
|
-
# u = uint (deprecated)
|
377
|
-
#
|
378
|
-
# Note that s, b, c, and f are encoded the same way and the choice is
|
379
|
-
# offered as a convenience to the sender, which may or may not already
|
380
|
-
# have data in a zchunk or zframe. Does not change or take ownership of
|
381
|
-
# any arguments. Returns 0 if successful, -1 if sending failed for any
|
382
|
-
# reason.
|
359
|
+
# a complex multiframe message in one call. The picture can contain any
|
360
|
+
# of these characters, each corresponding to one or two arguments:
|
361
|
+
#
|
362
|
+
# i = int (signed)
|
363
|
+
# 1 = uint8_t
|
364
|
+
# 2 = uint16_t
|
365
|
+
# 4 = uint32_t
|
366
|
+
# 8 = uint64_t
|
367
|
+
# s = char *
|
368
|
+
# b = byte *, size_t (2 arguments)
|
369
|
+
# c = zchunk_t *
|
370
|
+
# f = zframe_t *
|
371
|
+
# h = zhashx_t *
|
372
|
+
# U = zuuid_t *
|
373
|
+
# p = void * (sends the pointer value, only meaningful over inproc)
|
374
|
+
# m = zmsg_t * (sends all frames in the zmsg)
|
375
|
+
# z = sends zero-sized frame (0 arguments)
|
376
|
+
# u = uint (deprecated)
|
377
|
+
#
|
378
|
+
# Note that s, b, c, and f are encoded the same way and the choice is
|
379
|
+
# offered as a convenience to the sender, which may or may not already
|
380
|
+
# have data in a zchunk or zframe. Does not change or take ownership of
|
381
|
+
# any arguments. Returns 0 if successful, -1 if sending failed for any
|
382
|
+
# reason.
|
383
383
|
#
|
384
384
|
# @param picture [String, #to_s, nil]
|
385
385
|
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
@@ -391,32 +391,32 @@ module CZMQ
|
|
391
391
|
result
|
392
392
|
end
|
393
393
|
|
394
|
-
# Send a 'picture' message to the socket (or actor). The picture is a
|
394
|
+
# Send a 'picture' message to the socket (or actor). The picture is a
|
395
395
|
# string that defines the type of each frame. This makes it easy to send
|
396
|
-
# a complex multiframe message in one call. The picture can contain any
|
397
|
-
# of these characters, each corresponding to one or two arguments:
|
398
|
-
#
|
399
|
-
# i = int (signed)
|
400
|
-
# 1 = uint8_t
|
401
|
-
# 2 = uint16_t
|
402
|
-
# 4 = uint32_t
|
403
|
-
# 8 = uint64_t
|
404
|
-
# s = char *
|
405
|
-
# b = byte *, size_t (2 arguments)
|
406
|
-
# c = zchunk_t *
|
407
|
-
# f = zframe_t *
|
408
|
-
# h = zhashx_t *
|
409
|
-
# U = zuuid_t *
|
410
|
-
# p = void * (sends the pointer value, only meaningful over inproc)
|
411
|
-
# m = zmsg_t * (sends all frames in the zmsg)
|
412
|
-
# z = sends zero-sized frame (0 arguments)
|
413
|
-
# u = uint (deprecated)
|
414
|
-
#
|
415
|
-
# Note that s, b, c, and f are encoded the same way and the choice is
|
416
|
-
# offered as a convenience to the sender, which may or may not already
|
417
|
-
# have data in a zchunk or zframe. Does not change or take ownership of
|
418
|
-
# any arguments. Returns 0 if successful, -1 if sending failed for any
|
419
|
-
# reason.
|
396
|
+
# a complex multiframe message in one call. The picture can contain any
|
397
|
+
# of these characters, each corresponding to one or two arguments:
|
398
|
+
#
|
399
|
+
# i = int (signed)
|
400
|
+
# 1 = uint8_t
|
401
|
+
# 2 = uint16_t
|
402
|
+
# 4 = uint32_t
|
403
|
+
# 8 = uint64_t
|
404
|
+
# s = char *
|
405
|
+
# b = byte *, size_t (2 arguments)
|
406
|
+
# c = zchunk_t *
|
407
|
+
# f = zframe_t *
|
408
|
+
# h = zhashx_t *
|
409
|
+
# U = zuuid_t *
|
410
|
+
# p = void * (sends the pointer value, only meaningful over inproc)
|
411
|
+
# m = zmsg_t * (sends all frames in the zmsg)
|
412
|
+
# z = sends zero-sized frame (0 arguments)
|
413
|
+
# u = uint (deprecated)
|
414
|
+
#
|
415
|
+
# Note that s, b, c, and f are encoded the same way and the choice is
|
416
|
+
# offered as a convenience to the sender, which may or may not already
|
417
|
+
# have data in a zchunk or zframe. Does not change or take ownership of
|
418
|
+
# any arguments. Returns 0 if successful, -1 if sending failed for any
|
419
|
+
# reason.
|
420
420
|
#
|
421
421
|
# This is the polymorphic version of #send.
|
422
422
|
#
|
@@ -431,9 +431,9 @@ module CZMQ
|
|
431
431
|
result
|
432
432
|
end
|
433
433
|
|
434
|
-
# Send a 'picture' message to the socket (or actor). This is a va_list
|
434
|
+
# Send a 'picture' message to the socket (or actor). This is a va_list
|
435
435
|
# version of zsock_send (), so please consult its documentation for the
|
436
|
-
# details.
|
436
|
+
# details.
|
437
437
|
#
|
438
438
|
# @param picture [String, #to_s, nil]
|
439
439
|
# @param argptr [::FFI::Pointer, #to_ptr]
|
@@ -445,9 +445,9 @@ module CZMQ
|
|
445
445
|
result
|
446
446
|
end
|
447
447
|
|
448
|
-
# Send a 'picture' message to the socket (or actor). This is a va_list
|
448
|
+
# Send a 'picture' message to the socket (or actor). This is a va_list
|
449
449
|
# version of zsock_send (), so please consult its documentation for the
|
450
|
-
# details.
|
450
|
+
# details.
|
451
451
|
#
|
452
452
|
# This is the polymorphic version of #vsend.
|
453
453
|
#
|
@@ -464,30 +464,30 @@ module CZMQ
|
|
464
464
|
|
465
465
|
# Receive a 'picture' message to the socket (or actor). See zsock_send for
|
466
466
|
# the format and meaning of the picture. Returns the picture elements into
|
467
|
-
# a series of pointers as provided by the caller:
|
468
|
-
#
|
469
|
-
# i = int * (stores signed integer)
|
470
|
-
# 4 = uint32_t * (stores 32-bit unsigned integer)
|
471
|
-
# 8 = uint64_t * (stores 64-bit unsigned integer)
|
472
|
-
# s = char ** (allocates new string)
|
473
|
-
# b = byte **, size_t * (2 arguments) (allocates memory)
|
474
|
-
# c = zchunk_t ** (creates zchunk)
|
475
|
-
# f = zframe_t ** (creates zframe)
|
476
|
-
# U = zuuid_t * (creates a zuuid with the data)
|
477
|
-
# h = zhashx_t ** (creates zhashx)
|
478
|
-
# p = void ** (stores pointer)
|
479
|
-
# m = zmsg_t ** (creates a zmsg with the remaing frames)
|
480
|
-
# z = null, asserts empty frame (0 arguments)
|
481
|
-
# u = uint * (stores unsigned integer, deprecated)
|
482
|
-
#
|
483
|
-
# Note that zsock_recv creates the returned objects, and the caller must
|
484
|
-
# destroy them when finished with them. The supplied pointers do not need
|
485
|
-
# to be initialized. Returns 0 if successful, or -1 if it failed to recv
|
486
|
-
# a message, in which case the pointers are not modified. When message
|
467
|
+
# a series of pointers as provided by the caller:
|
468
|
+
#
|
469
|
+
# i = int * (stores signed integer)
|
470
|
+
# 4 = uint32_t * (stores 32-bit unsigned integer)
|
471
|
+
# 8 = uint64_t * (stores 64-bit unsigned integer)
|
472
|
+
# s = char ** (allocates new string)
|
473
|
+
# b = byte **, size_t * (2 arguments) (allocates memory)
|
474
|
+
# c = zchunk_t ** (creates zchunk)
|
475
|
+
# f = zframe_t ** (creates zframe)
|
476
|
+
# U = zuuid_t * (creates a zuuid with the data)
|
477
|
+
# h = zhashx_t ** (creates zhashx)
|
478
|
+
# p = void ** (stores pointer)
|
479
|
+
# m = zmsg_t ** (creates a zmsg with the remaing frames)
|
480
|
+
# z = null, asserts empty frame (0 arguments)
|
481
|
+
# u = uint * (stores unsigned integer, deprecated)
|
482
|
+
#
|
483
|
+
# Note that zsock_recv creates the returned objects, and the caller must
|
484
|
+
# destroy them when finished with them. The supplied pointers do not need
|
485
|
+
# to be initialized. Returns 0 if successful, or -1 if it failed to recv
|
486
|
+
# a message, in which case the pointers are not modified. When message
|
487
487
|
# frames are truncated (a short message), sets return values to zero/null.
|
488
|
-
# If an argument pointer is NULL, does not store any value (skips it).
|
489
|
-
# An 'n' picture matches an empty frame; if the message does not match,
|
490
|
-
# the method will return -1.
|
488
|
+
# If an argument pointer is NULL, does not store any value (skips it).
|
489
|
+
# An 'n' picture matches an empty frame; if the message does not match,
|
490
|
+
# the method will return -1.
|
491
491
|
#
|
492
492
|
# @param picture [String, #to_s, nil]
|
493
493
|
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
@@ -501,30 +501,30 @@ module CZMQ
|
|
501
501
|
|
502
502
|
# Receive a 'picture' message to the socket (or actor). See zsock_send for
|
503
503
|
# the format and meaning of the picture. Returns the picture elements into
|
504
|
-
# a series of pointers as provided by the caller:
|
505
|
-
#
|
506
|
-
# i = int * (stores signed integer)
|
507
|
-
# 4 = uint32_t * (stores 32-bit unsigned integer)
|
508
|
-
# 8 = uint64_t * (stores 64-bit unsigned integer)
|
509
|
-
# s = char ** (allocates new string)
|
510
|
-
# b = byte **, size_t * (2 arguments) (allocates memory)
|
511
|
-
# c = zchunk_t ** (creates zchunk)
|
512
|
-
# f = zframe_t ** (creates zframe)
|
513
|
-
# U = zuuid_t * (creates a zuuid with the data)
|
514
|
-
# h = zhashx_t ** (creates zhashx)
|
515
|
-
# p = void ** (stores pointer)
|
516
|
-
# m = zmsg_t ** (creates a zmsg with the remaing frames)
|
517
|
-
# z = null, asserts empty frame (0 arguments)
|
518
|
-
# u = uint * (stores unsigned integer, deprecated)
|
519
|
-
#
|
520
|
-
# Note that zsock_recv creates the returned objects, and the caller must
|
521
|
-
# destroy them when finished with them. The supplied pointers do not need
|
522
|
-
# to be initialized. Returns 0 if successful, or -1 if it failed to recv
|
523
|
-
# a message, in which case the pointers are not modified. When message
|
504
|
+
# a series of pointers as provided by the caller:
|
505
|
+
#
|
506
|
+
# i = int * (stores signed integer)
|
507
|
+
# 4 = uint32_t * (stores 32-bit unsigned integer)
|
508
|
+
# 8 = uint64_t * (stores 64-bit unsigned integer)
|
509
|
+
# s = char ** (allocates new string)
|
510
|
+
# b = byte **, size_t * (2 arguments) (allocates memory)
|
511
|
+
# c = zchunk_t ** (creates zchunk)
|
512
|
+
# f = zframe_t ** (creates zframe)
|
513
|
+
# U = zuuid_t * (creates a zuuid with the data)
|
514
|
+
# h = zhashx_t ** (creates zhashx)
|
515
|
+
# p = void ** (stores pointer)
|
516
|
+
# m = zmsg_t ** (creates a zmsg with the remaing frames)
|
517
|
+
# z = null, asserts empty frame (0 arguments)
|
518
|
+
# u = uint * (stores unsigned integer, deprecated)
|
519
|
+
#
|
520
|
+
# Note that zsock_recv creates the returned objects, and the caller must
|
521
|
+
# destroy them when finished with them. The supplied pointers do not need
|
522
|
+
# to be initialized. Returns 0 if successful, or -1 if it failed to recv
|
523
|
+
# a message, in which case the pointers are not modified. When message
|
524
524
|
# frames are truncated (a short message), sets return values to zero/null.
|
525
|
-
# If an argument pointer is NULL, does not store any value (skips it).
|
526
|
-
# An 'n' picture matches an empty frame; if the message does not match,
|
527
|
-
# the method will return -1.
|
525
|
+
# If an argument pointer is NULL, does not store any value (skips it).
|
526
|
+
# An 'n' picture matches an empty frame; if the message does not match,
|
527
|
+
# the method will return -1.
|
528
528
|
#
|
529
529
|
# This is the polymorphic version of #recv.
|
530
530
|
#
|
@@ -539,9 +539,9 @@ module CZMQ
|
|
539
539
|
result
|
540
540
|
end
|
541
541
|
|
542
|
-
# Receive a 'picture' message from the socket (or actor). This is a
|
542
|
+
# Receive a 'picture' message from the socket (or actor). This is a
|
543
543
|
# va_list version of zsock_recv (), so please consult its documentation
|
544
|
-
# for the details.
|
544
|
+
# for the details.
|
545
545
|
#
|
546
546
|
# @param picture [String, #to_s, nil]
|
547
547
|
# @param argptr [::FFI::Pointer, #to_ptr]
|
@@ -553,9 +553,9 @@ module CZMQ
|
|
553
553
|
result
|
554
554
|
end
|
555
555
|
|
556
|
-
# Receive a 'picture' message from the socket (or actor). This is a
|
556
|
+
# Receive a 'picture' message from the socket (or actor). This is a
|
557
557
|
# va_list version of zsock_recv (), so please consult its documentation
|
558
|
-
# for the details.
|
558
|
+
# for the details.
|
559
559
|
#
|
560
560
|
# This is the polymorphic version of #vrecv.
|
561
561
|
#
|
@@ -570,27 +570,27 @@ module CZMQ
|
|
570
570
|
result
|
571
571
|
end
|
572
572
|
|
573
|
-
# Send a binary encoded 'picture' message to the socket (or actor). This
|
574
|
-
# method is similar to zsock_send, except the arguments are encoded in a
|
573
|
+
# Send a binary encoded 'picture' message to the socket (or actor). This
|
574
|
+
# method is similar to zsock_send, except the arguments are encoded in a
|
575
575
|
# binary format that is compatible with zproto, and is designed to reduce
|
576
|
-
# memory allocations. The pattern argument is a string that defines the
|
577
|
-
# type of each argument. Supports these argument types:
|
578
|
-
#
|
579
|
-
# pattern C type zproto type:
|
580
|
-
# 1 uint8_t type = "number" size = "1"
|
581
|
-
# 2 uint16_t type = "number" size = "2"
|
582
|
-
# 4 uint32_t type = "number" size = "3"
|
583
|
-
# 8 uint64_t type = "number" size = "4"
|
584
|
-
# s char *, 0-255 chars type = "string"
|
585
|
-
# S char *, 0-2^32-1 chars type = "longstr"
|
586
|
-
# c zchunk_t * type = "chunk"
|
587
|
-
# f zframe_t * type = "frame"
|
588
|
-
# u zuuid_t * type = "uuid"
|
589
|
-
# m zmsg_t * type = "msg"
|
590
|
-
# p void *, sends pointer value, only over inproc
|
591
|
-
#
|
592
|
-
# Does not change or take ownership of any arguments. Returns 0 if
|
593
|
-
# successful, -1 if sending failed for any reason.
|
576
|
+
# memory allocations. The pattern argument is a string that defines the
|
577
|
+
# type of each argument. Supports these argument types:
|
578
|
+
#
|
579
|
+
# pattern C type zproto type:
|
580
|
+
# 1 uint8_t type = "number" size = "1"
|
581
|
+
# 2 uint16_t type = "number" size = "2"
|
582
|
+
# 4 uint32_t type = "number" size = "3"
|
583
|
+
# 8 uint64_t type = "number" size = "4"
|
584
|
+
# s char *, 0-255 chars type = "string"
|
585
|
+
# S char *, 0-2^32-1 chars type = "longstr"
|
586
|
+
# c zchunk_t * type = "chunk"
|
587
|
+
# f zframe_t * type = "frame"
|
588
|
+
# u zuuid_t * type = "uuid"
|
589
|
+
# m zmsg_t * type = "msg"
|
590
|
+
# p void *, sends pointer value, only over inproc
|
591
|
+
#
|
592
|
+
# Does not change or take ownership of any arguments. Returns 0 if
|
593
|
+
# successful, -1 if sending failed for any reason.
|
594
594
|
#
|
595
595
|
# @param picture [String, #to_s, nil]
|
596
596
|
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
@@ -602,27 +602,27 @@ module CZMQ
|
|
602
602
|
result
|
603
603
|
end
|
604
604
|
|
605
|
-
# Send a binary encoded 'picture' message to the socket (or actor). This
|
606
|
-
# method is similar to zsock_send, except the arguments are encoded in a
|
605
|
+
# Send a binary encoded 'picture' message to the socket (or actor). This
|
606
|
+
# method is similar to zsock_send, except the arguments are encoded in a
|
607
607
|
# binary format that is compatible with zproto, and is designed to reduce
|
608
|
-
# memory allocations. The pattern argument is a string that defines the
|
609
|
-
# type of each argument. Supports these argument types:
|
610
|
-
#
|
611
|
-
# pattern C type zproto type:
|
612
|
-
# 1 uint8_t type = "number" size = "1"
|
613
|
-
# 2 uint16_t type = "number" size = "2"
|
614
|
-
# 4 uint32_t type = "number" size = "3"
|
615
|
-
# 8 uint64_t type = "number" size = "4"
|
616
|
-
# s char *, 0-255 chars type = "string"
|
617
|
-
# S char *, 0-2^32-1 chars type = "longstr"
|
618
|
-
# c zchunk_t * type = "chunk"
|
619
|
-
# f zframe_t * type = "frame"
|
620
|
-
# u zuuid_t * type = "uuid"
|
621
|
-
# m zmsg_t * type = "msg"
|
622
|
-
# p void *, sends pointer value, only over inproc
|
623
|
-
#
|
624
|
-
# Does not change or take ownership of any arguments. Returns 0 if
|
625
|
-
# successful, -1 if sending failed for any reason.
|
608
|
+
# memory allocations. The pattern argument is a string that defines the
|
609
|
+
# type of each argument. Supports these argument types:
|
610
|
+
#
|
611
|
+
# pattern C type zproto type:
|
612
|
+
# 1 uint8_t type = "number" size = "1"
|
613
|
+
# 2 uint16_t type = "number" size = "2"
|
614
|
+
# 4 uint32_t type = "number" size = "3"
|
615
|
+
# 8 uint64_t type = "number" size = "4"
|
616
|
+
# s char *, 0-255 chars type = "string"
|
617
|
+
# S char *, 0-2^32-1 chars type = "longstr"
|
618
|
+
# c zchunk_t * type = "chunk"
|
619
|
+
# f zframe_t * type = "frame"
|
620
|
+
# u zuuid_t * type = "uuid"
|
621
|
+
# m zmsg_t * type = "msg"
|
622
|
+
# p void *, sends pointer value, only over inproc
|
623
|
+
#
|
624
|
+
# Does not change or take ownership of any arguments. Returns 0 if
|
625
|
+
# successful, -1 if sending failed for any reason.
|
626
626
|
#
|
627
627
|
# This is the polymorphic version of #bsend.
|
628
628
|
#
|
@@ -637,17 +637,23 @@ module CZMQ
|
|
637
637
|
result
|
638
638
|
end
|
639
639
|
|
640
|
-
# Receive a binary encoded 'picture' message from the socket (or actor).
|
641
|
-
# This method is similar to zsock_recv, except the arguments are encoded
|
642
|
-
# in a binary format that is compatible with zproto, and is designed to
|
640
|
+
# Receive a binary encoded 'picture' message from the socket (or actor).
|
641
|
+
# This method is similar to zsock_recv, except the arguments are encoded
|
642
|
+
# in a binary format that is compatible with zproto, and is designed to
|
643
643
|
# reduce memory allocations. The pattern argument is a string that defines
|
644
|
-
# the type of each argument. See zsock_bsend for the supported argument
|
645
|
-
# types. All arguments must be pointers; this call sets them to point to
|
646
|
-
# values held on a per-socket basis.
|
647
|
-
#
|
648
|
-
#
|
649
|
-
#
|
650
|
-
#
|
644
|
+
# the type of each argument. See zsock_bsend for the supported argument
|
645
|
+
# types. All arguments must be pointers; this call sets them to point to
|
646
|
+
# values held on a per-socket basis.
|
647
|
+
# For types 1, 2, 4 and 8 the caller must allocate the memory itself before
|
648
|
+
# calling zsock_brecv.
|
649
|
+
# For types S, the caller must free the value once finished with it, as
|
650
|
+
# zsock_brecv will allocate the buffer.
|
651
|
+
# For type s, the caller must not free the value as it is stored in a
|
652
|
+
# local cache for performance purposes.
|
653
|
+
# For types c, f, u and m the caller must call the appropriate destructor
|
654
|
+
# depending on the object as zsock_brecv will create new objects.
|
655
|
+
# For type p the caller must coordinate with the sender, as it is just a
|
656
|
+
# pointer value being passed.
|
651
657
|
#
|
652
658
|
# @param picture [String, #to_s, nil]
|
653
659
|
# @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
|
@@ -659,17 +665,23 @@ module CZMQ
|
|
659
665
|
result
|
660
666
|
end
|
661
667
|
|
662
|
-
# Receive a binary encoded 'picture' message from the socket (or actor).
|
663
|
-
# This method is similar to zsock_recv, except the arguments are encoded
|
664
|
-
# in a binary format that is compatible with zproto, and is designed to
|
668
|
+
# Receive a binary encoded 'picture' message from the socket (or actor).
|
669
|
+
# This method is similar to zsock_recv, except the arguments are encoded
|
670
|
+
# in a binary format that is compatible with zproto, and is designed to
|
665
671
|
# reduce memory allocations. The pattern argument is a string that defines
|
666
|
-
# the type of each argument. See zsock_bsend for the supported argument
|
667
|
-
# types. All arguments must be pointers; this call sets them to point to
|
668
|
-
# values held on a per-socket basis.
|
669
|
-
#
|
670
|
-
#
|
671
|
-
#
|
672
|
-
#
|
672
|
+
# the type of each argument. See zsock_bsend for the supported argument
|
673
|
+
# types. All arguments must be pointers; this call sets them to point to
|
674
|
+
# values held on a per-socket basis.
|
675
|
+
# For types 1, 2, 4 and 8 the caller must allocate the memory itself before
|
676
|
+
# calling zsock_brecv.
|
677
|
+
# For types S, the caller must free the value once finished with it, as
|
678
|
+
# zsock_brecv will allocate the buffer.
|
679
|
+
# For type s, the caller must not free the value as it is stored in a
|
680
|
+
# local cache for performance purposes.
|
681
|
+
# For types c, f, u and m the caller must call the appropriate destructor
|
682
|
+
# depending on the object as zsock_brecv will create new objects.
|
683
|
+
# For type p the caller must coordinate with the sender, as it is just a
|
684
|
+
# pointer value being passed.
|
673
685
|
#
|
674
686
|
# This is the polymorphic version of #brecv.
|
675
687
|
#
|
@@ -685,7 +697,7 @@ module CZMQ
|
|
685
697
|
end
|
686
698
|
|
687
699
|
# Return socket routing ID if any. This returns 0 if the socket is not
|
688
|
-
# of type ZMQ_SERVER or if no request was already received on it.
|
700
|
+
# of type ZMQ_SERVER or if no request was already received on it.
|
689
701
|
#
|
690
702
|
# @return [Integer]
|
691
703
|
def routing_id()
|
@@ -695,7 +707,7 @@ module CZMQ
|
|
695
707
|
result
|
696
708
|
end
|
697
709
|
|
698
|
-
# Set routing ID on socket. The socket MUST be of type ZMQ_SERVER.
|
710
|
+
# Set routing ID on socket. The socket MUST be of type ZMQ_SERVER.
|
699
711
|
# This will be used when sending messages on the socket via the zsock API.
|
700
712
|
#
|
701
713
|
# @param routing_id [Integer, #to_int, #to_i]
|
@@ -709,8 +721,8 @@ module CZMQ
|
|
709
721
|
end
|
710
722
|
|
711
723
|
# Set socket to use unbounded pipes (HWM=0); use this in cases when you are
|
712
|
-
# totally certain the message volume can fit in memory. This method works
|
713
|
-
# across all versions of ZeroMQ. Takes a polymorphic socket reference.
|
724
|
+
# totally certain the message volume can fit in memory. This method works
|
725
|
+
# across all versions of ZeroMQ. Takes a polymorphic socket reference.
|
714
726
|
#
|
715
727
|
# @return [void]
|
716
728
|
def set_unbounded()
|
@@ -721,8 +733,8 @@ module CZMQ
|
|
721
733
|
end
|
722
734
|
|
723
735
|
# Set socket to use unbounded pipes (HWM=0); use this in cases when you are
|
724
|
-
# totally certain the message volume can fit in memory. This method works
|
725
|
-
# across all versions of ZeroMQ. Takes a polymorphic socket reference.
|
736
|
+
# totally certain the message volume can fit in memory. This method works
|
737
|
+
# across all versions of ZeroMQ. Takes a polymorphic socket reference.
|
726
738
|
#
|
727
739
|
# This is the polymorphic version of #set_unbounded.
|
728
740
|
#
|
@@ -735,11 +747,11 @@ module CZMQ
|
|
735
747
|
result
|
736
748
|
end
|
737
749
|
|
738
|
-
# Send a signal over a socket. A signal is a short message carrying a
|
739
|
-
# success/failure code (by convention, 0 means OK). Signals are encoded
|
740
|
-
# to be distinguishable from "normal" messages. Accepts a zsock_t or a
|
750
|
+
# Send a signal over a socket. A signal is a short message carrying a
|
751
|
+
# success/failure code (by convention, 0 means OK). Signals are encoded
|
752
|
+
# to be distinguishable from "normal" messages. Accepts a zsock_t or a
|
741
753
|
# zactor_t argument, and returns 0 if successful, -1 if the signal could
|
742
|
-
# not be sent. Takes a polymorphic socket reference.
|
754
|
+
# not be sent. Takes a polymorphic socket reference.
|
743
755
|
#
|
744
756
|
# @param status [Integer, #to_int, #to_i]
|
745
757
|
# @return [Integer]
|
@@ -751,11 +763,11 @@ module CZMQ
|
|
751
763
|
result
|
752
764
|
end
|
753
765
|
|
754
|
-
# Send a signal over a socket. A signal is a short message carrying a
|
755
|
-
# success/failure code (by convention, 0 means OK). Signals are encoded
|
756
|
-
# to be distinguishable from "normal" messages. Accepts a zsock_t or a
|
766
|
+
# Send a signal over a socket. A signal is a short message carrying a
|
767
|
+
# success/failure code (by convention, 0 means OK). Signals are encoded
|
768
|
+
# to be distinguishable from "normal" messages. Accepts a zsock_t or a
|
757
769
|
# zactor_t argument, and returns 0 if successful, -1 if the signal could
|
758
|
-
# not be sent. Takes a polymorphic socket reference.
|
770
|
+
# not be sent. Takes a polymorphic socket reference.
|
759
771
|
#
|
760
772
|
# This is the polymorphic version of #signal.
|
761
773
|
#
|
@@ -770,10 +782,10 @@ module CZMQ
|
|
770
782
|
result
|
771
783
|
end
|
772
784
|
|
773
|
-
# Wait on a signal. Use this to coordinate between threads, over pipe
|
785
|
+
# Wait on a signal. Use this to coordinate between threads, over pipe
|
774
786
|
# pairs. Blocks until the signal is received. Returns -1 on error, 0 or
|
775
|
-
# greater on success. Accepts a zsock_t or a zactor_t as argument.
|
776
|
-
# Takes a polymorphic socket reference.
|
787
|
+
# greater on success. Accepts a zsock_t or a zactor_t as argument.
|
788
|
+
# Takes a polymorphic socket reference.
|
777
789
|
#
|
778
790
|
# @return [Integer]
|
779
791
|
def wait()
|
@@ -783,10 +795,10 @@ module CZMQ
|
|
783
795
|
result
|
784
796
|
end
|
785
797
|
|
786
|
-
# Wait on a signal. Use this to coordinate between threads, over pipe
|
798
|
+
# Wait on a signal. Use this to coordinate between threads, over pipe
|
787
799
|
# pairs. Blocks until the signal is received. Returns -1 on error, 0 or
|
788
|
-
# greater on success. Accepts a zsock_t or a zactor_t as argument.
|
789
|
-
# Takes a polymorphic socket reference.
|
800
|
+
# greater on success. Accepts a zsock_t or a zactor_t as argument.
|
801
|
+
# Takes a polymorphic socket reference.
|
790
802
|
#
|
791
803
|
# This is the polymorphic version of #wait.
|
792
804
|
#
|
@@ -799,9 +811,9 @@ module CZMQ
|
|
799
811
|
result
|
800
812
|
end
|
801
813
|
|
802
|
-
# If there is a partial message still waiting on the socket, remove and
|
814
|
+
# If there is a partial message still waiting on the socket, remove and
|
803
815
|
# discard it. This is useful when reading partial messages, to get specific
|
804
|
-
# message types.
|
816
|
+
# message types.
|
805
817
|
#
|
806
818
|
# @return [void]
|
807
819
|
def flush()
|
@@ -811,9 +823,9 @@ module CZMQ
|
|
811
823
|
result
|
812
824
|
end
|
813
825
|
|
814
|
-
# If there is a partial message still waiting on the socket, remove and
|
826
|
+
# If there is a partial message still waiting on the socket, remove and
|
815
827
|
# discard it. This is useful when reading partial messages, to get specific
|
816
|
-
# message types.
|
828
|
+
# message types.
|
817
829
|
#
|
818
830
|
# This is the polymorphic version of #flush.
|
819
831
|
#
|
@@ -827,7 +839,7 @@ module CZMQ
|
|
827
839
|
end
|
828
840
|
|
829
841
|
# Join a group for the RADIO-DISH pattern. Call only on ZMQ_DISH.
|
830
|
-
# Returns 0 if OK, -1 if failed.
|
842
|
+
# Returns 0 if OK, -1 if failed.
|
831
843
|
#
|
832
844
|
# @param group [String, #to_s, nil]
|
833
845
|
# @return [Integer]
|
@@ -839,7 +851,7 @@ module CZMQ
|
|
839
851
|
end
|
840
852
|
|
841
853
|
# Join a group for the RADIO-DISH pattern. Call only on ZMQ_DISH.
|
842
|
-
# Returns 0 if OK, -1 if failed.
|
854
|
+
# Returns 0 if OK, -1 if failed.
|
843
855
|
#
|
844
856
|
# This is the polymorphic version of #join.
|
845
857
|
#
|
@@ -854,7 +866,7 @@ module CZMQ
|
|
854
866
|
end
|
855
867
|
|
856
868
|
# Leave a group for the RADIO-DISH pattern. Call only on ZMQ_DISH.
|
857
|
-
# Returns 0 if OK, -1 if failed.
|
869
|
+
# Returns 0 if OK, -1 if failed.
|
858
870
|
#
|
859
871
|
# @param group [String, #to_s, nil]
|
860
872
|
# @return [Integer]
|
@@ -866,7 +878,7 @@ module CZMQ
|
|
866
878
|
end
|
867
879
|
|
868
880
|
# Leave a group for the RADIO-DISH pattern. Call only on ZMQ_DISH.
|
869
|
-
# Returns 0 if OK, -1 if failed.
|
881
|
+
# Returns 0 if OK, -1 if failed.
|
870
882
|
#
|
871
883
|
# This is the polymorphic version of #leave.
|
872
884
|
#
|
@@ -881,7 +893,7 @@ module CZMQ
|
|
881
893
|
end
|
882
894
|
|
883
895
|
# Probe the supplied object, and report if it looks like a zsock_t.
|
884
|
-
# Takes a polymorphic socket reference.
|
896
|
+
# Takes a polymorphic socket reference.
|
885
897
|
#
|
886
898
|
# @param self_ [::FFI::Pointer, #to_ptr]
|
887
899
|
# @return [Boolean]
|
@@ -891,9 +903,9 @@ module CZMQ
|
|
891
903
|
end
|
892
904
|
|
893
905
|
# Probe the supplied reference. If it looks like a zsock_t instance, return
|
894
|
-
# the underlying libzmq socket handle; else if it looks like a file
|
895
|
-
# descriptor, return NULL; else if it looks like a libzmq socket handle,
|
896
|
-
# return the supplied value. Takes a polymorphic socket reference.
|
906
|
+
# the underlying libzmq socket handle; else if it looks like a file
|
907
|
+
# descriptor, return NULL; else if it looks like a libzmq socket handle,
|
908
|
+
# return the supplied value. Takes a polymorphic socket reference.
|
897
909
|
#
|
898
910
|
# @param self_ [::FFI::Pointer, #to_ptr]
|
899
911
|
# @return [::FFI::Pointer]
|
@@ -903,7 +915,7 @@ module CZMQ
|
|
903
915
|
end
|
904
916
|
|
905
917
|
# Get socket option `heartbeat_ivl`.
|
906
|
-
# Available from libzmq 4.2.0.
|
918
|
+
# Available from libzmq 4.2.0.
|
907
919
|
#
|
908
920
|
# @return [Integer]
|
909
921
|
def heartbeat_ivl()
|
@@ -914,7 +926,7 @@ module CZMQ
|
|
914
926
|
end
|
915
927
|
|
916
928
|
# Get socket option `heartbeat_ivl`.
|
917
|
-
# Available from libzmq 4.2.0.
|
929
|
+
# Available from libzmq 4.2.0.
|
918
930
|
#
|
919
931
|
# This is the polymorphic version of #heartbeat_ivl.
|
920
932
|
#
|
@@ -928,7 +940,7 @@ module CZMQ
|
|
928
940
|
end
|
929
941
|
|
930
942
|
# Set socket option `heartbeat_ivl`.
|
931
|
-
# Available from libzmq 4.2.0.
|
943
|
+
# Available from libzmq 4.2.0.
|
932
944
|
#
|
933
945
|
# @param heartbeat_ivl [Integer, #to_int, #to_i]
|
934
946
|
# @return [void]
|
@@ -941,7 +953,7 @@ module CZMQ
|
|
941
953
|
end
|
942
954
|
|
943
955
|
# Set socket option `heartbeat_ivl`.
|
944
|
-
# Available from libzmq 4.2.0.
|
956
|
+
# Available from libzmq 4.2.0.
|
945
957
|
#
|
946
958
|
# This is the polymorphic version of #set_heartbeat_ivl.
|
947
959
|
#
|
@@ -957,7 +969,7 @@ module CZMQ
|
|
957
969
|
end
|
958
970
|
|
959
971
|
# Get socket option `heartbeat_ttl`.
|
960
|
-
# Available from libzmq 4.2.0.
|
972
|
+
# Available from libzmq 4.2.0.
|
961
973
|
#
|
962
974
|
# @return [Integer]
|
963
975
|
def heartbeat_ttl()
|
@@ -968,7 +980,7 @@ module CZMQ
|
|
968
980
|
end
|
969
981
|
|
970
982
|
# Get socket option `heartbeat_ttl`.
|
971
|
-
# Available from libzmq 4.2.0.
|
983
|
+
# Available from libzmq 4.2.0.
|
972
984
|
#
|
973
985
|
# This is the polymorphic version of #heartbeat_ttl.
|
974
986
|
#
|
@@ -982,7 +994,7 @@ module CZMQ
|
|
982
994
|
end
|
983
995
|
|
984
996
|
# Set socket option `heartbeat_ttl`.
|
985
|
-
# Available from libzmq 4.2.0.
|
997
|
+
# Available from libzmq 4.2.0.
|
986
998
|
#
|
987
999
|
# @param heartbeat_ttl [Integer, #to_int, #to_i]
|
988
1000
|
# @return [void]
|
@@ -995,7 +1007,7 @@ module CZMQ
|
|
995
1007
|
end
|
996
1008
|
|
997
1009
|
# Set socket option `heartbeat_ttl`.
|
998
|
-
# Available from libzmq 4.2.0.
|
1010
|
+
# Available from libzmq 4.2.0.
|
999
1011
|
#
|
1000
1012
|
# This is the polymorphic version of #set_heartbeat_ttl.
|
1001
1013
|
#
|
@@ -1011,7 +1023,7 @@ module CZMQ
|
|
1011
1023
|
end
|
1012
1024
|
|
1013
1025
|
# Get socket option `heartbeat_timeout`.
|
1014
|
-
# Available from libzmq 4.2.0.
|
1026
|
+
# Available from libzmq 4.2.0.
|
1015
1027
|
#
|
1016
1028
|
# @return [Integer]
|
1017
1029
|
def heartbeat_timeout()
|
@@ -1022,7 +1034,7 @@ module CZMQ
|
|
1022
1034
|
end
|
1023
1035
|
|
1024
1036
|
# Get socket option `heartbeat_timeout`.
|
1025
|
-
# Available from libzmq 4.2.0.
|
1037
|
+
# Available from libzmq 4.2.0.
|
1026
1038
|
#
|
1027
1039
|
# This is the polymorphic version of #heartbeat_timeout.
|
1028
1040
|
#
|
@@ -1036,7 +1048,7 @@ module CZMQ
|
|
1036
1048
|
end
|
1037
1049
|
|
1038
1050
|
# Set socket option `heartbeat_timeout`.
|
1039
|
-
# Available from libzmq 4.2.0.
|
1051
|
+
# Available from libzmq 4.2.0.
|
1040
1052
|
#
|
1041
1053
|
# @param heartbeat_timeout [Integer, #to_int, #to_i]
|
1042
1054
|
# @return [void]
|
@@ -1049,7 +1061,7 @@ module CZMQ
|
|
1049
1061
|
end
|
1050
1062
|
|
1051
1063
|
# Set socket option `heartbeat_timeout`.
|
1052
|
-
# Available from libzmq 4.2.0.
|
1064
|
+
# Available from libzmq 4.2.0.
|
1053
1065
|
#
|
1054
1066
|
# This is the polymorphic version of #set_heartbeat_timeout.
|
1055
1067
|
#
|
@@ -1064,7 +1076,7 @@ module CZMQ
|
|
1064
1076
|
result
|
1065
1077
|
end
|
1066
1078
|
|
1067
|
-
# Get socket option `use_fd`.
|
1079
|
+
# Get socket option `use_fd`.
|
1068
1080
|
# Available from libzmq 4.2.0.
|
1069
1081
|
#
|
1070
1082
|
# @return [Integer]
|
@@ -1075,7 +1087,7 @@ module CZMQ
|
|
1075
1087
|
result
|
1076
1088
|
end
|
1077
1089
|
|
1078
|
-
# Get socket option `use_fd`.
|
1090
|
+
# Get socket option `use_fd`.
|
1079
1091
|
# Available from libzmq 4.2.0.
|
1080
1092
|
#
|
1081
1093
|
# This is the polymorphic version of #use_fd.
|
@@ -1089,7 +1101,7 @@ module CZMQ
|
|
1089
1101
|
result
|
1090
1102
|
end
|
1091
1103
|
|
1092
|
-
# Set socket option `use_fd`.
|
1104
|
+
# Set socket option `use_fd`.
|
1093
1105
|
# Available from libzmq 4.2.0.
|
1094
1106
|
#
|
1095
1107
|
# @param use_fd [Integer, #to_int, #to_i]
|
@@ -1102,7 +1114,7 @@ module CZMQ
|
|
1102
1114
|
result
|
1103
1115
|
end
|
1104
1116
|
|
1105
|
-
# Set socket option `use_fd`.
|
1117
|
+
# Set socket option `use_fd`.
|
1106
1118
|
# Available from libzmq 4.2.0.
|
1107
1119
|
#
|
1108
1120
|
# This is the polymorphic version of #set_use_fd.
|
@@ -1119,7 +1131,7 @@ module CZMQ
|
|
1119
1131
|
end
|
1120
1132
|
|
1121
1133
|
# Set socket option `xpub_manual`.
|
1122
|
-
# Available from libzmq 4.2.0.
|
1134
|
+
# Available from libzmq 4.2.0.
|
1123
1135
|
#
|
1124
1136
|
# @param xpub_manual [Integer, #to_int, #to_i]
|
1125
1137
|
# @return [void]
|
@@ -1132,7 +1144,7 @@ module CZMQ
|
|
1132
1144
|
end
|
1133
1145
|
|
1134
1146
|
# Set socket option `xpub_manual`.
|
1135
|
-
# Available from libzmq 4.2.0.
|
1147
|
+
# Available from libzmq 4.2.0.
|
1136
1148
|
#
|
1137
1149
|
# This is the polymorphic version of #set_xpub_manual.
|
1138
1150
|
#
|
@@ -1148,7 +1160,7 @@ module CZMQ
|
|
1148
1160
|
end
|
1149
1161
|
|
1150
1162
|
# Set socket option `xpub_welcome_msg`.
|
1151
|
-
# Available from libzmq 4.2.0.
|
1163
|
+
# Available from libzmq 4.2.0.
|
1152
1164
|
#
|
1153
1165
|
# @param xpub_welcome_msg [String, #to_s, nil]
|
1154
1166
|
# @return [void]
|
@@ -1160,7 +1172,7 @@ module CZMQ
|
|
1160
1172
|
end
|
1161
1173
|
|
1162
1174
|
# Set socket option `xpub_welcome_msg`.
|
1163
|
-
# Available from libzmq 4.2.0.
|
1175
|
+
# Available from libzmq 4.2.0.
|
1164
1176
|
#
|
1165
1177
|
# This is the polymorphic version of #set_xpub_welcome_msg.
|
1166
1178
|
#
|
@@ -1175,7 +1187,7 @@ module CZMQ
|
|
1175
1187
|
end
|
1176
1188
|
|
1177
1189
|
# Set socket option `stream_notify`.
|
1178
|
-
# Available from libzmq 4.2.0.
|
1190
|
+
# Available from libzmq 4.2.0.
|
1179
1191
|
#
|
1180
1192
|
# @param stream_notify [Integer, #to_int, #to_i]
|
1181
1193
|
# @return [void]
|
@@ -1188,7 +1200,7 @@ module CZMQ
|
|
1188
1200
|
end
|
1189
1201
|
|
1190
1202
|
# Set socket option `stream_notify`.
|
1191
|
-
# Available from libzmq 4.2.0.
|
1203
|
+
# Available from libzmq 4.2.0.
|
1192
1204
|
#
|
1193
1205
|
# This is the polymorphic version of #set_stream_notify.
|
1194
1206
|
#
|
@@ -1204,7 +1216,7 @@ module CZMQ
|
|
1204
1216
|
end
|
1205
1217
|
|
1206
1218
|
# Get socket option `invert_matching`.
|
1207
|
-
# Available from libzmq 4.2.0.
|
1219
|
+
# Available from libzmq 4.2.0.
|
1208
1220
|
#
|
1209
1221
|
# @return [Integer]
|
1210
1222
|
def invert_matching()
|
@@ -1215,7 +1227,7 @@ module CZMQ
|
|
1215
1227
|
end
|
1216
1228
|
|
1217
1229
|
# Get socket option `invert_matching`.
|
1218
|
-
# Available from libzmq 4.2.0.
|
1230
|
+
# Available from libzmq 4.2.0.
|
1219
1231
|
#
|
1220
1232
|
# This is the polymorphic version of #invert_matching.
|
1221
1233
|
#
|
@@ -1229,7 +1241,7 @@ module CZMQ
|
|
1229
1241
|
end
|
1230
1242
|
|
1231
1243
|
# Set socket option `invert_matching`.
|
1232
|
-
# Available from libzmq 4.2.0.
|
1244
|
+
# Available from libzmq 4.2.0.
|
1233
1245
|
#
|
1234
1246
|
# @param invert_matching [Integer, #to_int, #to_i]
|
1235
1247
|
# @return [void]
|
@@ -1242,7 +1254,7 @@ module CZMQ
|
|
1242
1254
|
end
|
1243
1255
|
|
1244
1256
|
# Set socket option `invert_matching`.
|
1245
|
-
# Available from libzmq 4.2.0.
|
1257
|
+
# Available from libzmq 4.2.0.
|
1246
1258
|
#
|
1247
1259
|
# This is the polymorphic version of #set_invert_matching.
|
1248
1260
|
#
|
@@ -1258,7 +1270,7 @@ module CZMQ
|
|
1258
1270
|
end
|
1259
1271
|
|
1260
1272
|
# Set socket option `xpub_verboser`.
|
1261
|
-
# Available from libzmq 4.2.0.
|
1273
|
+
# Available from libzmq 4.2.0.
|
1262
1274
|
#
|
1263
1275
|
# @param xpub_verboser [Integer, #to_int, #to_i]
|
1264
1276
|
# @return [void]
|
@@ -1271,7 +1283,7 @@ module CZMQ
|
|
1271
1283
|
end
|
1272
1284
|
|
1273
1285
|
# Set socket option `xpub_verboser`.
|
1274
|
-
# Available from libzmq 4.2.0.
|
1286
|
+
# Available from libzmq 4.2.0.
|
1275
1287
|
#
|
1276
1288
|
# This is the polymorphic version of #set_xpub_verboser.
|
1277
1289
|
#
|
@@ -1287,7 +1299,7 @@ module CZMQ
|
|
1287
1299
|
end
|
1288
1300
|
|
1289
1301
|
# Get socket option `connect_timeout`.
|
1290
|
-
# Available from libzmq 4.2.0.
|
1302
|
+
# Available from libzmq 4.2.0.
|
1291
1303
|
#
|
1292
1304
|
# @return [Integer]
|
1293
1305
|
def connect_timeout()
|
@@ -1298,7 +1310,7 @@ module CZMQ
|
|
1298
1310
|
end
|
1299
1311
|
|
1300
1312
|
# Get socket option `connect_timeout`.
|
1301
|
-
# Available from libzmq 4.2.0.
|
1313
|
+
# Available from libzmq 4.2.0.
|
1302
1314
|
#
|
1303
1315
|
# This is the polymorphic version of #connect_timeout.
|
1304
1316
|
#
|
@@ -1312,7 +1324,7 @@ module CZMQ
|
|
1312
1324
|
end
|
1313
1325
|
|
1314
1326
|
# Set socket option `connect_timeout`.
|
1315
|
-
# Available from libzmq 4.2.0.
|
1327
|
+
# Available from libzmq 4.2.0.
|
1316
1328
|
#
|
1317
1329
|
# @param connect_timeout [Integer, #to_int, #to_i]
|
1318
1330
|
# @return [void]
|
@@ -1325,7 +1337,7 @@ module CZMQ
|
|
1325
1337
|
end
|
1326
1338
|
|
1327
1339
|
# Set socket option `connect_timeout`.
|
1328
|
-
# Available from libzmq 4.2.0.
|
1340
|
+
# Available from libzmq 4.2.0.
|
1329
1341
|
#
|
1330
1342
|
# This is the polymorphic version of #set_connect_timeout.
|
1331
1343
|
#
|
@@ -1341,7 +1353,7 @@ module CZMQ
|
|
1341
1353
|
end
|
1342
1354
|
|
1343
1355
|
# Get socket option `tcp_maxrt`.
|
1344
|
-
# Available from libzmq 4.2.0.
|
1356
|
+
# Available from libzmq 4.2.0.
|
1345
1357
|
#
|
1346
1358
|
# @return [Integer]
|
1347
1359
|
def tcp_maxrt()
|
@@ -1352,7 +1364,7 @@ module CZMQ
|
|
1352
1364
|
end
|
1353
1365
|
|
1354
1366
|
# Get socket option `tcp_maxrt`.
|
1355
|
-
# Available from libzmq 4.2.0.
|
1367
|
+
# Available from libzmq 4.2.0.
|
1356
1368
|
#
|
1357
1369
|
# This is the polymorphic version of #tcp_maxrt.
|
1358
1370
|
#
|
@@ -1366,7 +1378,7 @@ module CZMQ
|
|
1366
1378
|
end
|
1367
1379
|
|
1368
1380
|
# Set socket option `tcp_maxrt`.
|
1369
|
-
# Available from libzmq 4.2.0.
|
1381
|
+
# Available from libzmq 4.2.0.
|
1370
1382
|
#
|
1371
1383
|
# @param tcp_maxrt [Integer, #to_int, #to_i]
|
1372
1384
|
# @return [void]
|
@@ -1379,7 +1391,7 @@ module CZMQ
|
|
1379
1391
|
end
|
1380
1392
|
|
1381
1393
|
# Set socket option `tcp_maxrt`.
|
1382
|
-
# Available from libzmq 4.2.0.
|
1394
|
+
# Available from libzmq 4.2.0.
|
1383
1395
|
#
|
1384
1396
|
# This is the polymorphic version of #set_tcp_maxrt.
|
1385
1397
|
#
|
@@ -1395,7 +1407,7 @@ module CZMQ
|
|
1395
1407
|
end
|
1396
1408
|
|
1397
1409
|
# Get socket option `thread_safe`.
|
1398
|
-
# Available from libzmq 4.2.0.
|
1410
|
+
# Available from libzmq 4.2.0.
|
1399
1411
|
#
|
1400
1412
|
# @return [Integer]
|
1401
1413
|
def thread_safe()
|
@@ -1406,7 +1418,7 @@ module CZMQ
|
|
1406
1418
|
end
|
1407
1419
|
|
1408
1420
|
# Get socket option `thread_safe`.
|
1409
|
-
# Available from libzmq 4.2.0.
|
1421
|
+
# Available from libzmq 4.2.0.
|
1410
1422
|
#
|
1411
1423
|
# This is the polymorphic version of #thread_safe.
|
1412
1424
|
#
|
@@ -1420,7 +1432,7 @@ module CZMQ
|
|
1420
1432
|
end
|
1421
1433
|
|
1422
1434
|
# Get socket option `multicast_maxtpdu`.
|
1423
|
-
# Available from libzmq 4.2.0.
|
1435
|
+
# Available from libzmq 4.2.0.
|
1424
1436
|
#
|
1425
1437
|
# @return [Integer]
|
1426
1438
|
def multicast_maxtpdu()
|
@@ -1431,7 +1443,7 @@ module CZMQ
|
|
1431
1443
|
end
|
1432
1444
|
|
1433
1445
|
# Get socket option `multicast_maxtpdu`.
|
1434
|
-
# Available from libzmq 4.2.0.
|
1446
|
+
# Available from libzmq 4.2.0.
|
1435
1447
|
#
|
1436
1448
|
# This is the polymorphic version of #multicast_maxtpdu.
|
1437
1449
|
#
|
@@ -1445,7 +1457,7 @@ module CZMQ
|
|
1445
1457
|
end
|
1446
1458
|
|
1447
1459
|
# Set socket option `multicast_maxtpdu`.
|
1448
|
-
# Available from libzmq 4.2.0.
|
1460
|
+
# Available from libzmq 4.2.0.
|
1449
1461
|
#
|
1450
1462
|
# @param multicast_maxtpdu [Integer, #to_int, #to_i]
|
1451
1463
|
# @return [void]
|
@@ -1458,7 +1470,7 @@ module CZMQ
|
|
1458
1470
|
end
|
1459
1471
|
|
1460
1472
|
# Set socket option `multicast_maxtpdu`.
|
1461
|
-
# Available from libzmq 4.2.0.
|
1473
|
+
# Available from libzmq 4.2.0.
|
1462
1474
|
#
|
1463
1475
|
# This is the polymorphic version of #set_multicast_maxtpdu.
|
1464
1476
|
#
|
@@ -1474,7 +1486,7 @@ module CZMQ
|
|
1474
1486
|
end
|
1475
1487
|
|
1476
1488
|
# Get socket option `vmci_buffer_size`.
|
1477
|
-
# Available from libzmq 4.2.0.
|
1489
|
+
# Available from libzmq 4.2.0.
|
1478
1490
|
#
|
1479
1491
|
# @return [Integer]
|
1480
1492
|
def vmci_buffer_size()
|
@@ -1485,7 +1497,7 @@ module CZMQ
|
|
1485
1497
|
end
|
1486
1498
|
|
1487
1499
|
# Get socket option `vmci_buffer_size`.
|
1488
|
-
# Available from libzmq 4.2.0.
|
1500
|
+
# Available from libzmq 4.2.0.
|
1489
1501
|
#
|
1490
1502
|
# This is the polymorphic version of #vmci_buffer_size.
|
1491
1503
|
#
|
@@ -1499,7 +1511,7 @@ module CZMQ
|
|
1499
1511
|
end
|
1500
1512
|
|
1501
1513
|
# Set socket option `vmci_buffer_size`.
|
1502
|
-
# Available from libzmq 4.2.0.
|
1514
|
+
# Available from libzmq 4.2.0.
|
1503
1515
|
#
|
1504
1516
|
# @param vmci_buffer_size [Integer, #to_int, #to_i]
|
1505
1517
|
# @return [void]
|
@@ -1512,7 +1524,7 @@ module CZMQ
|
|
1512
1524
|
end
|
1513
1525
|
|
1514
1526
|
# Set socket option `vmci_buffer_size`.
|
1515
|
-
# Available from libzmq 4.2.0.
|
1527
|
+
# Available from libzmq 4.2.0.
|
1516
1528
|
#
|
1517
1529
|
# This is the polymorphic version of #set_vmci_buffer_size.
|
1518
1530
|
#
|
@@ -1528,7 +1540,7 @@ module CZMQ
|
|
1528
1540
|
end
|
1529
1541
|
|
1530
1542
|
# Get socket option `vmci_buffer_min_size`.
|
1531
|
-
# Available from libzmq 4.2.0.
|
1543
|
+
# Available from libzmq 4.2.0.
|
1532
1544
|
#
|
1533
1545
|
# @return [Integer]
|
1534
1546
|
def vmci_buffer_min_size()
|
@@ -1539,7 +1551,7 @@ module CZMQ
|
|
1539
1551
|
end
|
1540
1552
|
|
1541
1553
|
# Get socket option `vmci_buffer_min_size`.
|
1542
|
-
# Available from libzmq 4.2.0.
|
1554
|
+
# Available from libzmq 4.2.0.
|
1543
1555
|
#
|
1544
1556
|
# This is the polymorphic version of #vmci_buffer_min_size.
|
1545
1557
|
#
|
@@ -1553,7 +1565,7 @@ module CZMQ
|
|
1553
1565
|
end
|
1554
1566
|
|
1555
1567
|
# Set socket option `vmci_buffer_min_size`.
|
1556
|
-
# Available from libzmq 4.2.0.
|
1568
|
+
# Available from libzmq 4.2.0.
|
1557
1569
|
#
|
1558
1570
|
# @param vmci_buffer_min_size [Integer, #to_int, #to_i]
|
1559
1571
|
# @return [void]
|
@@ -1566,7 +1578,7 @@ module CZMQ
|
|
1566
1578
|
end
|
1567
1579
|
|
1568
1580
|
# Set socket option `vmci_buffer_min_size`.
|
1569
|
-
# Available from libzmq 4.2.0.
|
1581
|
+
# Available from libzmq 4.2.0.
|
1570
1582
|
#
|
1571
1583
|
# This is the polymorphic version of #set_vmci_buffer_min_size.
|
1572
1584
|
#
|
@@ -1582,7 +1594,7 @@ module CZMQ
|
|
1582
1594
|
end
|
1583
1595
|
|
1584
1596
|
# Get socket option `vmci_buffer_max_size`.
|
1585
|
-
# Available from libzmq 4.2.0.
|
1597
|
+
# Available from libzmq 4.2.0.
|
1586
1598
|
#
|
1587
1599
|
# @return [Integer]
|
1588
1600
|
def vmci_buffer_max_size()
|
@@ -1593,7 +1605,7 @@ module CZMQ
|
|
1593
1605
|
end
|
1594
1606
|
|
1595
1607
|
# Get socket option `vmci_buffer_max_size`.
|
1596
|
-
# Available from libzmq 4.2.0.
|
1608
|
+
# Available from libzmq 4.2.0.
|
1597
1609
|
#
|
1598
1610
|
# This is the polymorphic version of #vmci_buffer_max_size.
|
1599
1611
|
#
|
@@ -1607,7 +1619,7 @@ module CZMQ
|
|
1607
1619
|
end
|
1608
1620
|
|
1609
1621
|
# Set socket option `vmci_buffer_max_size`.
|
1610
|
-
# Available from libzmq 4.2.0.
|
1622
|
+
# Available from libzmq 4.2.0.
|
1611
1623
|
#
|
1612
1624
|
# @param vmci_buffer_max_size [Integer, #to_int, #to_i]
|
1613
1625
|
# @return [void]
|
@@ -1620,7 +1632,7 @@ module CZMQ
|
|
1620
1632
|
end
|
1621
1633
|
|
1622
1634
|
# Set socket option `vmci_buffer_max_size`.
|
1623
|
-
# Available from libzmq 4.2.0.
|
1635
|
+
# Available from libzmq 4.2.0.
|
1624
1636
|
#
|
1625
1637
|
# This is the polymorphic version of #set_vmci_buffer_max_size.
|
1626
1638
|
#
|
@@ -1636,7 +1648,7 @@ module CZMQ
|
|
1636
1648
|
end
|
1637
1649
|
|
1638
1650
|
# Get socket option `vmci_connect_timeout`.
|
1639
|
-
# Available from libzmq 4.2.0.
|
1651
|
+
# Available from libzmq 4.2.0.
|
1640
1652
|
#
|
1641
1653
|
# @return [Integer]
|
1642
1654
|
def vmci_connect_timeout()
|
@@ -1647,7 +1659,7 @@ module CZMQ
|
|
1647
1659
|
end
|
1648
1660
|
|
1649
1661
|
# Get socket option `vmci_connect_timeout`.
|
1650
|
-
# Available from libzmq 4.2.0.
|
1662
|
+
# Available from libzmq 4.2.0.
|
1651
1663
|
#
|
1652
1664
|
# This is the polymorphic version of #vmci_connect_timeout.
|
1653
1665
|
#
|
@@ -1661,7 +1673,7 @@ module CZMQ
|
|
1661
1673
|
end
|
1662
1674
|
|
1663
1675
|
# Set socket option `vmci_connect_timeout`.
|
1664
|
-
# Available from libzmq 4.2.0.
|
1676
|
+
# Available from libzmq 4.2.0.
|
1665
1677
|
#
|
1666
1678
|
# @param vmci_connect_timeout [Integer, #to_int, #to_i]
|
1667
1679
|
# @return [void]
|
@@ -1674,7 +1686,7 @@ module CZMQ
|
|
1674
1686
|
end
|
1675
1687
|
|
1676
1688
|
# Set socket option `vmci_connect_timeout`.
|
1677
|
-
# Available from libzmq 4.2.0.
|
1689
|
+
# Available from libzmq 4.2.0.
|
1678
1690
|
#
|
1679
1691
|
# This is the polymorphic version of #set_vmci_connect_timeout.
|
1680
1692
|
#
|
@@ -1689,7 +1701,7 @@ module CZMQ
|
|
1689
1701
|
result
|
1690
1702
|
end
|
1691
1703
|
|
1692
|
-
# Get socket option `tos`.
|
1704
|
+
# Get socket option `tos`.
|
1693
1705
|
# Available from libzmq 4.1.0.
|
1694
1706
|
#
|
1695
1707
|
# @return [Integer]
|
@@ -1700,7 +1712,7 @@ module CZMQ
|
|
1700
1712
|
result
|
1701
1713
|
end
|
1702
1714
|
|
1703
|
-
# Get socket option `tos`.
|
1715
|
+
# Get socket option `tos`.
|
1704
1716
|
# Available from libzmq 4.1.0.
|
1705
1717
|
#
|
1706
1718
|
# This is the polymorphic version of #tos.
|
@@ -1714,7 +1726,7 @@ module CZMQ
|
|
1714
1726
|
result
|
1715
1727
|
end
|
1716
1728
|
|
1717
|
-
# Set socket option `tos`.
|
1729
|
+
# Set socket option `tos`.
|
1718
1730
|
# Available from libzmq 4.1.0.
|
1719
1731
|
#
|
1720
1732
|
# @param tos [Integer, #to_int, #to_i]
|
@@ -1727,7 +1739,7 @@ module CZMQ
|
|
1727
1739
|
result
|
1728
1740
|
end
|
1729
1741
|
|
1730
|
-
# Set socket option `tos`.
|
1742
|
+
# Set socket option `tos`.
|
1731
1743
|
# Available from libzmq 4.1.0.
|
1732
1744
|
#
|
1733
1745
|
# This is the polymorphic version of #set_tos.
|
@@ -1744,7 +1756,7 @@ module CZMQ
|
|
1744
1756
|
end
|
1745
1757
|
|
1746
1758
|
# Set socket option `router_handover`.
|
1747
|
-
# Available from libzmq 4.1.0.
|
1759
|
+
# Available from libzmq 4.1.0.
|
1748
1760
|
#
|
1749
1761
|
# @param router_handover [Integer, #to_int, #to_i]
|
1750
1762
|
# @return [void]
|
@@ -1757,7 +1769,7 @@ module CZMQ
|
|
1757
1769
|
end
|
1758
1770
|
|
1759
1771
|
# Set socket option `router_handover`.
|
1760
|
-
# Available from libzmq 4.1.0.
|
1772
|
+
# Available from libzmq 4.1.0.
|
1761
1773
|
#
|
1762
1774
|
# This is the polymorphic version of #set_router_handover.
|
1763
1775
|
#
|
@@ -1773,7 +1785,7 @@ module CZMQ
|
|
1773
1785
|
end
|
1774
1786
|
|
1775
1787
|
# Set socket option `connect_rid`.
|
1776
|
-
# Available from libzmq 4.1.0.
|
1788
|
+
# Available from libzmq 4.1.0.
|
1777
1789
|
#
|
1778
1790
|
# @param connect_rid [String, #to_s, nil]
|
1779
1791
|
# @return [void]
|
@@ -1785,7 +1797,7 @@ module CZMQ
|
|
1785
1797
|
end
|
1786
1798
|
|
1787
1799
|
# Set socket option `connect_rid`.
|
1788
|
-
# Available from libzmq 4.1.0.
|
1800
|
+
# Available from libzmq 4.1.0.
|
1789
1801
|
#
|
1790
1802
|
# This is the polymorphic version of #set_connect_rid.
|
1791
1803
|
#
|
@@ -1800,7 +1812,7 @@ module CZMQ
|
|
1800
1812
|
end
|
1801
1813
|
|
1802
1814
|
# Set socket option `connect_rid` from 32-octet binary
|
1803
|
-
# Available from libzmq 4.1.0.
|
1815
|
+
# Available from libzmq 4.1.0.
|
1804
1816
|
#
|
1805
1817
|
# @param connect_rid [::FFI::Pointer, #to_ptr]
|
1806
1818
|
# @return [void]
|
@@ -1812,7 +1824,7 @@ module CZMQ
|
|
1812
1824
|
end
|
1813
1825
|
|
1814
1826
|
# Set socket option `connect_rid` from 32-octet binary
|
1815
|
-
# Available from libzmq 4.1.0.
|
1827
|
+
# Available from libzmq 4.1.0.
|
1816
1828
|
#
|
1817
1829
|
# This is the polymorphic version of #set_connect_rid_bin.
|
1818
1830
|
#
|
@@ -1827,7 +1839,7 @@ module CZMQ
|
|
1827
1839
|
end
|
1828
1840
|
|
1829
1841
|
# Get socket option `handshake_ivl`.
|
1830
|
-
# Available from libzmq 4.1.0.
|
1842
|
+
# Available from libzmq 4.1.0.
|
1831
1843
|
#
|
1832
1844
|
# @return [Integer]
|
1833
1845
|
def handshake_ivl()
|
@@ -1838,7 +1850,7 @@ module CZMQ
|
|
1838
1850
|
end
|
1839
1851
|
|
1840
1852
|
# Get socket option `handshake_ivl`.
|
1841
|
-
# Available from libzmq 4.1.0.
|
1853
|
+
# Available from libzmq 4.1.0.
|
1842
1854
|
#
|
1843
1855
|
# This is the polymorphic version of #handshake_ivl.
|
1844
1856
|
#
|
@@ -1852,7 +1864,7 @@ module CZMQ
|
|
1852
1864
|
end
|
1853
1865
|
|
1854
1866
|
# Set socket option `handshake_ivl`.
|
1855
|
-
# Available from libzmq 4.1.0.
|
1867
|
+
# Available from libzmq 4.1.0.
|
1856
1868
|
#
|
1857
1869
|
# @param handshake_ivl [Integer, #to_int, #to_i]
|
1858
1870
|
# @return [void]
|
@@ -1865,7 +1877,7 @@ module CZMQ
|
|
1865
1877
|
end
|
1866
1878
|
|
1867
1879
|
# Set socket option `handshake_ivl`.
|
1868
|
-
# Available from libzmq 4.1.0.
|
1880
|
+
# Available from libzmq 4.1.0.
|
1869
1881
|
#
|
1870
1882
|
# This is the polymorphic version of #set_handshake_ivl.
|
1871
1883
|
#
|
@@ -1881,7 +1893,7 @@ module CZMQ
|
|
1881
1893
|
end
|
1882
1894
|
|
1883
1895
|
# Get socket option `socks_proxy`.
|
1884
|
-
# Available from libzmq 4.1.0.
|
1896
|
+
# Available from libzmq 4.1.0.
|
1885
1897
|
#
|
1886
1898
|
# @return [::FFI::AutoPointer]
|
1887
1899
|
def socks_proxy()
|
@@ -1893,7 +1905,7 @@ module CZMQ
|
|
1893
1905
|
end
|
1894
1906
|
|
1895
1907
|
# Get socket option `socks_proxy`.
|
1896
|
-
# Available from libzmq 4.1.0.
|
1908
|
+
# Available from libzmq 4.1.0.
|
1897
1909
|
#
|
1898
1910
|
# This is the polymorphic version of #socks_proxy.
|
1899
1911
|
#
|
@@ -1908,7 +1920,7 @@ module CZMQ
|
|
1908
1920
|
end
|
1909
1921
|
|
1910
1922
|
# Set socket option `socks_proxy`.
|
1911
|
-
# Available from libzmq 4.1.0.
|
1923
|
+
# Available from libzmq 4.1.0.
|
1912
1924
|
#
|
1913
1925
|
# @param socks_proxy [String, #to_s, nil]
|
1914
1926
|
# @return [void]
|
@@ -1920,7 +1932,7 @@ module CZMQ
|
|
1920
1932
|
end
|
1921
1933
|
|
1922
1934
|
# Set socket option `socks_proxy`.
|
1923
|
-
# Available from libzmq 4.1.0.
|
1935
|
+
# Available from libzmq 4.1.0.
|
1924
1936
|
#
|
1925
1937
|
# This is the polymorphic version of #set_socks_proxy.
|
1926
1938
|
#
|
@@ -1935,7 +1947,7 @@ module CZMQ
|
|
1935
1947
|
end
|
1936
1948
|
|
1937
1949
|
# Set socket option `xpub_nodrop`.
|
1938
|
-
# Available from libzmq 4.1.0.
|
1950
|
+
# Available from libzmq 4.1.0.
|
1939
1951
|
#
|
1940
1952
|
# @param xpub_nodrop [Integer, #to_int, #to_i]
|
1941
1953
|
# @return [void]
|
@@ -1948,7 +1960,7 @@ module CZMQ
|
|
1948
1960
|
end
|
1949
1961
|
|
1950
1962
|
# Set socket option `xpub_nodrop`.
|
1951
|
-
# Available from libzmq 4.1.0.
|
1963
|
+
# Available from libzmq 4.1.0.
|
1952
1964
|
#
|
1953
1965
|
# This is the polymorphic version of #set_xpub_nodrop.
|
1954
1966
|
#
|
@@ -1964,7 +1976,7 @@ module CZMQ
|
|
1964
1976
|
end
|
1965
1977
|
|
1966
1978
|
# Set socket option `router_mandatory`.
|
1967
|
-
# Available from libzmq 4.0.0.
|
1979
|
+
# Available from libzmq 4.0.0.
|
1968
1980
|
#
|
1969
1981
|
# @param router_mandatory [Integer, #to_int, #to_i]
|
1970
1982
|
# @return [void]
|
@@ -1977,7 +1989,7 @@ module CZMQ
|
|
1977
1989
|
end
|
1978
1990
|
|
1979
1991
|
# Set socket option `router_mandatory`.
|
1980
|
-
# Available from libzmq 4.0.0.
|
1992
|
+
# Available from libzmq 4.0.0.
|
1981
1993
|
#
|
1982
1994
|
# This is the polymorphic version of #set_router_mandatory.
|
1983
1995
|
#
|
@@ -1993,7 +2005,7 @@ module CZMQ
|
|
1993
2005
|
end
|
1994
2006
|
|
1995
2007
|
# Set socket option `probe_router`.
|
1996
|
-
# Available from libzmq 4.0.0.
|
2008
|
+
# Available from libzmq 4.0.0.
|
1997
2009
|
#
|
1998
2010
|
# @param probe_router [Integer, #to_int, #to_i]
|
1999
2011
|
# @return [void]
|
@@ -2006,7 +2018,7 @@ module CZMQ
|
|
2006
2018
|
end
|
2007
2019
|
|
2008
2020
|
# Set socket option `probe_router`.
|
2009
|
-
# Available from libzmq 4.0.0.
|
2021
|
+
# Available from libzmq 4.0.0.
|
2010
2022
|
#
|
2011
2023
|
# This is the polymorphic version of #set_probe_router.
|
2012
2024
|
#
|
@@ -2022,7 +2034,7 @@ module CZMQ
|
|
2022
2034
|
end
|
2023
2035
|
|
2024
2036
|
# Set socket option `req_relaxed`.
|
2025
|
-
# Available from libzmq 4.0.0.
|
2037
|
+
# Available from libzmq 4.0.0.
|
2026
2038
|
#
|
2027
2039
|
# @param req_relaxed [Integer, #to_int, #to_i]
|
2028
2040
|
# @return [void]
|
@@ -2035,7 +2047,7 @@ module CZMQ
|
|
2035
2047
|
end
|
2036
2048
|
|
2037
2049
|
# Set socket option `req_relaxed`.
|
2038
|
-
# Available from libzmq 4.0.0.
|
2050
|
+
# Available from libzmq 4.0.0.
|
2039
2051
|
#
|
2040
2052
|
# This is the polymorphic version of #set_req_relaxed.
|
2041
2053
|
#
|
@@ -2051,7 +2063,7 @@ module CZMQ
|
|
2051
2063
|
end
|
2052
2064
|
|
2053
2065
|
# Set socket option `req_correlate`.
|
2054
|
-
# Available from libzmq 4.0.0.
|
2066
|
+
# Available from libzmq 4.0.0.
|
2055
2067
|
#
|
2056
2068
|
# @param req_correlate [Integer, #to_int, #to_i]
|
2057
2069
|
# @return [void]
|
@@ -2064,7 +2076,7 @@ module CZMQ
|
|
2064
2076
|
end
|
2065
2077
|
|
2066
2078
|
# Set socket option `req_correlate`.
|
2067
|
-
# Available from libzmq 4.0.0.
|
2079
|
+
# Available from libzmq 4.0.0.
|
2068
2080
|
#
|
2069
2081
|
# This is the polymorphic version of #set_req_correlate.
|
2070
2082
|
#
|
@@ -2080,7 +2092,7 @@ module CZMQ
|
|
2080
2092
|
end
|
2081
2093
|
|
2082
2094
|
# Set socket option `conflate`.
|
2083
|
-
# Available from libzmq 4.0.0.
|
2095
|
+
# Available from libzmq 4.0.0.
|
2084
2096
|
#
|
2085
2097
|
# @param conflate [Integer, #to_int, #to_i]
|
2086
2098
|
# @return [void]
|
@@ -2093,7 +2105,7 @@ module CZMQ
|
|
2093
2105
|
end
|
2094
2106
|
|
2095
2107
|
# Set socket option `conflate`.
|
2096
|
-
# Available from libzmq 4.0.0.
|
2108
|
+
# Available from libzmq 4.0.0.
|
2097
2109
|
#
|
2098
2110
|
# This is the polymorphic version of #set_conflate.
|
2099
2111
|
#
|
@@ -2109,7 +2121,7 @@ module CZMQ
|
|
2109
2121
|
end
|
2110
2122
|
|
2111
2123
|
# Get socket option `zap_domain`.
|
2112
|
-
# Available from libzmq 4.0.0.
|
2124
|
+
# Available from libzmq 4.0.0.
|
2113
2125
|
#
|
2114
2126
|
# @return [::FFI::AutoPointer]
|
2115
2127
|
def zap_domain()
|
@@ -2121,7 +2133,7 @@ module CZMQ
|
|
2121
2133
|
end
|
2122
2134
|
|
2123
2135
|
# Get socket option `zap_domain`.
|
2124
|
-
# Available from libzmq 4.0.0.
|
2136
|
+
# Available from libzmq 4.0.0.
|
2125
2137
|
#
|
2126
2138
|
# This is the polymorphic version of #zap_domain.
|
2127
2139
|
#
|
@@ -2136,7 +2148,7 @@ module CZMQ
|
|
2136
2148
|
end
|
2137
2149
|
|
2138
2150
|
# Set socket option `zap_domain`.
|
2139
|
-
# Available from libzmq 4.0.0.
|
2151
|
+
# Available from libzmq 4.0.0.
|
2140
2152
|
#
|
2141
2153
|
# @param zap_domain [String, #to_s, nil]
|
2142
2154
|
# @return [void]
|
@@ -2148,7 +2160,7 @@ module CZMQ
|
|
2148
2160
|
end
|
2149
2161
|
|
2150
2162
|
# Set socket option `zap_domain`.
|
2151
|
-
# Available from libzmq 4.0.0.
|
2163
|
+
# Available from libzmq 4.0.0.
|
2152
2164
|
#
|
2153
2165
|
# This is the polymorphic version of #set_zap_domain.
|
2154
2166
|
#
|
@@ -2163,7 +2175,7 @@ module CZMQ
|
|
2163
2175
|
end
|
2164
2176
|
|
2165
2177
|
# Get socket option `mechanism`.
|
2166
|
-
# Available from libzmq 4.0.0.
|
2178
|
+
# Available from libzmq 4.0.0.
|
2167
2179
|
#
|
2168
2180
|
# @return [Integer]
|
2169
2181
|
def mechanism()
|
@@ -2174,7 +2186,7 @@ module CZMQ
|
|
2174
2186
|
end
|
2175
2187
|
|
2176
2188
|
# Get socket option `mechanism`.
|
2177
|
-
# Available from libzmq 4.0.0.
|
2189
|
+
# Available from libzmq 4.0.0.
|
2178
2190
|
#
|
2179
2191
|
# This is the polymorphic version of #mechanism.
|
2180
2192
|
#
|
@@ -2188,7 +2200,7 @@ module CZMQ
|
|
2188
2200
|
end
|
2189
2201
|
|
2190
2202
|
# Get socket option `plain_server`.
|
2191
|
-
# Available from libzmq 4.0.0.
|
2203
|
+
# Available from libzmq 4.0.0.
|
2192
2204
|
#
|
2193
2205
|
# @return [Integer]
|
2194
2206
|
def plain_server()
|
@@ -2199,7 +2211,7 @@ module CZMQ
|
|
2199
2211
|
end
|
2200
2212
|
|
2201
2213
|
# Get socket option `plain_server`.
|
2202
|
-
# Available from libzmq 4.0.0.
|
2214
|
+
# Available from libzmq 4.0.0.
|
2203
2215
|
#
|
2204
2216
|
# This is the polymorphic version of #plain_server.
|
2205
2217
|
#
|
@@ -2213,7 +2225,7 @@ module CZMQ
|
|
2213
2225
|
end
|
2214
2226
|
|
2215
2227
|
# Set socket option `plain_server`.
|
2216
|
-
# Available from libzmq 4.0.0.
|
2228
|
+
# Available from libzmq 4.0.0.
|
2217
2229
|
#
|
2218
2230
|
# @param plain_server [Integer, #to_int, #to_i]
|
2219
2231
|
# @return [void]
|
@@ -2226,7 +2238,7 @@ module CZMQ
|
|
2226
2238
|
end
|
2227
2239
|
|
2228
2240
|
# Set socket option `plain_server`.
|
2229
|
-
# Available from libzmq 4.0.0.
|
2241
|
+
# Available from libzmq 4.0.0.
|
2230
2242
|
#
|
2231
2243
|
# This is the polymorphic version of #set_plain_server.
|
2232
2244
|
#
|
@@ -2242,7 +2254,7 @@ module CZMQ
|
|
2242
2254
|
end
|
2243
2255
|
|
2244
2256
|
# Get socket option `plain_username`.
|
2245
|
-
# Available from libzmq 4.0.0.
|
2257
|
+
# Available from libzmq 4.0.0.
|
2246
2258
|
#
|
2247
2259
|
# @return [::FFI::AutoPointer]
|
2248
2260
|
def plain_username()
|
@@ -2254,7 +2266,7 @@ module CZMQ
|
|
2254
2266
|
end
|
2255
2267
|
|
2256
2268
|
# Get socket option `plain_username`.
|
2257
|
-
# Available from libzmq 4.0.0.
|
2269
|
+
# Available from libzmq 4.0.0.
|
2258
2270
|
#
|
2259
2271
|
# This is the polymorphic version of #plain_username.
|
2260
2272
|
#
|
@@ -2269,7 +2281,7 @@ module CZMQ
|
|
2269
2281
|
end
|
2270
2282
|
|
2271
2283
|
# Set socket option `plain_username`.
|
2272
|
-
# Available from libzmq 4.0.0.
|
2284
|
+
# Available from libzmq 4.0.0.
|
2273
2285
|
#
|
2274
2286
|
# @param plain_username [String, #to_s, nil]
|
2275
2287
|
# @return [void]
|
@@ -2281,7 +2293,7 @@ module CZMQ
|
|
2281
2293
|
end
|
2282
2294
|
|
2283
2295
|
# Set socket option `plain_username`.
|
2284
|
-
# Available from libzmq 4.0.0.
|
2296
|
+
# Available from libzmq 4.0.0.
|
2285
2297
|
#
|
2286
2298
|
# This is the polymorphic version of #set_plain_username.
|
2287
2299
|
#
|
@@ -2296,7 +2308,7 @@ module CZMQ
|
|
2296
2308
|
end
|
2297
2309
|
|
2298
2310
|
# Get socket option `plain_password`.
|
2299
|
-
# Available from libzmq 4.0.0.
|
2311
|
+
# Available from libzmq 4.0.0.
|
2300
2312
|
#
|
2301
2313
|
# @return [::FFI::AutoPointer]
|
2302
2314
|
def plain_password()
|
@@ -2308,7 +2320,7 @@ module CZMQ
|
|
2308
2320
|
end
|
2309
2321
|
|
2310
2322
|
# Get socket option `plain_password`.
|
2311
|
-
# Available from libzmq 4.0.0.
|
2323
|
+
# Available from libzmq 4.0.0.
|
2312
2324
|
#
|
2313
2325
|
# This is the polymorphic version of #plain_password.
|
2314
2326
|
#
|
@@ -2323,7 +2335,7 @@ module CZMQ
|
|
2323
2335
|
end
|
2324
2336
|
|
2325
2337
|
# Set socket option `plain_password`.
|
2326
|
-
# Available from libzmq 4.0.0.
|
2338
|
+
# Available from libzmq 4.0.0.
|
2327
2339
|
#
|
2328
2340
|
# @param plain_password [String, #to_s, nil]
|
2329
2341
|
# @return [void]
|
@@ -2335,7 +2347,7 @@ module CZMQ
|
|
2335
2347
|
end
|
2336
2348
|
|
2337
2349
|
# Set socket option `plain_password`.
|
2338
|
-
# Available from libzmq 4.0.0.
|
2350
|
+
# Available from libzmq 4.0.0.
|
2339
2351
|
#
|
2340
2352
|
# This is the polymorphic version of #set_plain_password.
|
2341
2353
|
#
|
@@ -2350,7 +2362,7 @@ module CZMQ
|
|
2350
2362
|
end
|
2351
2363
|
|
2352
2364
|
# Get socket option `curve_server`.
|
2353
|
-
# Available from libzmq 4.0.0.
|
2365
|
+
# Available from libzmq 4.0.0.
|
2354
2366
|
#
|
2355
2367
|
# @return [Integer]
|
2356
2368
|
def curve_server()
|
@@ -2361,7 +2373,7 @@ module CZMQ
|
|
2361
2373
|
end
|
2362
2374
|
|
2363
2375
|
# Get socket option `curve_server`.
|
2364
|
-
# Available from libzmq 4.0.0.
|
2376
|
+
# Available from libzmq 4.0.0.
|
2365
2377
|
#
|
2366
2378
|
# This is the polymorphic version of #curve_server.
|
2367
2379
|
#
|
@@ -2375,7 +2387,7 @@ module CZMQ
|
|
2375
2387
|
end
|
2376
2388
|
|
2377
2389
|
# Set socket option `curve_server`.
|
2378
|
-
# Available from libzmq 4.0.0.
|
2390
|
+
# Available from libzmq 4.0.0.
|
2379
2391
|
#
|
2380
2392
|
# @param curve_server [Integer, #to_int, #to_i]
|
2381
2393
|
# @return [void]
|
@@ -2388,7 +2400,7 @@ module CZMQ
|
|
2388
2400
|
end
|
2389
2401
|
|
2390
2402
|
# Set socket option `curve_server`.
|
2391
|
-
# Available from libzmq 4.0.0.
|
2403
|
+
# Available from libzmq 4.0.0.
|
2392
2404
|
#
|
2393
2405
|
# This is the polymorphic version of #set_curve_server.
|
2394
2406
|
#
|
@@ -2404,7 +2416,7 @@ module CZMQ
|
|
2404
2416
|
end
|
2405
2417
|
|
2406
2418
|
# Get socket option `curve_publickey`.
|
2407
|
-
# Available from libzmq 4.0.0.
|
2419
|
+
# Available from libzmq 4.0.0.
|
2408
2420
|
#
|
2409
2421
|
# @return [::FFI::AutoPointer]
|
2410
2422
|
def curve_publickey()
|
@@ -2416,7 +2428,7 @@ module CZMQ
|
|
2416
2428
|
end
|
2417
2429
|
|
2418
2430
|
# Get socket option `curve_publickey`.
|
2419
|
-
# Available from libzmq 4.0.0.
|
2431
|
+
# Available from libzmq 4.0.0.
|
2420
2432
|
#
|
2421
2433
|
# This is the polymorphic version of #curve_publickey.
|
2422
2434
|
#
|
@@ -2431,7 +2443,7 @@ module CZMQ
|
|
2431
2443
|
end
|
2432
2444
|
|
2433
2445
|
# Set socket option `curve_publickey`.
|
2434
|
-
# Available from libzmq 4.0.0.
|
2446
|
+
# Available from libzmq 4.0.0.
|
2435
2447
|
#
|
2436
2448
|
# @param curve_publickey [String, #to_s, nil]
|
2437
2449
|
# @return [void]
|
@@ -2443,7 +2455,7 @@ module CZMQ
|
|
2443
2455
|
end
|
2444
2456
|
|
2445
2457
|
# Set socket option `curve_publickey`.
|
2446
|
-
# Available from libzmq 4.0.0.
|
2458
|
+
# Available from libzmq 4.0.0.
|
2447
2459
|
#
|
2448
2460
|
# This is the polymorphic version of #set_curve_publickey.
|
2449
2461
|
#
|
@@ -2458,7 +2470,7 @@ module CZMQ
|
|
2458
2470
|
end
|
2459
2471
|
|
2460
2472
|
# Set socket option `curve_publickey` from 32-octet binary
|
2461
|
-
# Available from libzmq 4.0.0.
|
2473
|
+
# Available from libzmq 4.0.0.
|
2462
2474
|
#
|
2463
2475
|
# @param curve_publickey [::FFI::Pointer, #to_ptr]
|
2464
2476
|
# @return [void]
|
@@ -2470,7 +2482,7 @@ module CZMQ
|
|
2470
2482
|
end
|
2471
2483
|
|
2472
2484
|
# Set socket option `curve_publickey` from 32-octet binary
|
2473
|
-
# Available from libzmq 4.0.0.
|
2485
|
+
# Available from libzmq 4.0.0.
|
2474
2486
|
#
|
2475
2487
|
# This is the polymorphic version of #set_curve_publickey_bin.
|
2476
2488
|
#
|
@@ -2485,7 +2497,7 @@ module CZMQ
|
|
2485
2497
|
end
|
2486
2498
|
|
2487
2499
|
# Get socket option `curve_secretkey`.
|
2488
|
-
# Available from libzmq 4.0.0.
|
2500
|
+
# Available from libzmq 4.0.0.
|
2489
2501
|
#
|
2490
2502
|
# @return [::FFI::AutoPointer]
|
2491
2503
|
def curve_secretkey()
|
@@ -2497,7 +2509,7 @@ module CZMQ
|
|
2497
2509
|
end
|
2498
2510
|
|
2499
2511
|
# Get socket option `curve_secretkey`.
|
2500
|
-
# Available from libzmq 4.0.0.
|
2512
|
+
# Available from libzmq 4.0.0.
|
2501
2513
|
#
|
2502
2514
|
# This is the polymorphic version of #curve_secretkey.
|
2503
2515
|
#
|
@@ -2512,7 +2524,7 @@ module CZMQ
|
|
2512
2524
|
end
|
2513
2525
|
|
2514
2526
|
# Set socket option `curve_secretkey`.
|
2515
|
-
# Available from libzmq 4.0.0.
|
2527
|
+
# Available from libzmq 4.0.0.
|
2516
2528
|
#
|
2517
2529
|
# @param curve_secretkey [String, #to_s, nil]
|
2518
2530
|
# @return [void]
|
@@ -2524,7 +2536,7 @@ module CZMQ
|
|
2524
2536
|
end
|
2525
2537
|
|
2526
2538
|
# Set socket option `curve_secretkey`.
|
2527
|
-
# Available from libzmq 4.0.0.
|
2539
|
+
# Available from libzmq 4.0.0.
|
2528
2540
|
#
|
2529
2541
|
# This is the polymorphic version of #set_curve_secretkey.
|
2530
2542
|
#
|
@@ -2539,7 +2551,7 @@ module CZMQ
|
|
2539
2551
|
end
|
2540
2552
|
|
2541
2553
|
# Set socket option `curve_secretkey` from 32-octet binary
|
2542
|
-
# Available from libzmq 4.0.0.
|
2554
|
+
# Available from libzmq 4.0.0.
|
2543
2555
|
#
|
2544
2556
|
# @param curve_secretkey [::FFI::Pointer, #to_ptr]
|
2545
2557
|
# @return [void]
|
@@ -2551,7 +2563,7 @@ module CZMQ
|
|
2551
2563
|
end
|
2552
2564
|
|
2553
2565
|
# Set socket option `curve_secretkey` from 32-octet binary
|
2554
|
-
# Available from libzmq 4.0.0.
|
2566
|
+
# Available from libzmq 4.0.0.
|
2555
2567
|
#
|
2556
2568
|
# This is the polymorphic version of #set_curve_secretkey_bin.
|
2557
2569
|
#
|
@@ -2566,7 +2578,7 @@ module CZMQ
|
|
2566
2578
|
end
|
2567
2579
|
|
2568
2580
|
# Get socket option `curve_serverkey`.
|
2569
|
-
# Available from libzmq 4.0.0.
|
2581
|
+
# Available from libzmq 4.0.0.
|
2570
2582
|
#
|
2571
2583
|
# @return [::FFI::AutoPointer]
|
2572
2584
|
def curve_serverkey()
|
@@ -2578,7 +2590,7 @@ module CZMQ
|
|
2578
2590
|
end
|
2579
2591
|
|
2580
2592
|
# Get socket option `curve_serverkey`.
|
2581
|
-
# Available from libzmq 4.0.0.
|
2593
|
+
# Available from libzmq 4.0.0.
|
2582
2594
|
#
|
2583
2595
|
# This is the polymorphic version of #curve_serverkey.
|
2584
2596
|
#
|
@@ -2593,7 +2605,7 @@ module CZMQ
|
|
2593
2605
|
end
|
2594
2606
|
|
2595
2607
|
# Set socket option `curve_serverkey`.
|
2596
|
-
# Available from libzmq 4.0.0.
|
2608
|
+
# Available from libzmq 4.0.0.
|
2597
2609
|
#
|
2598
2610
|
# @param curve_serverkey [String, #to_s, nil]
|
2599
2611
|
# @return [void]
|
@@ -2605,7 +2617,7 @@ module CZMQ
|
|
2605
2617
|
end
|
2606
2618
|
|
2607
2619
|
# Set socket option `curve_serverkey`.
|
2608
|
-
# Available from libzmq 4.0.0.
|
2620
|
+
# Available from libzmq 4.0.0.
|
2609
2621
|
#
|
2610
2622
|
# This is the polymorphic version of #set_curve_serverkey.
|
2611
2623
|
#
|
@@ -2620,7 +2632,7 @@ module CZMQ
|
|
2620
2632
|
end
|
2621
2633
|
|
2622
2634
|
# Set socket option `curve_serverkey` from 32-octet binary
|
2623
|
-
# Available from libzmq 4.0.0.
|
2635
|
+
# Available from libzmq 4.0.0.
|
2624
2636
|
#
|
2625
2637
|
# @param curve_serverkey [::FFI::Pointer, #to_ptr]
|
2626
2638
|
# @return [void]
|
@@ -2632,7 +2644,7 @@ module CZMQ
|
|
2632
2644
|
end
|
2633
2645
|
|
2634
2646
|
# Set socket option `curve_serverkey` from 32-octet binary
|
2635
|
-
# Available from libzmq 4.0.0.
|
2647
|
+
# Available from libzmq 4.0.0.
|
2636
2648
|
#
|
2637
2649
|
# This is the polymorphic version of #set_curve_serverkey_bin.
|
2638
2650
|
#
|
@@ -2647,7 +2659,7 @@ module CZMQ
|
|
2647
2659
|
end
|
2648
2660
|
|
2649
2661
|
# Get socket option `gssapi_server`.
|
2650
|
-
# Available from libzmq 4.0.0.
|
2662
|
+
# Available from libzmq 4.0.0.
|
2651
2663
|
#
|
2652
2664
|
# @return [Integer]
|
2653
2665
|
def gssapi_server()
|
@@ -2658,7 +2670,7 @@ module CZMQ
|
|
2658
2670
|
end
|
2659
2671
|
|
2660
2672
|
# Get socket option `gssapi_server`.
|
2661
|
-
# Available from libzmq 4.0.0.
|
2673
|
+
# Available from libzmq 4.0.0.
|
2662
2674
|
#
|
2663
2675
|
# This is the polymorphic version of #gssapi_server.
|
2664
2676
|
#
|
@@ -2672,7 +2684,7 @@ module CZMQ
|
|
2672
2684
|
end
|
2673
2685
|
|
2674
2686
|
# Set socket option `gssapi_server`.
|
2675
|
-
# Available from libzmq 4.0.0.
|
2687
|
+
# Available from libzmq 4.0.0.
|
2676
2688
|
#
|
2677
2689
|
# @param gssapi_server [Integer, #to_int, #to_i]
|
2678
2690
|
# @return [void]
|
@@ -2685,7 +2697,7 @@ module CZMQ
|
|
2685
2697
|
end
|
2686
2698
|
|
2687
2699
|
# Set socket option `gssapi_server`.
|
2688
|
-
# Available from libzmq 4.0.0.
|
2700
|
+
# Available from libzmq 4.0.0.
|
2689
2701
|
#
|
2690
2702
|
# This is the polymorphic version of #set_gssapi_server.
|
2691
2703
|
#
|
@@ -2701,7 +2713,7 @@ module CZMQ
|
|
2701
2713
|
end
|
2702
2714
|
|
2703
2715
|
# Get socket option `gssapi_plaintext`.
|
2704
|
-
# Available from libzmq 4.0.0.
|
2716
|
+
# Available from libzmq 4.0.0.
|
2705
2717
|
#
|
2706
2718
|
# @return [Integer]
|
2707
2719
|
def gssapi_plaintext()
|
@@ -2712,7 +2724,7 @@ module CZMQ
|
|
2712
2724
|
end
|
2713
2725
|
|
2714
2726
|
# Get socket option `gssapi_plaintext`.
|
2715
|
-
# Available from libzmq 4.0.0.
|
2727
|
+
# Available from libzmq 4.0.0.
|
2716
2728
|
#
|
2717
2729
|
# This is the polymorphic version of #gssapi_plaintext.
|
2718
2730
|
#
|
@@ -2726,7 +2738,7 @@ module CZMQ
|
|
2726
2738
|
end
|
2727
2739
|
|
2728
2740
|
# Set socket option `gssapi_plaintext`.
|
2729
|
-
# Available from libzmq 4.0.0.
|
2741
|
+
# Available from libzmq 4.0.0.
|
2730
2742
|
#
|
2731
2743
|
# @param gssapi_plaintext [Integer, #to_int, #to_i]
|
2732
2744
|
# @return [void]
|
@@ -2739,7 +2751,7 @@ module CZMQ
|
|
2739
2751
|
end
|
2740
2752
|
|
2741
2753
|
# Set socket option `gssapi_plaintext`.
|
2742
|
-
# Available from libzmq 4.0.0.
|
2754
|
+
# Available from libzmq 4.0.0.
|
2743
2755
|
#
|
2744
2756
|
# This is the polymorphic version of #set_gssapi_plaintext.
|
2745
2757
|
#
|
@@ -2755,7 +2767,7 @@ module CZMQ
|
|
2755
2767
|
end
|
2756
2768
|
|
2757
2769
|
# Get socket option `gssapi_principal`.
|
2758
|
-
# Available from libzmq 4.0.0.
|
2770
|
+
# Available from libzmq 4.0.0.
|
2759
2771
|
#
|
2760
2772
|
# @return [::FFI::AutoPointer]
|
2761
2773
|
def gssapi_principal()
|
@@ -2767,7 +2779,7 @@ module CZMQ
|
|
2767
2779
|
end
|
2768
2780
|
|
2769
2781
|
# Get socket option `gssapi_principal`.
|
2770
|
-
# Available from libzmq 4.0.0.
|
2782
|
+
# Available from libzmq 4.0.0.
|
2771
2783
|
#
|
2772
2784
|
# This is the polymorphic version of #gssapi_principal.
|
2773
2785
|
#
|
@@ -2782,7 +2794,7 @@ module CZMQ
|
|
2782
2794
|
end
|
2783
2795
|
|
2784
2796
|
# Set socket option `gssapi_principal`.
|
2785
|
-
# Available from libzmq 4.0.0.
|
2797
|
+
# Available from libzmq 4.0.0.
|
2786
2798
|
#
|
2787
2799
|
# @param gssapi_principal [String, #to_s, nil]
|
2788
2800
|
# @return [void]
|
@@ -2794,7 +2806,7 @@ module CZMQ
|
|
2794
2806
|
end
|
2795
2807
|
|
2796
2808
|
# Set socket option `gssapi_principal`.
|
2797
|
-
# Available from libzmq 4.0.0.
|
2809
|
+
# Available from libzmq 4.0.0.
|
2798
2810
|
#
|
2799
2811
|
# This is the polymorphic version of #set_gssapi_principal.
|
2800
2812
|
#
|
@@ -2809,7 +2821,7 @@ module CZMQ
|
|
2809
2821
|
end
|
2810
2822
|
|
2811
2823
|
# Get socket option `gssapi_service_principal`.
|
2812
|
-
# Available from libzmq 4.0.0.
|
2824
|
+
# Available from libzmq 4.0.0.
|
2813
2825
|
#
|
2814
2826
|
# @return [::FFI::AutoPointer]
|
2815
2827
|
def gssapi_service_principal()
|
@@ -2821,7 +2833,7 @@ module CZMQ
|
|
2821
2833
|
end
|
2822
2834
|
|
2823
2835
|
# Get socket option `gssapi_service_principal`.
|
2824
|
-
# Available from libzmq 4.0.0.
|
2836
|
+
# Available from libzmq 4.0.0.
|
2825
2837
|
#
|
2826
2838
|
# This is the polymorphic version of #gssapi_service_principal.
|
2827
2839
|
#
|
@@ -2836,7 +2848,7 @@ module CZMQ
|
|
2836
2848
|
end
|
2837
2849
|
|
2838
2850
|
# Set socket option `gssapi_service_principal`.
|
2839
|
-
# Available from libzmq 4.0.0.
|
2851
|
+
# Available from libzmq 4.0.0.
|
2840
2852
|
#
|
2841
2853
|
# @param gssapi_service_principal [String, #to_s, nil]
|
2842
2854
|
# @return [void]
|
@@ -2848,7 +2860,7 @@ module CZMQ
|
|
2848
2860
|
end
|
2849
2861
|
|
2850
2862
|
# Set socket option `gssapi_service_principal`.
|
2851
|
-
# Available from libzmq 4.0.0.
|
2863
|
+
# Available from libzmq 4.0.0.
|
2852
2864
|
#
|
2853
2865
|
# This is the polymorphic version of #set_gssapi_service_principal.
|
2854
2866
|
#
|
@@ -2862,7 +2874,7 @@ module CZMQ
|
|
2862
2874
|
result
|
2863
2875
|
end
|
2864
2876
|
|
2865
|
-
# Get socket option `ipv6`.
|
2877
|
+
# Get socket option `ipv6`.
|
2866
2878
|
# Available from libzmq 4.0.0.
|
2867
2879
|
#
|
2868
2880
|
# @return [Integer]
|
@@ -2873,7 +2885,7 @@ module CZMQ
|
|
2873
2885
|
result
|
2874
2886
|
end
|
2875
2887
|
|
2876
|
-
# Get socket option `ipv6`.
|
2888
|
+
# Get socket option `ipv6`.
|
2877
2889
|
# Available from libzmq 4.0.0.
|
2878
2890
|
#
|
2879
2891
|
# This is the polymorphic version of #ipv6.
|
@@ -2887,7 +2899,7 @@ module CZMQ
|
|
2887
2899
|
result
|
2888
2900
|
end
|
2889
2901
|
|
2890
|
-
# Set socket option `ipv6`.
|
2902
|
+
# Set socket option `ipv6`.
|
2891
2903
|
# Available from libzmq 4.0.0.
|
2892
2904
|
#
|
2893
2905
|
# @param ipv6 [Integer, #to_int, #to_i]
|
@@ -2900,7 +2912,7 @@ module CZMQ
|
|
2900
2912
|
result
|
2901
2913
|
end
|
2902
2914
|
|
2903
|
-
# Set socket option `ipv6`.
|
2915
|
+
# Set socket option `ipv6`.
|
2904
2916
|
# Available from libzmq 4.0.0.
|
2905
2917
|
#
|
2906
2918
|
# This is the polymorphic version of #set_ipv6.
|
@@ -2917,7 +2929,7 @@ module CZMQ
|
|
2917
2929
|
end
|
2918
2930
|
|
2919
2931
|
# Get socket option `immediate`.
|
2920
|
-
# Available from libzmq 4.0.0.
|
2932
|
+
# Available from libzmq 4.0.0.
|
2921
2933
|
#
|
2922
2934
|
# @return [Integer]
|
2923
2935
|
def immediate()
|
@@ -2928,7 +2940,7 @@ module CZMQ
|
|
2928
2940
|
end
|
2929
2941
|
|
2930
2942
|
# Get socket option `immediate`.
|
2931
|
-
# Available from libzmq 4.0.0.
|
2943
|
+
# Available from libzmq 4.0.0.
|
2932
2944
|
#
|
2933
2945
|
# This is the polymorphic version of #immediate.
|
2934
2946
|
#
|
@@ -2942,7 +2954,7 @@ module CZMQ
|
|
2942
2954
|
end
|
2943
2955
|
|
2944
2956
|
# Set socket option `immediate`.
|
2945
|
-
# Available from libzmq 4.0.0.
|
2957
|
+
# Available from libzmq 4.0.0.
|
2946
2958
|
#
|
2947
2959
|
# @param immediate [Integer, #to_int, #to_i]
|
2948
2960
|
# @return [void]
|
@@ -2955,7 +2967,7 @@ module CZMQ
|
|
2955
2967
|
end
|
2956
2968
|
|
2957
2969
|
# Set socket option `immediate`.
|
2958
|
-
# Available from libzmq 4.0.0.
|
2970
|
+
# Available from libzmq 4.0.0.
|
2959
2971
|
#
|
2960
2972
|
# This is the polymorphic version of #set_immediate.
|
2961
2973
|
#
|
@@ -2970,32 +2982,7 @@ module CZMQ
|
|
2970
2982
|
result
|
2971
2983
|
end
|
2972
2984
|
|
2973
|
-
# Get socket option `
|
2974
|
-
# Available from libzmq 3.0.0.
|
2975
|
-
#
|
2976
|
-
# @return [Integer]
|
2977
|
-
def type()
|
2978
|
-
raise DestroyedError unless @ptr
|
2979
|
-
self_p = @ptr
|
2980
|
-
result = ::CZMQ::FFI.zsock_type(self_p)
|
2981
|
-
result
|
2982
|
-
end
|
2983
|
-
|
2984
|
-
# Get socket option `type`.
|
2985
|
-
# Available from libzmq 3.0.0.
|
2986
|
-
#
|
2987
|
-
# This is the polymorphic version of #type.
|
2988
|
-
#
|
2989
|
-
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
2990
|
-
# object reference to use this method on
|
2991
|
-
# @return [Integer]
|
2992
|
-
def self.type(self_p)
|
2993
|
-
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
2994
|
-
result = ::CZMQ::FFI.zsock_type(self_p)
|
2995
|
-
result
|
2996
|
-
end
|
2997
|
-
|
2998
|
-
# Get socket option `sndhwm`.
|
2985
|
+
# Get socket option `sndhwm`.
|
2999
2986
|
# Available from libzmq 3.0.0.
|
3000
2987
|
#
|
3001
2988
|
# @return [Integer]
|
@@ -3006,7 +2993,7 @@ module CZMQ
|
|
3006
2993
|
result
|
3007
2994
|
end
|
3008
2995
|
|
3009
|
-
# Get socket option `sndhwm`.
|
2996
|
+
# Get socket option `sndhwm`.
|
3010
2997
|
# Available from libzmq 3.0.0.
|
3011
2998
|
#
|
3012
2999
|
# This is the polymorphic version of #sndhwm.
|
@@ -3020,7 +3007,7 @@ module CZMQ
|
|
3020
3007
|
result
|
3021
3008
|
end
|
3022
3009
|
|
3023
|
-
# Set socket option `sndhwm`.
|
3010
|
+
# Set socket option `sndhwm`.
|
3024
3011
|
# Available from libzmq 3.0.0.
|
3025
3012
|
#
|
3026
3013
|
# @param sndhwm [Integer, #to_int, #to_i]
|
@@ -3033,7 +3020,7 @@ module CZMQ
|
|
3033
3020
|
result
|
3034
3021
|
end
|
3035
3022
|
|
3036
|
-
# Set socket option `sndhwm`.
|
3023
|
+
# Set socket option `sndhwm`.
|
3037
3024
|
# Available from libzmq 3.0.0.
|
3038
3025
|
#
|
3039
3026
|
# This is the polymorphic version of #set_sndhwm.
|
@@ -3049,7 +3036,7 @@ module CZMQ
|
|
3049
3036
|
result
|
3050
3037
|
end
|
3051
3038
|
|
3052
|
-
# Get socket option `rcvhwm`.
|
3039
|
+
# Get socket option `rcvhwm`.
|
3053
3040
|
# Available from libzmq 3.0.0.
|
3054
3041
|
#
|
3055
3042
|
# @return [Integer]
|
@@ -3060,7 +3047,7 @@ module CZMQ
|
|
3060
3047
|
result
|
3061
3048
|
end
|
3062
3049
|
|
3063
|
-
# Get socket option `rcvhwm`.
|
3050
|
+
# Get socket option `rcvhwm`.
|
3064
3051
|
# Available from libzmq 3.0.0.
|
3065
3052
|
#
|
3066
3053
|
# This is the polymorphic version of #rcvhwm.
|
@@ -3074,7 +3061,7 @@ module CZMQ
|
|
3074
3061
|
result
|
3075
3062
|
end
|
3076
3063
|
|
3077
|
-
# Set socket option `rcvhwm`.
|
3064
|
+
# Set socket option `rcvhwm`.
|
3078
3065
|
# Available from libzmq 3.0.0.
|
3079
3066
|
#
|
3080
3067
|
# @param rcvhwm [Integer, #to_int, #to_i]
|
@@ -3087,7 +3074,7 @@ module CZMQ
|
|
3087
3074
|
result
|
3088
3075
|
end
|
3089
3076
|
|
3090
|
-
# Set socket option `rcvhwm`.
|
3077
|
+
# Set socket option `rcvhwm`.
|
3091
3078
|
# Available from libzmq 3.0.0.
|
3092
3079
|
#
|
3093
3080
|
# This is the polymorphic version of #set_rcvhwm.
|
@@ -3103,1326 +3090,1567 @@ module CZMQ
|
|
3103
3090
|
result
|
3104
3091
|
end
|
3105
3092
|
|
3106
|
-
# Get socket option `
|
3107
|
-
# Available from libzmq 3.0.0.
|
3093
|
+
# Get socket option `maxmsgsize`.
|
3094
|
+
# Available from libzmq 3.0.0.
|
3108
3095
|
#
|
3109
3096
|
# @return [Integer]
|
3110
|
-
def
|
3097
|
+
def maxmsgsize()
|
3111
3098
|
raise DestroyedError unless @ptr
|
3112
3099
|
self_p = @ptr
|
3113
|
-
result = ::CZMQ::FFI.
|
3100
|
+
result = ::CZMQ::FFI.zsock_maxmsgsize(self_p)
|
3114
3101
|
result
|
3115
3102
|
end
|
3116
3103
|
|
3117
|
-
# Get socket option `
|
3118
|
-
# Available from libzmq 3.0.0.
|
3104
|
+
# Get socket option `maxmsgsize`.
|
3105
|
+
# Available from libzmq 3.0.0.
|
3119
3106
|
#
|
3120
|
-
# This is the polymorphic version of #
|
3107
|
+
# This is the polymorphic version of #maxmsgsize.
|
3121
3108
|
#
|
3122
3109
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3123
3110
|
# object reference to use this method on
|
3124
3111
|
# @return [Integer]
|
3125
|
-
def self.
|
3112
|
+
def self.maxmsgsize(self_p)
|
3126
3113
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3127
|
-
result = ::CZMQ::FFI.
|
3114
|
+
result = ::CZMQ::FFI.zsock_maxmsgsize(self_p)
|
3128
3115
|
result
|
3129
3116
|
end
|
3130
3117
|
|
3131
|
-
# Set socket option `
|
3132
|
-
# Available from libzmq 3.0.0.
|
3118
|
+
# Set socket option `maxmsgsize`.
|
3119
|
+
# Available from libzmq 3.0.0.
|
3133
3120
|
#
|
3134
|
-
# @param
|
3121
|
+
# @param maxmsgsize [Integer, #to_int, #to_i]
|
3135
3122
|
# @return [void]
|
3136
|
-
def
|
3123
|
+
def set_maxmsgsize(maxmsgsize)
|
3137
3124
|
raise DestroyedError unless @ptr
|
3138
3125
|
self_p = @ptr
|
3139
|
-
|
3140
|
-
result = ::CZMQ::FFI.
|
3126
|
+
maxmsgsize = Integer(maxmsgsize)
|
3127
|
+
result = ::CZMQ::FFI.zsock_set_maxmsgsize(self_p, maxmsgsize)
|
3141
3128
|
result
|
3142
3129
|
end
|
3143
3130
|
|
3144
|
-
# Set socket option `
|
3145
|
-
# Available from libzmq 3.0.0.
|
3131
|
+
# Set socket option `maxmsgsize`.
|
3132
|
+
# Available from libzmq 3.0.0.
|
3146
3133
|
#
|
3147
|
-
# This is the polymorphic version of #
|
3134
|
+
# This is the polymorphic version of #set_maxmsgsize.
|
3148
3135
|
#
|
3149
3136
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3150
3137
|
# object reference to use this method on
|
3151
|
-
# @param
|
3138
|
+
# @param maxmsgsize [Integer, #to_int, #to_i]
|
3152
3139
|
# @return [void]
|
3153
|
-
def self.
|
3140
|
+
def self.set_maxmsgsize(self_p, maxmsgsize)
|
3154
3141
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3155
|
-
|
3156
|
-
result = ::CZMQ::FFI.
|
3142
|
+
maxmsgsize = Integer(maxmsgsize)
|
3143
|
+
result = ::CZMQ::FFI.zsock_set_maxmsgsize(self_p, maxmsgsize)
|
3157
3144
|
result
|
3158
3145
|
end
|
3159
3146
|
|
3160
|
-
#
|
3161
|
-
# Available from libzmq 3.0.0.
|
3147
|
+
# Get socket option `multicast_hops`.
|
3148
|
+
# Available from libzmq 3.0.0.
|
3162
3149
|
#
|
3163
|
-
# @
|
3164
|
-
|
3165
|
-
def set_subscribe(subscribe)
|
3150
|
+
# @return [Integer]
|
3151
|
+
def multicast_hops()
|
3166
3152
|
raise DestroyedError unless @ptr
|
3167
3153
|
self_p = @ptr
|
3168
|
-
result = ::CZMQ::FFI.
|
3154
|
+
result = ::CZMQ::FFI.zsock_multicast_hops(self_p)
|
3169
3155
|
result
|
3170
3156
|
end
|
3171
3157
|
|
3172
|
-
#
|
3173
|
-
# Available from libzmq 3.0.0.
|
3158
|
+
# Get socket option `multicast_hops`.
|
3159
|
+
# Available from libzmq 3.0.0.
|
3174
3160
|
#
|
3175
|
-
# This is the polymorphic version of #
|
3161
|
+
# This is the polymorphic version of #multicast_hops.
|
3176
3162
|
#
|
3177
3163
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3178
3164
|
# object reference to use this method on
|
3179
|
-
# @
|
3180
|
-
|
3181
|
-
def self.set_subscribe(self_p, subscribe)
|
3165
|
+
# @return [Integer]
|
3166
|
+
def self.multicast_hops(self_p)
|
3182
3167
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3183
|
-
result = ::CZMQ::FFI.
|
3168
|
+
result = ::CZMQ::FFI.zsock_multicast_hops(self_p)
|
3184
3169
|
result
|
3185
3170
|
end
|
3186
3171
|
|
3187
|
-
# Set socket option `
|
3188
|
-
# Available from libzmq 3.0.0.
|
3172
|
+
# Set socket option `multicast_hops`.
|
3173
|
+
# Available from libzmq 3.0.0.
|
3189
3174
|
#
|
3190
|
-
# @param
|
3175
|
+
# @param multicast_hops [Integer, #to_int, #to_i]
|
3191
3176
|
# @return [void]
|
3192
|
-
def
|
3177
|
+
def set_multicast_hops(multicast_hops)
|
3193
3178
|
raise DestroyedError unless @ptr
|
3194
3179
|
self_p = @ptr
|
3195
|
-
|
3180
|
+
multicast_hops = Integer(multicast_hops)
|
3181
|
+
result = ::CZMQ::FFI.zsock_set_multicast_hops(self_p, multicast_hops)
|
3196
3182
|
result
|
3197
3183
|
end
|
3198
3184
|
|
3199
|
-
# Set socket option `
|
3200
|
-
# Available from libzmq 3.0.0.
|
3185
|
+
# Set socket option `multicast_hops`.
|
3186
|
+
# Available from libzmq 3.0.0.
|
3201
3187
|
#
|
3202
|
-
# This is the polymorphic version of #
|
3188
|
+
# This is the polymorphic version of #set_multicast_hops.
|
3203
3189
|
#
|
3204
3190
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3205
3191
|
# object reference to use this method on
|
3206
|
-
# @param
|
3192
|
+
# @param multicast_hops [Integer, #to_int, #to_i]
|
3207
3193
|
# @return [void]
|
3208
|
-
def self.
|
3194
|
+
def self.set_multicast_hops(self_p, multicast_hops)
|
3209
3195
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3210
|
-
|
3196
|
+
multicast_hops = Integer(multicast_hops)
|
3197
|
+
result = ::CZMQ::FFI.zsock_set_multicast_hops(self_p, multicast_hops)
|
3211
3198
|
result
|
3212
3199
|
end
|
3213
3200
|
|
3214
|
-
#
|
3215
|
-
# Available from libzmq 3.0.0.
|
3201
|
+
# Set socket option `xpub_verbose`.
|
3202
|
+
# Available from libzmq 3.0.0.
|
3216
3203
|
#
|
3217
|
-
# @
|
3218
|
-
def identity()
|
3219
|
-
raise DestroyedError unless @ptr
|
3220
|
-
self_p = @ptr
|
3221
|
-
result = ::CZMQ::FFI.zsock_identity(self_p)
|
3222
|
-
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3223
|
-
result
|
3224
|
-
end
|
3225
|
-
|
3226
|
-
# Get socket option `identity`.
|
3227
|
-
# Available from libzmq 3.0.0.
|
3228
|
-
#
|
3229
|
-
# This is the polymorphic version of #identity.
|
3230
|
-
#
|
3231
|
-
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3232
|
-
# object reference to use this method on
|
3233
|
-
# @return [::FFI::AutoPointer]
|
3234
|
-
def self.identity(self_p)
|
3235
|
-
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3236
|
-
result = ::CZMQ::FFI.zsock_identity(self_p)
|
3237
|
-
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3238
|
-
result
|
3239
|
-
end
|
3240
|
-
|
3241
|
-
# Set socket option `identity`.
|
3242
|
-
# Available from libzmq 3.0.0.
|
3243
|
-
#
|
3244
|
-
# @param identity [String, #to_s, nil]
|
3204
|
+
# @param xpub_verbose [Integer, #to_int, #to_i]
|
3245
3205
|
# @return [void]
|
3246
|
-
def
|
3206
|
+
def set_xpub_verbose(xpub_verbose)
|
3247
3207
|
raise DestroyedError unless @ptr
|
3248
3208
|
self_p = @ptr
|
3249
|
-
|
3209
|
+
xpub_verbose = Integer(xpub_verbose)
|
3210
|
+
result = ::CZMQ::FFI.zsock_set_xpub_verbose(self_p, xpub_verbose)
|
3250
3211
|
result
|
3251
3212
|
end
|
3252
3213
|
|
3253
|
-
# Set socket option `
|
3254
|
-
# Available from libzmq 3.0.0.
|
3214
|
+
# Set socket option `xpub_verbose`.
|
3215
|
+
# Available from libzmq 3.0.0.
|
3255
3216
|
#
|
3256
|
-
# This is the polymorphic version of #
|
3217
|
+
# This is the polymorphic version of #set_xpub_verbose.
|
3257
3218
|
#
|
3258
3219
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3259
3220
|
# object reference to use this method on
|
3260
|
-
# @param
|
3221
|
+
# @param xpub_verbose [Integer, #to_int, #to_i]
|
3261
3222
|
# @return [void]
|
3262
|
-
def self.
|
3223
|
+
def self.set_xpub_verbose(self_p, xpub_verbose)
|
3263
3224
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3264
|
-
|
3225
|
+
xpub_verbose = Integer(xpub_verbose)
|
3226
|
+
result = ::CZMQ::FFI.zsock_set_xpub_verbose(self_p, xpub_verbose)
|
3265
3227
|
result
|
3266
3228
|
end
|
3267
3229
|
|
3268
|
-
# Get socket option `
|
3230
|
+
# Get socket option `tcp_keepalive`.
|
3269
3231
|
# Available from libzmq 3.0.0.
|
3270
3232
|
#
|
3271
3233
|
# @return [Integer]
|
3272
|
-
def
|
3234
|
+
def tcp_keepalive()
|
3273
3235
|
raise DestroyedError unless @ptr
|
3274
3236
|
self_p = @ptr
|
3275
|
-
result = ::CZMQ::FFI.
|
3237
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive(self_p)
|
3276
3238
|
result
|
3277
3239
|
end
|
3278
3240
|
|
3279
|
-
# Get socket option `
|
3241
|
+
# Get socket option `tcp_keepalive`.
|
3280
3242
|
# Available from libzmq 3.0.0.
|
3281
3243
|
#
|
3282
|
-
# This is the polymorphic version of #
|
3244
|
+
# This is the polymorphic version of #tcp_keepalive.
|
3283
3245
|
#
|
3284
3246
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3285
3247
|
# object reference to use this method on
|
3286
3248
|
# @return [Integer]
|
3287
|
-
def self.
|
3249
|
+
def self.tcp_keepalive(self_p)
|
3288
3250
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3289
|
-
result = ::CZMQ::FFI.
|
3251
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive(self_p)
|
3290
3252
|
result
|
3291
3253
|
end
|
3292
3254
|
|
3293
|
-
# Set socket option `
|
3255
|
+
# Set socket option `tcp_keepalive`.
|
3294
3256
|
# Available from libzmq 3.0.0.
|
3295
3257
|
#
|
3296
|
-
# @param
|
3258
|
+
# @param tcp_keepalive [Integer, #to_int, #to_i]
|
3297
3259
|
# @return [void]
|
3298
|
-
def
|
3260
|
+
def set_tcp_keepalive(tcp_keepalive)
|
3299
3261
|
raise DestroyedError unless @ptr
|
3300
3262
|
self_p = @ptr
|
3301
|
-
|
3302
|
-
result = ::CZMQ::FFI.
|
3263
|
+
tcp_keepalive = Integer(tcp_keepalive)
|
3264
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive(self_p, tcp_keepalive)
|
3303
3265
|
result
|
3304
3266
|
end
|
3305
3267
|
|
3306
|
-
# Set socket option `
|
3268
|
+
# Set socket option `tcp_keepalive`.
|
3307
3269
|
# Available from libzmq 3.0.0.
|
3308
3270
|
#
|
3309
|
-
# This is the polymorphic version of #
|
3271
|
+
# This is the polymorphic version of #set_tcp_keepalive.
|
3310
3272
|
#
|
3311
3273
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3312
3274
|
# object reference to use this method on
|
3313
|
-
# @param
|
3275
|
+
# @param tcp_keepalive [Integer, #to_int, #to_i]
|
3314
3276
|
# @return [void]
|
3315
|
-
def self.
|
3277
|
+
def self.set_tcp_keepalive(self_p, tcp_keepalive)
|
3316
3278
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3317
|
-
|
3318
|
-
result = ::CZMQ::FFI.
|
3279
|
+
tcp_keepalive = Integer(tcp_keepalive)
|
3280
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive(self_p, tcp_keepalive)
|
3319
3281
|
result
|
3320
3282
|
end
|
3321
3283
|
|
3322
|
-
# Get socket option `
|
3323
|
-
# Available from libzmq 3.0.0.
|
3284
|
+
# Get socket option `tcp_keepalive_idle`.
|
3285
|
+
# Available from libzmq 3.0.0.
|
3324
3286
|
#
|
3325
3287
|
# @return [Integer]
|
3326
|
-
def
|
3288
|
+
def tcp_keepalive_idle()
|
3327
3289
|
raise DestroyedError unless @ptr
|
3328
3290
|
self_p = @ptr
|
3329
|
-
result = ::CZMQ::FFI.
|
3291
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive_idle(self_p)
|
3330
3292
|
result
|
3331
3293
|
end
|
3332
3294
|
|
3333
|
-
# Get socket option `
|
3334
|
-
# Available from libzmq 3.0.0.
|
3295
|
+
# Get socket option `tcp_keepalive_idle`.
|
3296
|
+
# Available from libzmq 3.0.0.
|
3335
3297
|
#
|
3336
|
-
# This is the polymorphic version of #
|
3298
|
+
# This is the polymorphic version of #tcp_keepalive_idle.
|
3337
3299
|
#
|
3338
3300
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3339
3301
|
# object reference to use this method on
|
3340
3302
|
# @return [Integer]
|
3341
|
-
def self.
|
3303
|
+
def self.tcp_keepalive_idle(self_p)
|
3342
3304
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3343
|
-
result = ::CZMQ::FFI.
|
3305
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive_idle(self_p)
|
3344
3306
|
result
|
3345
3307
|
end
|
3346
3308
|
|
3347
|
-
# Set socket option `
|
3348
|
-
# Available from libzmq 3.0.0.
|
3309
|
+
# Set socket option `tcp_keepalive_idle`.
|
3310
|
+
# Available from libzmq 3.0.0.
|
3349
3311
|
#
|
3350
|
-
# @param
|
3312
|
+
# @param tcp_keepalive_idle [Integer, #to_int, #to_i]
|
3351
3313
|
# @return [void]
|
3352
|
-
def
|
3314
|
+
def set_tcp_keepalive_idle(tcp_keepalive_idle)
|
3353
3315
|
raise DestroyedError unless @ptr
|
3354
3316
|
self_p = @ptr
|
3355
|
-
|
3356
|
-
result = ::CZMQ::FFI.
|
3317
|
+
tcp_keepalive_idle = Integer(tcp_keepalive_idle)
|
3318
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive_idle(self_p, tcp_keepalive_idle)
|
3357
3319
|
result
|
3358
3320
|
end
|
3359
3321
|
|
3360
|
-
# Set socket option `
|
3361
|
-
# Available from libzmq 3.0.0.
|
3322
|
+
# Set socket option `tcp_keepalive_idle`.
|
3323
|
+
# Available from libzmq 3.0.0.
|
3362
3324
|
#
|
3363
|
-
# This is the polymorphic version of #
|
3325
|
+
# This is the polymorphic version of #set_tcp_keepalive_idle.
|
3364
3326
|
#
|
3365
3327
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3366
3328
|
# object reference to use this method on
|
3367
|
-
# @param
|
3329
|
+
# @param tcp_keepalive_idle [Integer, #to_int, #to_i]
|
3368
3330
|
# @return [void]
|
3369
|
-
def self.
|
3331
|
+
def self.set_tcp_keepalive_idle(self_p, tcp_keepalive_idle)
|
3370
3332
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3371
|
-
|
3372
|
-
result = ::CZMQ::FFI.
|
3333
|
+
tcp_keepalive_idle = Integer(tcp_keepalive_idle)
|
3334
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive_idle(self_p, tcp_keepalive_idle)
|
3373
3335
|
result
|
3374
3336
|
end
|
3375
3337
|
|
3376
|
-
# Get socket option `
|
3338
|
+
# Get socket option `tcp_keepalive_cnt`.
|
3377
3339
|
# Available from libzmq 3.0.0.
|
3378
3340
|
#
|
3379
3341
|
# @return [Integer]
|
3380
|
-
def
|
3342
|
+
def tcp_keepalive_cnt()
|
3381
3343
|
raise DestroyedError unless @ptr
|
3382
3344
|
self_p = @ptr
|
3383
|
-
result = ::CZMQ::FFI.
|
3345
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive_cnt(self_p)
|
3384
3346
|
result
|
3385
3347
|
end
|
3386
3348
|
|
3387
|
-
# Get socket option `
|
3349
|
+
# Get socket option `tcp_keepalive_cnt`.
|
3388
3350
|
# Available from libzmq 3.0.0.
|
3389
3351
|
#
|
3390
|
-
# This is the polymorphic version of #
|
3352
|
+
# This is the polymorphic version of #tcp_keepalive_cnt.
|
3391
3353
|
#
|
3392
3354
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3393
3355
|
# object reference to use this method on
|
3394
3356
|
# @return [Integer]
|
3395
|
-
def self.
|
3357
|
+
def self.tcp_keepalive_cnt(self_p)
|
3396
3358
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3397
|
-
result = ::CZMQ::FFI.
|
3359
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive_cnt(self_p)
|
3398
3360
|
result
|
3399
3361
|
end
|
3400
3362
|
|
3401
|
-
# Set socket option `
|
3363
|
+
# Set socket option `tcp_keepalive_cnt`.
|
3402
3364
|
# Available from libzmq 3.0.0.
|
3403
3365
|
#
|
3404
|
-
# @param
|
3366
|
+
# @param tcp_keepalive_cnt [Integer, #to_int, #to_i]
|
3405
3367
|
# @return [void]
|
3406
|
-
def
|
3368
|
+
def set_tcp_keepalive_cnt(tcp_keepalive_cnt)
|
3407
3369
|
raise DestroyedError unless @ptr
|
3408
3370
|
self_p = @ptr
|
3409
|
-
|
3410
|
-
result = ::CZMQ::FFI.
|
3371
|
+
tcp_keepalive_cnt = Integer(tcp_keepalive_cnt)
|
3372
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive_cnt(self_p, tcp_keepalive_cnt)
|
3411
3373
|
result
|
3412
3374
|
end
|
3413
3375
|
|
3414
|
-
# Set socket option `
|
3376
|
+
# Set socket option `tcp_keepalive_cnt`.
|
3415
3377
|
# Available from libzmq 3.0.0.
|
3416
3378
|
#
|
3417
|
-
# This is the polymorphic version of #
|
3379
|
+
# This is the polymorphic version of #set_tcp_keepalive_cnt.
|
3418
3380
|
#
|
3419
3381
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3420
3382
|
# object reference to use this method on
|
3421
|
-
# @param
|
3383
|
+
# @param tcp_keepalive_cnt [Integer, #to_int, #to_i]
|
3422
3384
|
# @return [void]
|
3423
|
-
def self.
|
3385
|
+
def self.set_tcp_keepalive_cnt(self_p, tcp_keepalive_cnt)
|
3424
3386
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3425
|
-
|
3426
|
-
result = ::CZMQ::FFI.
|
3387
|
+
tcp_keepalive_cnt = Integer(tcp_keepalive_cnt)
|
3388
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive_cnt(self_p, tcp_keepalive_cnt)
|
3427
3389
|
result
|
3428
3390
|
end
|
3429
3391
|
|
3430
|
-
# Get socket option `
|
3392
|
+
# Get socket option `tcp_keepalive_intvl`.
|
3431
3393
|
# Available from libzmq 3.0.0.
|
3432
3394
|
#
|
3433
3395
|
# @return [Integer]
|
3434
|
-
def
|
3396
|
+
def tcp_keepalive_intvl()
|
3435
3397
|
raise DestroyedError unless @ptr
|
3436
3398
|
self_p = @ptr
|
3437
|
-
result = ::CZMQ::FFI.
|
3399
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive_intvl(self_p)
|
3438
3400
|
result
|
3439
3401
|
end
|
3440
3402
|
|
3441
|
-
# Get socket option `
|
3403
|
+
# Get socket option `tcp_keepalive_intvl`.
|
3442
3404
|
# Available from libzmq 3.0.0.
|
3443
3405
|
#
|
3444
|
-
# This is the polymorphic version of #
|
3406
|
+
# This is the polymorphic version of #tcp_keepalive_intvl.
|
3445
3407
|
#
|
3446
3408
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3447
3409
|
# object reference to use this method on
|
3448
3410
|
# @return [Integer]
|
3449
|
-
def self.
|
3411
|
+
def self.tcp_keepalive_intvl(self_p)
|
3450
3412
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3451
|
-
result = ::CZMQ::FFI.
|
3413
|
+
result = ::CZMQ::FFI.zsock_tcp_keepalive_intvl(self_p)
|
3452
3414
|
result
|
3453
3415
|
end
|
3454
3416
|
|
3455
|
-
# Set socket option `
|
3417
|
+
# Set socket option `tcp_keepalive_intvl`.
|
3456
3418
|
# Available from libzmq 3.0.0.
|
3457
3419
|
#
|
3458
|
-
# @param
|
3420
|
+
# @param tcp_keepalive_intvl [Integer, #to_int, #to_i]
|
3459
3421
|
# @return [void]
|
3460
|
-
def
|
3422
|
+
def set_tcp_keepalive_intvl(tcp_keepalive_intvl)
|
3461
3423
|
raise DestroyedError unless @ptr
|
3462
3424
|
self_p = @ptr
|
3463
|
-
|
3464
|
-
result = ::CZMQ::FFI.
|
3425
|
+
tcp_keepalive_intvl = Integer(tcp_keepalive_intvl)
|
3426
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive_intvl(self_p, tcp_keepalive_intvl)
|
3465
3427
|
result
|
3466
3428
|
end
|
3467
3429
|
|
3468
|
-
# Set socket option `
|
3430
|
+
# Set socket option `tcp_keepalive_intvl`.
|
3469
3431
|
# Available from libzmq 3.0.0.
|
3470
3432
|
#
|
3471
|
-
# This is the polymorphic version of #
|
3433
|
+
# This is the polymorphic version of #set_tcp_keepalive_intvl.
|
3472
3434
|
#
|
3473
3435
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3474
3436
|
# object reference to use this method on
|
3475
|
-
# @param
|
3437
|
+
# @param tcp_keepalive_intvl [Integer, #to_int, #to_i]
|
3476
3438
|
# @return [void]
|
3477
|
-
def self.
|
3439
|
+
def self.set_tcp_keepalive_intvl(self_p, tcp_keepalive_intvl)
|
3478
3440
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3479
|
-
|
3480
|
-
result = ::CZMQ::FFI.
|
3441
|
+
tcp_keepalive_intvl = Integer(tcp_keepalive_intvl)
|
3442
|
+
result = ::CZMQ::FFI.zsock_set_tcp_keepalive_intvl(self_p, tcp_keepalive_intvl)
|
3481
3443
|
result
|
3482
3444
|
end
|
3483
3445
|
|
3484
|
-
# Get socket option `
|
3446
|
+
# Get socket option `tcp_accept_filter`.
|
3485
3447
|
# Available from libzmq 3.0.0.
|
3486
3448
|
#
|
3487
|
-
# @return [
|
3488
|
-
def
|
3449
|
+
# @return [::FFI::AutoPointer]
|
3450
|
+
def tcp_accept_filter()
|
3489
3451
|
raise DestroyedError unless @ptr
|
3490
3452
|
self_p = @ptr
|
3491
|
-
result = ::CZMQ::FFI.
|
3453
|
+
result = ::CZMQ::FFI.zsock_tcp_accept_filter(self_p)
|
3454
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3492
3455
|
result
|
3493
3456
|
end
|
3494
3457
|
|
3495
|
-
# Get socket option `
|
3458
|
+
# Get socket option `tcp_accept_filter`.
|
3496
3459
|
# Available from libzmq 3.0.0.
|
3497
3460
|
#
|
3498
|
-
# This is the polymorphic version of #
|
3461
|
+
# This is the polymorphic version of #tcp_accept_filter.
|
3499
3462
|
#
|
3500
3463
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3501
3464
|
# object reference to use this method on
|
3502
|
-
# @return [
|
3503
|
-
def self.
|
3465
|
+
# @return [::FFI::AutoPointer]
|
3466
|
+
def self.tcp_accept_filter(self_p)
|
3504
3467
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3505
|
-
result = ::CZMQ::FFI.
|
3468
|
+
result = ::CZMQ::FFI.zsock_tcp_accept_filter(self_p)
|
3469
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3506
3470
|
result
|
3507
3471
|
end
|
3508
3472
|
|
3509
|
-
# Set socket option `
|
3473
|
+
# Set socket option `tcp_accept_filter`.
|
3510
3474
|
# Available from libzmq 3.0.0.
|
3511
3475
|
#
|
3512
|
-
# @param
|
3476
|
+
# @param tcp_accept_filter [String, #to_s, nil]
|
3513
3477
|
# @return [void]
|
3514
|
-
def
|
3478
|
+
def set_tcp_accept_filter(tcp_accept_filter)
|
3515
3479
|
raise DestroyedError unless @ptr
|
3516
3480
|
self_p = @ptr
|
3517
|
-
|
3518
|
-
result = ::CZMQ::FFI.zsock_set_linger(self_p, linger)
|
3481
|
+
result = ::CZMQ::FFI.zsock_set_tcp_accept_filter(self_p, tcp_accept_filter)
|
3519
3482
|
result
|
3520
3483
|
end
|
3521
3484
|
|
3522
|
-
# Set socket option `
|
3485
|
+
# Set socket option `tcp_accept_filter`.
|
3523
3486
|
# Available from libzmq 3.0.0.
|
3524
3487
|
#
|
3525
|
-
# This is the polymorphic version of #
|
3488
|
+
# This is the polymorphic version of #set_tcp_accept_filter.
|
3526
3489
|
#
|
3527
3490
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3528
3491
|
# object reference to use this method on
|
3529
|
-
# @param
|
3492
|
+
# @param tcp_accept_filter [String, #to_s, nil]
|
3530
3493
|
# @return [void]
|
3531
|
-
def self.
|
3494
|
+
def self.set_tcp_accept_filter(self_p, tcp_accept_filter)
|
3532
3495
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3533
|
-
|
3534
|
-
result = ::CZMQ::FFI.zsock_set_linger(self_p, linger)
|
3496
|
+
result = ::CZMQ::FFI.zsock_set_tcp_accept_filter(self_p, tcp_accept_filter)
|
3535
3497
|
result
|
3536
3498
|
end
|
3537
3499
|
|
3538
|
-
# Get socket option `
|
3539
|
-
# Available from libzmq 3.0.0.
|
3500
|
+
# Get socket option `last_endpoint`.
|
3501
|
+
# Available from libzmq 3.0.0.
|
3540
3502
|
#
|
3541
|
-
# @return [
|
3542
|
-
def
|
3503
|
+
# @return [::FFI::AutoPointer]
|
3504
|
+
def last_endpoint()
|
3543
3505
|
raise DestroyedError unless @ptr
|
3544
3506
|
self_p = @ptr
|
3545
|
-
result = ::CZMQ::FFI.
|
3507
|
+
result = ::CZMQ::FFI.zsock_last_endpoint(self_p)
|
3508
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3546
3509
|
result
|
3547
3510
|
end
|
3548
3511
|
|
3549
|
-
# Get socket option `
|
3550
|
-
# Available from libzmq 3.0.0.
|
3512
|
+
# Get socket option `last_endpoint`.
|
3513
|
+
# Available from libzmq 3.0.0.
|
3551
3514
|
#
|
3552
|
-
# This is the polymorphic version of #
|
3515
|
+
# This is the polymorphic version of #last_endpoint.
|
3553
3516
|
#
|
3554
3517
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3555
3518
|
# object reference to use this method on
|
3556
|
-
# @return [
|
3557
|
-
def self.
|
3519
|
+
# @return [::FFI::AutoPointer]
|
3520
|
+
def self.last_endpoint(self_p)
|
3558
3521
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3559
|
-
result = ::CZMQ::FFI.
|
3522
|
+
result = ::CZMQ::FFI.zsock_last_endpoint(self_p)
|
3523
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3560
3524
|
result
|
3561
3525
|
end
|
3562
3526
|
|
3563
|
-
# Set socket option `
|
3564
|
-
# Available from libzmq 3.0.0.
|
3527
|
+
# Set socket option `router_raw`.
|
3528
|
+
# Available from libzmq 3.0.0.
|
3565
3529
|
#
|
3566
|
-
# @param
|
3530
|
+
# @param router_raw [Integer, #to_int, #to_i]
|
3567
3531
|
# @return [void]
|
3568
|
-
def
|
3532
|
+
def set_router_raw(router_raw)
|
3569
3533
|
raise DestroyedError unless @ptr
|
3570
3534
|
self_p = @ptr
|
3571
|
-
|
3572
|
-
result = ::CZMQ::FFI.
|
3535
|
+
router_raw = Integer(router_raw)
|
3536
|
+
result = ::CZMQ::FFI.zsock_set_router_raw(self_p, router_raw)
|
3573
3537
|
result
|
3574
3538
|
end
|
3575
3539
|
|
3576
|
-
# Set socket option `
|
3577
|
-
# Available from libzmq 3.0.0.
|
3540
|
+
# Set socket option `router_raw`.
|
3541
|
+
# Available from libzmq 3.0.0.
|
3578
3542
|
#
|
3579
|
-
# This is the polymorphic version of #
|
3543
|
+
# This is the polymorphic version of #set_router_raw.
|
3580
3544
|
#
|
3581
3545
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3582
3546
|
# object reference to use this method on
|
3583
|
-
# @param
|
3547
|
+
# @param router_raw [Integer, #to_int, #to_i]
|
3584
3548
|
# @return [void]
|
3585
|
-
def self.
|
3549
|
+
def self.set_router_raw(self_p, router_raw)
|
3586
3550
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3587
|
-
|
3588
|
-
result = ::CZMQ::FFI.
|
3551
|
+
router_raw = Integer(router_raw)
|
3552
|
+
result = ::CZMQ::FFI.zsock_set_router_raw(self_p, router_raw)
|
3589
3553
|
result
|
3590
3554
|
end
|
3591
3555
|
|
3592
|
-
# Get socket option `
|
3593
|
-
# Available from libzmq 3.0.0.
|
3556
|
+
# Get socket option `ipv4only`.
|
3557
|
+
# Available from libzmq 3.0.0.
|
3594
3558
|
#
|
3595
3559
|
# @return [Integer]
|
3596
|
-
def
|
3560
|
+
def ipv4only()
|
3597
3561
|
raise DestroyedError unless @ptr
|
3598
3562
|
self_p = @ptr
|
3599
|
-
result = ::CZMQ::FFI.
|
3563
|
+
result = ::CZMQ::FFI.zsock_ipv4only(self_p)
|
3600
3564
|
result
|
3601
3565
|
end
|
3602
3566
|
|
3603
|
-
# Get socket option `
|
3604
|
-
# Available from libzmq 3.0.0.
|
3567
|
+
# Get socket option `ipv4only`.
|
3568
|
+
# Available from libzmq 3.0.0.
|
3605
3569
|
#
|
3606
|
-
# This is the polymorphic version of #
|
3570
|
+
# This is the polymorphic version of #ipv4only.
|
3607
3571
|
#
|
3608
3572
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3609
3573
|
# object reference to use this method on
|
3610
3574
|
# @return [Integer]
|
3611
|
-
def self.
|
3575
|
+
def self.ipv4only(self_p)
|
3612
3576
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3613
|
-
result = ::CZMQ::FFI.
|
3577
|
+
result = ::CZMQ::FFI.zsock_ipv4only(self_p)
|
3614
3578
|
result
|
3615
3579
|
end
|
3616
3580
|
|
3617
|
-
# Set socket option `
|
3618
|
-
# Available from libzmq 3.0.0.
|
3581
|
+
# Set socket option `ipv4only`.
|
3582
|
+
# Available from libzmq 3.0.0.
|
3619
3583
|
#
|
3620
|
-
# @param
|
3584
|
+
# @param ipv4only [Integer, #to_int, #to_i]
|
3621
3585
|
# @return [void]
|
3622
|
-
def
|
3586
|
+
def set_ipv4only(ipv4only)
|
3623
3587
|
raise DestroyedError unless @ptr
|
3624
3588
|
self_p = @ptr
|
3625
|
-
|
3626
|
-
result = ::CZMQ::FFI.
|
3589
|
+
ipv4only = Integer(ipv4only)
|
3590
|
+
result = ::CZMQ::FFI.zsock_set_ipv4only(self_p, ipv4only)
|
3627
3591
|
result
|
3628
3592
|
end
|
3629
3593
|
|
3630
|
-
# Set socket option `
|
3631
|
-
# Available from libzmq 3.0.0.
|
3594
|
+
# Set socket option `ipv4only`.
|
3595
|
+
# Available from libzmq 3.0.0.
|
3632
3596
|
#
|
3633
|
-
# This is the polymorphic version of #
|
3597
|
+
# This is the polymorphic version of #set_ipv4only.
|
3634
3598
|
#
|
3635
3599
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3636
3600
|
# object reference to use this method on
|
3637
|
-
# @param
|
3601
|
+
# @param ipv4only [Integer, #to_int, #to_i]
|
3638
3602
|
# @return [void]
|
3639
|
-
def self.
|
3603
|
+
def self.set_ipv4only(self_p, ipv4only)
|
3640
3604
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3641
|
-
|
3642
|
-
result = ::CZMQ::FFI.
|
3605
|
+
ipv4only = Integer(ipv4only)
|
3606
|
+
result = ::CZMQ::FFI.zsock_set_ipv4only(self_p, ipv4only)
|
3643
3607
|
result
|
3644
3608
|
end
|
3645
3609
|
|
3646
|
-
#
|
3610
|
+
# Set socket option `delay_attach_on_connect`.
|
3647
3611
|
# Available from libzmq 3.0.0.
|
3648
3612
|
#
|
3649
|
-
# @
|
3650
|
-
|
3613
|
+
# @param delay_attach_on_connect [Integer, #to_int, #to_i]
|
3614
|
+
# @return [void]
|
3615
|
+
def set_delay_attach_on_connect(delay_attach_on_connect)
|
3651
3616
|
raise DestroyedError unless @ptr
|
3652
3617
|
self_p = @ptr
|
3653
|
-
|
3618
|
+
delay_attach_on_connect = Integer(delay_attach_on_connect)
|
3619
|
+
result = ::CZMQ::FFI.zsock_set_delay_attach_on_connect(self_p, delay_attach_on_connect)
|
3654
3620
|
result
|
3655
3621
|
end
|
3656
3622
|
|
3657
|
-
#
|
3623
|
+
# Set socket option `delay_attach_on_connect`.
|
3658
3624
|
# Available from libzmq 3.0.0.
|
3659
3625
|
#
|
3660
|
-
# This is the polymorphic version of #
|
3626
|
+
# This is the polymorphic version of #set_delay_attach_on_connect.
|
3627
|
+
#
|
3628
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3629
|
+
# object reference to use this method on
|
3630
|
+
# @param delay_attach_on_connect [Integer, #to_int, #to_i]
|
3631
|
+
# @return [void]
|
3632
|
+
def self.set_delay_attach_on_connect(self_p, delay_attach_on_connect)
|
3633
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3634
|
+
delay_attach_on_connect = Integer(delay_attach_on_connect)
|
3635
|
+
result = ::CZMQ::FFI.zsock_set_delay_attach_on_connect(self_p, delay_attach_on_connect)
|
3636
|
+
result
|
3637
|
+
end
|
3638
|
+
|
3639
|
+
# Get socket option `hwm`.
|
3640
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3641
|
+
#
|
3642
|
+
# @return [Integer]
|
3643
|
+
def hwm()
|
3644
|
+
raise DestroyedError unless @ptr
|
3645
|
+
self_p = @ptr
|
3646
|
+
result = ::CZMQ::FFI.zsock_hwm(self_p)
|
3647
|
+
result
|
3648
|
+
end
|
3649
|
+
|
3650
|
+
# Get socket option `hwm`.
|
3651
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3652
|
+
#
|
3653
|
+
# This is the polymorphic version of #hwm.
|
3661
3654
|
#
|
3662
3655
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3663
3656
|
# object reference to use this method on
|
3664
3657
|
# @return [Integer]
|
3665
|
-
def self.
|
3658
|
+
def self.hwm(self_p)
|
3666
3659
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3667
|
-
result = ::CZMQ::FFI.
|
3660
|
+
result = ::CZMQ::FFI.zsock_hwm(self_p)
|
3668
3661
|
result
|
3669
3662
|
end
|
3670
3663
|
|
3671
|
-
# Set socket option `
|
3672
|
-
# Available from libzmq 3.0.0.
|
3664
|
+
# Set socket option `hwm`.
|
3665
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3673
3666
|
#
|
3674
|
-
# @param
|
3667
|
+
# @param hwm [Integer, #to_int, #to_i]
|
3675
3668
|
# @return [void]
|
3676
|
-
def
|
3669
|
+
def set_hwm(hwm)
|
3677
3670
|
raise DestroyedError unless @ptr
|
3678
3671
|
self_p = @ptr
|
3679
|
-
|
3680
|
-
result = ::CZMQ::FFI.
|
3672
|
+
hwm = Integer(hwm)
|
3673
|
+
result = ::CZMQ::FFI.zsock_set_hwm(self_p, hwm)
|
3681
3674
|
result
|
3682
3675
|
end
|
3683
3676
|
|
3684
|
-
# Set socket option `
|
3685
|
-
# Available from libzmq 3.0.0.
|
3677
|
+
# Set socket option `hwm`.
|
3678
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3686
3679
|
#
|
3687
|
-
# This is the polymorphic version of #
|
3680
|
+
# This is the polymorphic version of #set_hwm.
|
3688
3681
|
#
|
3689
3682
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3690
3683
|
# object reference to use this method on
|
3691
|
-
# @param
|
3684
|
+
# @param hwm [Integer, #to_int, #to_i]
|
3692
3685
|
# @return [void]
|
3693
|
-
def self.
|
3686
|
+
def self.set_hwm(self_p, hwm)
|
3694
3687
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3695
|
-
|
3696
|
-
result = ::CZMQ::FFI.
|
3688
|
+
hwm = Integer(hwm)
|
3689
|
+
result = ::CZMQ::FFI.zsock_set_hwm(self_p, hwm)
|
3697
3690
|
result
|
3698
3691
|
end
|
3699
3692
|
|
3700
|
-
# Get socket option `
|
3701
|
-
# Available from libzmq 3.0.0.
|
3693
|
+
# Get socket option `swap`.
|
3694
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3702
3695
|
#
|
3703
3696
|
# @return [Integer]
|
3704
|
-
def
|
3697
|
+
def swap()
|
3705
3698
|
raise DestroyedError unless @ptr
|
3706
3699
|
self_p = @ptr
|
3707
|
-
result = ::CZMQ::FFI.
|
3700
|
+
result = ::CZMQ::FFI.zsock_swap(self_p)
|
3708
3701
|
result
|
3709
3702
|
end
|
3710
3703
|
|
3711
|
-
# Get socket option `
|
3712
|
-
# Available from libzmq 3.0.0.
|
3704
|
+
# Get socket option `swap`.
|
3705
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3713
3706
|
#
|
3714
|
-
# This is the polymorphic version of #
|
3707
|
+
# This is the polymorphic version of #swap.
|
3715
3708
|
#
|
3716
3709
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3717
3710
|
# object reference to use this method on
|
3718
3711
|
# @return [Integer]
|
3719
|
-
def self.
|
3712
|
+
def self.swap(self_p)
|
3720
3713
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3721
|
-
result = ::CZMQ::FFI.
|
3714
|
+
result = ::CZMQ::FFI.zsock_swap(self_p)
|
3722
3715
|
result
|
3723
3716
|
end
|
3724
3717
|
|
3725
|
-
# Set socket option `
|
3726
|
-
# Available from libzmq 3.0.0.
|
3718
|
+
# Set socket option `swap`.
|
3719
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3727
3720
|
#
|
3728
|
-
# @param
|
3721
|
+
# @param swap [Integer, #to_int, #to_i]
|
3729
3722
|
# @return [void]
|
3730
|
-
def
|
3723
|
+
def set_swap(swap)
|
3731
3724
|
raise DestroyedError unless @ptr
|
3732
3725
|
self_p = @ptr
|
3733
|
-
|
3734
|
-
result = ::CZMQ::FFI.
|
3726
|
+
swap = Integer(swap)
|
3727
|
+
result = ::CZMQ::FFI.zsock_set_swap(self_p, swap)
|
3735
3728
|
result
|
3736
3729
|
end
|
3737
3730
|
|
3738
|
-
# Set socket option `
|
3739
|
-
# Available from libzmq 3.0.0.
|
3731
|
+
# Set socket option `swap`.
|
3732
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3740
3733
|
#
|
3741
|
-
# This is the polymorphic version of #
|
3734
|
+
# This is the polymorphic version of #set_swap.
|
3742
3735
|
#
|
3743
3736
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3744
3737
|
# object reference to use this method on
|
3745
|
-
# @param
|
3738
|
+
# @param swap [Integer, #to_int, #to_i]
|
3746
3739
|
# @return [void]
|
3747
|
-
def self.
|
3740
|
+
def self.set_swap(self_p, swap)
|
3748
3741
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3749
|
-
|
3750
|
-
result = ::CZMQ::FFI.
|
3742
|
+
swap = Integer(swap)
|
3743
|
+
result = ::CZMQ::FFI.zsock_set_swap(self_p, swap)
|
3751
3744
|
result
|
3752
3745
|
end
|
3753
3746
|
|
3754
|
-
# Get socket option `
|
3755
|
-
# Available from libzmq
|
3747
|
+
# Get socket option `affinity`.
|
3748
|
+
# Available from libzmq 2.0.0.
|
3756
3749
|
#
|
3757
3750
|
# @return [Integer]
|
3758
|
-
def
|
3751
|
+
def affinity()
|
3759
3752
|
raise DestroyedError unless @ptr
|
3760
3753
|
self_p = @ptr
|
3761
|
-
result = ::CZMQ::FFI.
|
3754
|
+
result = ::CZMQ::FFI.zsock_affinity(self_p)
|
3762
3755
|
result
|
3763
3756
|
end
|
3764
3757
|
|
3765
|
-
# Get socket option `
|
3766
|
-
# Available from libzmq
|
3758
|
+
# Get socket option `affinity`.
|
3759
|
+
# Available from libzmq 2.0.0.
|
3767
3760
|
#
|
3768
|
-
# This is the polymorphic version of #
|
3761
|
+
# This is the polymorphic version of #affinity.
|
3769
3762
|
#
|
3770
3763
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3771
3764
|
# object reference to use this method on
|
3772
3765
|
# @return [Integer]
|
3773
|
-
def self.
|
3766
|
+
def self.affinity(self_p)
|
3774
3767
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3775
|
-
result = ::CZMQ::FFI.
|
3768
|
+
result = ::CZMQ::FFI.zsock_affinity(self_p)
|
3776
3769
|
result
|
3777
3770
|
end
|
3778
3771
|
|
3779
|
-
# Set socket option `
|
3780
|
-
# Available from libzmq
|
3772
|
+
# Set socket option `affinity`.
|
3773
|
+
# Available from libzmq 2.0.0.
|
3781
3774
|
#
|
3782
|
-
# @param
|
3775
|
+
# @param affinity [Integer, #to_int, #to_i]
|
3783
3776
|
# @return [void]
|
3784
|
-
def
|
3777
|
+
def set_affinity(affinity)
|
3785
3778
|
raise DestroyedError unless @ptr
|
3786
3779
|
self_p = @ptr
|
3787
|
-
|
3788
|
-
result = ::CZMQ::FFI.
|
3780
|
+
affinity = Integer(affinity)
|
3781
|
+
result = ::CZMQ::FFI.zsock_set_affinity(self_p, affinity)
|
3789
3782
|
result
|
3790
3783
|
end
|
3791
3784
|
|
3792
|
-
# Set socket option `
|
3793
|
-
# Available from libzmq
|
3785
|
+
# Set socket option `affinity`.
|
3786
|
+
# Available from libzmq 2.0.0.
|
3794
3787
|
#
|
3795
|
-
# This is the polymorphic version of #
|
3788
|
+
# This is the polymorphic version of #set_affinity.
|
3796
3789
|
#
|
3797
3790
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3798
3791
|
# object reference to use this method on
|
3799
|
-
# @param
|
3792
|
+
# @param affinity [Integer, #to_int, #to_i]
|
3800
3793
|
# @return [void]
|
3801
|
-
def self.
|
3794
|
+
def self.set_affinity(self_p, affinity)
|
3802
3795
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3803
|
-
|
3804
|
-
result = ::CZMQ::FFI.
|
3796
|
+
affinity = Integer(affinity)
|
3797
|
+
result = ::CZMQ::FFI.zsock_set_affinity(self_p, affinity)
|
3805
3798
|
result
|
3806
3799
|
end
|
3807
3800
|
|
3808
|
-
# Get socket option `
|
3809
|
-
# Available from libzmq
|
3801
|
+
# Get socket option `identity`.
|
3802
|
+
# Available from libzmq 2.0.0.
|
3810
3803
|
#
|
3811
|
-
# @return [
|
3812
|
-
def
|
3804
|
+
# @return [::FFI::AutoPointer]
|
3805
|
+
def identity()
|
3813
3806
|
raise DestroyedError unless @ptr
|
3814
3807
|
self_p = @ptr
|
3815
|
-
result = ::CZMQ::FFI.
|
3808
|
+
result = ::CZMQ::FFI.zsock_identity(self_p)
|
3809
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3816
3810
|
result
|
3817
3811
|
end
|
3818
3812
|
|
3819
|
-
# Get socket option `
|
3820
|
-
# Available from libzmq
|
3813
|
+
# Get socket option `identity`.
|
3814
|
+
# Available from libzmq 2.0.0.
|
3821
3815
|
#
|
3822
|
-
# This is the polymorphic version of #
|
3816
|
+
# This is the polymorphic version of #identity.
|
3823
3817
|
#
|
3824
3818
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3825
3819
|
# object reference to use this method on
|
3826
|
-
# @return [
|
3827
|
-
def self.
|
3820
|
+
# @return [::FFI::AutoPointer]
|
3821
|
+
def self.identity(self_p)
|
3828
3822
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3829
|
-
result = ::CZMQ::FFI.
|
3823
|
+
result = ::CZMQ::FFI.zsock_identity(self_p)
|
3824
|
+
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
3830
3825
|
result
|
3831
3826
|
end
|
3832
3827
|
|
3833
|
-
# Set socket option `
|
3834
|
-
# Available from libzmq
|
3828
|
+
# Set socket option `identity`.
|
3829
|
+
# Available from libzmq 2.0.0.
|
3835
3830
|
#
|
3836
|
-
# @param
|
3831
|
+
# @param identity [String, #to_s, nil]
|
3837
3832
|
# @return [void]
|
3838
|
-
def
|
3833
|
+
def set_identity(identity)
|
3839
3834
|
raise DestroyedError unless @ptr
|
3840
3835
|
self_p = @ptr
|
3841
|
-
|
3842
|
-
result = ::CZMQ::FFI.zsock_set_rcvtimeo(self_p, rcvtimeo)
|
3836
|
+
result = ::CZMQ::FFI.zsock_set_identity(self_p, identity)
|
3843
3837
|
result
|
3844
3838
|
end
|
3845
3839
|
|
3846
|
-
# Set socket option `
|
3847
|
-
# Available from libzmq
|
3840
|
+
# Set socket option `identity`.
|
3841
|
+
# Available from libzmq 2.0.0.
|
3848
3842
|
#
|
3849
|
-
# This is the polymorphic version of #
|
3843
|
+
# This is the polymorphic version of #set_identity.
|
3850
3844
|
#
|
3851
3845
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3852
3846
|
# object reference to use this method on
|
3853
|
-
# @param
|
3847
|
+
# @param identity [String, #to_s, nil]
|
3854
3848
|
# @return [void]
|
3855
|
-
def self.
|
3849
|
+
def self.set_identity(self_p, identity)
|
3856
3850
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3857
|
-
|
3858
|
-
result = ::CZMQ::FFI.zsock_set_rcvtimeo(self_p, rcvtimeo)
|
3851
|
+
result = ::CZMQ::FFI.zsock_set_identity(self_p, identity)
|
3859
3852
|
result
|
3860
3853
|
end
|
3861
3854
|
|
3862
|
-
# Get socket option `
|
3863
|
-
# Available from libzmq
|
3855
|
+
# Get socket option `rate`.
|
3856
|
+
# Available from libzmq 2.0.0.
|
3864
3857
|
#
|
3865
3858
|
# @return [Integer]
|
3866
|
-
def
|
3859
|
+
def rate()
|
3867
3860
|
raise DestroyedError unless @ptr
|
3868
3861
|
self_p = @ptr
|
3869
|
-
result = ::CZMQ::FFI.
|
3862
|
+
result = ::CZMQ::FFI.zsock_rate(self_p)
|
3870
3863
|
result
|
3871
3864
|
end
|
3872
3865
|
|
3873
|
-
# Get socket option `
|
3874
|
-
# Available from libzmq
|
3866
|
+
# Get socket option `rate`.
|
3867
|
+
# Available from libzmq 2.0.0.
|
3875
3868
|
#
|
3876
|
-
# This is the polymorphic version of #
|
3869
|
+
# This is the polymorphic version of #rate.
|
3877
3870
|
#
|
3878
3871
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3879
3872
|
# object reference to use this method on
|
3880
3873
|
# @return [Integer]
|
3881
|
-
def self.
|
3874
|
+
def self.rate(self_p)
|
3882
3875
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3883
|
-
result = ::CZMQ::FFI.
|
3876
|
+
result = ::CZMQ::FFI.zsock_rate(self_p)
|
3884
3877
|
result
|
3885
3878
|
end
|
3886
3879
|
|
3887
|
-
# Set socket option `
|
3888
|
-
# Available from libzmq
|
3880
|
+
# Set socket option `rate`.
|
3881
|
+
# Available from libzmq 2.0.0.
|
3889
3882
|
#
|
3890
|
-
# @param
|
3883
|
+
# @param rate [Integer, #to_int, #to_i]
|
3891
3884
|
# @return [void]
|
3892
|
-
def
|
3885
|
+
def set_rate(rate)
|
3893
3886
|
raise DestroyedError unless @ptr
|
3894
3887
|
self_p = @ptr
|
3895
|
-
|
3896
|
-
result = ::CZMQ::FFI.
|
3888
|
+
rate = Integer(rate)
|
3889
|
+
result = ::CZMQ::FFI.zsock_set_rate(self_p, rate)
|
3897
3890
|
result
|
3898
3891
|
end
|
3899
3892
|
|
3900
|
-
# Set socket option `
|
3901
|
-
# Available from libzmq
|
3893
|
+
# Set socket option `rate`.
|
3894
|
+
# Available from libzmq 2.0.0.
|
3902
3895
|
#
|
3903
|
-
# This is the polymorphic version of #
|
3896
|
+
# This is the polymorphic version of #set_rate.
|
3904
3897
|
#
|
3905
3898
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3906
3899
|
# object reference to use this method on
|
3907
|
-
# @param
|
3900
|
+
# @param rate [Integer, #to_int, #to_i]
|
3908
3901
|
# @return [void]
|
3909
|
-
def self.
|
3902
|
+
def self.set_rate(self_p, rate)
|
3910
3903
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3911
|
-
|
3912
|
-
result = ::CZMQ::FFI.
|
3904
|
+
rate = Integer(rate)
|
3905
|
+
result = ::CZMQ::FFI.zsock_set_rate(self_p, rate)
|
3913
3906
|
result
|
3914
3907
|
end
|
3915
3908
|
|
3916
|
-
#
|
3917
|
-
# Available from libzmq
|
3909
|
+
# Get socket option `recovery_ivl`.
|
3910
|
+
# Available from libzmq 2.0.0.
|
3918
3911
|
#
|
3919
|
-
# @
|
3920
|
-
|
3921
|
-
def set_xpub_verbose(xpub_verbose)
|
3912
|
+
# @return [Integer]
|
3913
|
+
def recovery_ivl()
|
3922
3914
|
raise DestroyedError unless @ptr
|
3923
3915
|
self_p = @ptr
|
3924
|
-
|
3925
|
-
result = ::CZMQ::FFI.zsock_set_xpub_verbose(self_p, xpub_verbose)
|
3916
|
+
result = ::CZMQ::FFI.zsock_recovery_ivl(self_p)
|
3926
3917
|
result
|
3927
3918
|
end
|
3928
3919
|
|
3929
|
-
#
|
3930
|
-
# Available from libzmq
|
3920
|
+
# Get socket option `recovery_ivl`.
|
3921
|
+
# Available from libzmq 2.0.0.
|
3931
3922
|
#
|
3932
|
-
# This is the polymorphic version of #
|
3923
|
+
# This is the polymorphic version of #recovery_ivl.
|
3933
3924
|
#
|
3934
3925
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3935
3926
|
# object reference to use this method on
|
3936
|
-
# @
|
3937
|
-
|
3938
|
-
def self.set_xpub_verbose(self_p, xpub_verbose)
|
3927
|
+
# @return [Integer]
|
3928
|
+
def self.recovery_ivl(self_p)
|
3939
3929
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3940
|
-
|
3941
|
-
result = ::CZMQ::FFI.zsock_set_xpub_verbose(self_p, xpub_verbose)
|
3930
|
+
result = ::CZMQ::FFI.zsock_recovery_ivl(self_p)
|
3942
3931
|
result
|
3943
3932
|
end
|
3944
3933
|
|
3945
|
-
#
|
3946
|
-
# Available from libzmq
|
3934
|
+
# Set socket option `recovery_ivl`.
|
3935
|
+
# Available from libzmq 2.0.0.
|
3947
3936
|
#
|
3948
|
-
# @
|
3949
|
-
|
3937
|
+
# @param recovery_ivl [Integer, #to_int, #to_i]
|
3938
|
+
# @return [void]
|
3939
|
+
def set_recovery_ivl(recovery_ivl)
|
3950
3940
|
raise DestroyedError unless @ptr
|
3951
3941
|
self_p = @ptr
|
3952
|
-
|
3942
|
+
recovery_ivl = Integer(recovery_ivl)
|
3943
|
+
result = ::CZMQ::FFI.zsock_set_recovery_ivl(self_p, recovery_ivl)
|
3953
3944
|
result
|
3954
3945
|
end
|
3955
3946
|
|
3956
|
-
#
|
3957
|
-
# Available from libzmq
|
3947
|
+
# Set socket option `recovery_ivl`.
|
3948
|
+
# Available from libzmq 2.0.0.
|
3958
3949
|
#
|
3959
|
-
# This is the polymorphic version of #
|
3950
|
+
# This is the polymorphic version of #set_recovery_ivl.
|
3960
3951
|
#
|
3961
3952
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3962
3953
|
# object reference to use this method on
|
3963
|
-
# @
|
3964
|
-
|
3965
|
-
|
3966
|
-
|
3954
|
+
# @param recovery_ivl [Integer, #to_int, #to_i]
|
3955
|
+
# @return [void]
|
3956
|
+
def self.set_recovery_ivl(self_p, recovery_ivl)
|
3957
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3958
|
+
recovery_ivl = Integer(recovery_ivl)
|
3959
|
+
result = ::CZMQ::FFI.zsock_set_recovery_ivl(self_p, recovery_ivl)
|
3967
3960
|
result
|
3968
3961
|
end
|
3969
3962
|
|
3970
|
-
#
|
3971
|
-
# Available from libzmq 3.0.0.
|
3963
|
+
# Get socket option `recovery_ivl_msec`.
|
3964
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3972
3965
|
#
|
3973
|
-
# @
|
3966
|
+
# @return [Integer]
|
3967
|
+
def recovery_ivl_msec()
|
3968
|
+
raise DestroyedError unless @ptr
|
3969
|
+
self_p = @ptr
|
3970
|
+
result = ::CZMQ::FFI.zsock_recovery_ivl_msec(self_p)
|
3971
|
+
result
|
3972
|
+
end
|
3973
|
+
|
3974
|
+
# Get socket option `recovery_ivl_msec`.
|
3975
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3976
|
+
#
|
3977
|
+
# This is the polymorphic version of #recovery_ivl_msec.
|
3978
|
+
#
|
3979
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3980
|
+
# object reference to use this method on
|
3981
|
+
# @return [Integer]
|
3982
|
+
def self.recovery_ivl_msec(self_p)
|
3983
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3984
|
+
result = ::CZMQ::FFI.zsock_recovery_ivl_msec(self_p)
|
3985
|
+
result
|
3986
|
+
end
|
3987
|
+
|
3988
|
+
# Set socket option `recovery_ivl_msec`.
|
3989
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3990
|
+
#
|
3991
|
+
# @param recovery_ivl_msec [Integer, #to_int, #to_i]
|
3974
3992
|
# @return [void]
|
3975
|
-
def
|
3993
|
+
def set_recovery_ivl_msec(recovery_ivl_msec)
|
3976
3994
|
raise DestroyedError unless @ptr
|
3977
3995
|
self_p = @ptr
|
3978
|
-
|
3979
|
-
result = ::CZMQ::FFI.
|
3996
|
+
recovery_ivl_msec = Integer(recovery_ivl_msec)
|
3997
|
+
result = ::CZMQ::FFI.zsock_set_recovery_ivl_msec(self_p, recovery_ivl_msec)
|
3980
3998
|
result
|
3981
3999
|
end
|
3982
4000
|
|
3983
|
-
# Set socket option `
|
3984
|
-
# Available from libzmq 3.0.0.
|
4001
|
+
# Set socket option `recovery_ivl_msec`.
|
4002
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
3985
4003
|
#
|
3986
|
-
# This is the polymorphic version of #
|
4004
|
+
# This is the polymorphic version of #set_recovery_ivl_msec.
|
3987
4005
|
#
|
3988
4006
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
3989
4007
|
# object reference to use this method on
|
3990
|
-
# @param
|
4008
|
+
# @param recovery_ivl_msec [Integer, #to_int, #to_i]
|
3991
4009
|
# @return [void]
|
3992
|
-
def self.
|
4010
|
+
def self.set_recovery_ivl_msec(self_p, recovery_ivl_msec)
|
3993
4011
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
3994
|
-
|
3995
|
-
result = ::CZMQ::FFI.
|
4012
|
+
recovery_ivl_msec = Integer(recovery_ivl_msec)
|
4013
|
+
result = ::CZMQ::FFI.zsock_set_recovery_ivl_msec(self_p, recovery_ivl_msec)
|
3996
4014
|
result
|
3997
4015
|
end
|
3998
4016
|
|
3999
|
-
# Get socket option `
|
4000
|
-
# Available from libzmq 3.0.0.
|
4017
|
+
# Get socket option `mcast_loop`.
|
4018
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
4001
4019
|
#
|
4002
4020
|
# @return [Integer]
|
4003
|
-
def
|
4021
|
+
def mcast_loop()
|
4004
4022
|
raise DestroyedError unless @ptr
|
4005
4023
|
self_p = @ptr
|
4006
|
-
result = ::CZMQ::FFI.
|
4024
|
+
result = ::CZMQ::FFI.zsock_mcast_loop(self_p)
|
4007
4025
|
result
|
4008
4026
|
end
|
4009
4027
|
|
4010
|
-
# Get socket option `
|
4011
|
-
# Available from libzmq 3.0.0.
|
4028
|
+
# Get socket option `mcast_loop`.
|
4029
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
4012
4030
|
#
|
4013
|
-
# This is the polymorphic version of #
|
4031
|
+
# This is the polymorphic version of #mcast_loop.
|
4014
4032
|
#
|
4015
4033
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4016
4034
|
# object reference to use this method on
|
4017
4035
|
# @return [Integer]
|
4018
|
-
def self.
|
4036
|
+
def self.mcast_loop(self_p)
|
4019
4037
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4020
|
-
result = ::CZMQ::FFI.
|
4038
|
+
result = ::CZMQ::FFI.zsock_mcast_loop(self_p)
|
4021
4039
|
result
|
4022
4040
|
end
|
4023
4041
|
|
4024
|
-
# Set socket option `
|
4025
|
-
# Available from libzmq 3.0.0.
|
4042
|
+
# Set socket option `mcast_loop`.
|
4043
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
4026
4044
|
#
|
4027
|
-
# @param
|
4045
|
+
# @param mcast_loop [Integer, #to_int, #to_i]
|
4028
4046
|
# @return [void]
|
4029
|
-
def
|
4047
|
+
def set_mcast_loop(mcast_loop)
|
4030
4048
|
raise DestroyedError unless @ptr
|
4031
4049
|
self_p = @ptr
|
4032
|
-
|
4033
|
-
result = ::CZMQ::FFI.
|
4050
|
+
mcast_loop = Integer(mcast_loop)
|
4051
|
+
result = ::CZMQ::FFI.zsock_set_mcast_loop(self_p, mcast_loop)
|
4034
4052
|
result
|
4035
4053
|
end
|
4036
4054
|
|
4037
|
-
# Set socket option `
|
4038
|
-
# Available from libzmq 3.0.0.
|
4055
|
+
# Set socket option `mcast_loop`.
|
4056
|
+
# Available from libzmq 2.0.0 to 3.0.0.
|
4039
4057
|
#
|
4040
|
-
# This is the polymorphic version of #
|
4058
|
+
# This is the polymorphic version of #set_mcast_loop.
|
4041
4059
|
#
|
4042
4060
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4043
4061
|
# object reference to use this method on
|
4044
|
-
# @param
|
4062
|
+
# @param mcast_loop [Integer, #to_int, #to_i]
|
4045
4063
|
# @return [void]
|
4046
|
-
def self.
|
4064
|
+
def self.set_mcast_loop(self_p, mcast_loop)
|
4047
4065
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4048
|
-
|
4049
|
-
result = ::CZMQ::FFI.
|
4066
|
+
mcast_loop = Integer(mcast_loop)
|
4067
|
+
result = ::CZMQ::FFI.zsock_set_mcast_loop(self_p, mcast_loop)
|
4050
4068
|
result
|
4051
4069
|
end
|
4052
4070
|
|
4053
|
-
# Get socket option `
|
4054
|
-
# Available from libzmq
|
4071
|
+
# Get socket option `rcvtimeo`.
|
4072
|
+
# Available from libzmq 2.2.0.
|
4055
4073
|
#
|
4056
4074
|
# @return [Integer]
|
4057
|
-
def
|
4075
|
+
def rcvtimeo()
|
4058
4076
|
raise DestroyedError unless @ptr
|
4059
4077
|
self_p = @ptr
|
4060
|
-
result = ::CZMQ::FFI.
|
4078
|
+
result = ::CZMQ::FFI.zsock_rcvtimeo(self_p)
|
4061
4079
|
result
|
4062
4080
|
end
|
4063
4081
|
|
4064
|
-
# Get socket option `
|
4065
|
-
# Available from libzmq
|
4082
|
+
# Get socket option `rcvtimeo`.
|
4083
|
+
# Available from libzmq 2.2.0.
|
4066
4084
|
#
|
4067
|
-
# This is the polymorphic version of #
|
4085
|
+
# This is the polymorphic version of #rcvtimeo.
|
4068
4086
|
#
|
4069
4087
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4070
4088
|
# object reference to use this method on
|
4071
4089
|
# @return [Integer]
|
4072
|
-
def self.
|
4090
|
+
def self.rcvtimeo(self_p)
|
4073
4091
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4074
|
-
result = ::CZMQ::FFI.
|
4092
|
+
result = ::CZMQ::FFI.zsock_rcvtimeo(self_p)
|
4075
4093
|
result
|
4076
4094
|
end
|
4077
4095
|
|
4078
|
-
# Set socket option `
|
4079
|
-
# Available from libzmq
|
4096
|
+
# Set socket option `rcvtimeo`.
|
4097
|
+
# Available from libzmq 2.2.0.
|
4080
4098
|
#
|
4081
|
-
# @param
|
4099
|
+
# @param rcvtimeo [Integer, #to_int, #to_i]
|
4082
4100
|
# @return [void]
|
4083
|
-
def
|
4101
|
+
def set_rcvtimeo(rcvtimeo)
|
4084
4102
|
raise DestroyedError unless @ptr
|
4085
4103
|
self_p = @ptr
|
4086
|
-
|
4087
|
-
result = ::CZMQ::FFI.
|
4104
|
+
rcvtimeo = Integer(rcvtimeo)
|
4105
|
+
result = ::CZMQ::FFI.zsock_set_rcvtimeo(self_p, rcvtimeo)
|
4088
4106
|
result
|
4089
4107
|
end
|
4090
4108
|
|
4091
|
-
# Set socket option `
|
4092
|
-
# Available from libzmq
|
4109
|
+
# Set socket option `rcvtimeo`.
|
4110
|
+
# Available from libzmq 2.2.0.
|
4093
4111
|
#
|
4094
|
-
# This is the polymorphic version of #
|
4112
|
+
# This is the polymorphic version of #set_rcvtimeo.
|
4095
4113
|
#
|
4096
4114
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4097
4115
|
# object reference to use this method on
|
4098
|
-
# @param
|
4116
|
+
# @param rcvtimeo [Integer, #to_int, #to_i]
|
4099
4117
|
# @return [void]
|
4100
|
-
def self.
|
4118
|
+
def self.set_rcvtimeo(self_p, rcvtimeo)
|
4101
4119
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4102
|
-
|
4103
|
-
result = ::CZMQ::FFI.
|
4120
|
+
rcvtimeo = Integer(rcvtimeo)
|
4121
|
+
result = ::CZMQ::FFI.zsock_set_rcvtimeo(self_p, rcvtimeo)
|
4104
4122
|
result
|
4105
4123
|
end
|
4106
4124
|
|
4107
|
-
# Get socket option `
|
4108
|
-
# Available from libzmq
|
4125
|
+
# Get socket option `sndtimeo`.
|
4126
|
+
# Available from libzmq 2.2.0.
|
4109
4127
|
#
|
4110
4128
|
# @return [Integer]
|
4111
|
-
def
|
4129
|
+
def sndtimeo()
|
4112
4130
|
raise DestroyedError unless @ptr
|
4113
4131
|
self_p = @ptr
|
4114
|
-
result = ::CZMQ::FFI.
|
4132
|
+
result = ::CZMQ::FFI.zsock_sndtimeo(self_p)
|
4115
4133
|
result
|
4116
4134
|
end
|
4117
4135
|
|
4118
|
-
# Get socket option `
|
4119
|
-
# Available from libzmq
|
4136
|
+
# Get socket option `sndtimeo`.
|
4137
|
+
# Available from libzmq 2.2.0.
|
4120
4138
|
#
|
4121
|
-
# This is the polymorphic version of #
|
4139
|
+
# This is the polymorphic version of #sndtimeo.
|
4122
4140
|
#
|
4123
4141
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4124
4142
|
# object reference to use this method on
|
4125
4143
|
# @return [Integer]
|
4126
|
-
def self.
|
4144
|
+
def self.sndtimeo(self_p)
|
4127
4145
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4128
|
-
result = ::CZMQ::FFI.
|
4146
|
+
result = ::CZMQ::FFI.zsock_sndtimeo(self_p)
|
4129
4147
|
result
|
4130
4148
|
end
|
4131
4149
|
|
4132
|
-
# Set socket option `
|
4133
|
-
# Available from libzmq
|
4150
|
+
# Set socket option `sndtimeo`.
|
4151
|
+
# Available from libzmq 2.2.0.
|
4134
4152
|
#
|
4135
|
-
# @param
|
4153
|
+
# @param sndtimeo [Integer, #to_int, #to_i]
|
4136
4154
|
# @return [void]
|
4137
|
-
def
|
4155
|
+
def set_sndtimeo(sndtimeo)
|
4138
4156
|
raise DestroyedError unless @ptr
|
4139
4157
|
self_p = @ptr
|
4140
|
-
|
4141
|
-
result = ::CZMQ::FFI.
|
4158
|
+
sndtimeo = Integer(sndtimeo)
|
4159
|
+
result = ::CZMQ::FFI.zsock_set_sndtimeo(self_p, sndtimeo)
|
4142
4160
|
result
|
4143
4161
|
end
|
4144
4162
|
|
4145
|
-
# Set socket option `
|
4146
|
-
# Available from libzmq
|
4163
|
+
# Set socket option `sndtimeo`.
|
4164
|
+
# Available from libzmq 2.2.0.
|
4147
4165
|
#
|
4148
|
-
# This is the polymorphic version of #
|
4166
|
+
# This is the polymorphic version of #set_sndtimeo.
|
4149
4167
|
#
|
4150
4168
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4151
4169
|
# object reference to use this method on
|
4152
|
-
# @param
|
4170
|
+
# @param sndtimeo [Integer, #to_int, #to_i]
|
4153
4171
|
# @return [void]
|
4154
|
-
def self.
|
4172
|
+
def self.set_sndtimeo(self_p, sndtimeo)
|
4155
4173
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4156
|
-
|
4157
|
-
result = ::CZMQ::FFI.
|
4174
|
+
sndtimeo = Integer(sndtimeo)
|
4175
|
+
result = ::CZMQ::FFI.zsock_set_sndtimeo(self_p, sndtimeo)
|
4158
4176
|
result
|
4159
4177
|
end
|
4160
4178
|
|
4161
|
-
# Get socket option `
|
4162
|
-
# Available from libzmq
|
4179
|
+
# Get socket option `sndbuf`.
|
4180
|
+
# Available from libzmq 2.0.0.
|
4163
4181
|
#
|
4164
|
-
# @return [
|
4165
|
-
def
|
4182
|
+
# @return [Integer]
|
4183
|
+
def sndbuf()
|
4166
4184
|
raise DestroyedError unless @ptr
|
4167
4185
|
self_p = @ptr
|
4168
|
-
result = ::CZMQ::FFI.
|
4169
|
-
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
4186
|
+
result = ::CZMQ::FFI.zsock_sndbuf(self_p)
|
4170
4187
|
result
|
4171
4188
|
end
|
4172
4189
|
|
4173
|
-
# Get socket option `
|
4174
|
-
# Available from libzmq
|
4190
|
+
# Get socket option `sndbuf`.
|
4191
|
+
# Available from libzmq 2.0.0.
|
4175
4192
|
#
|
4176
|
-
# This is the polymorphic version of #
|
4193
|
+
# This is the polymorphic version of #sndbuf.
|
4177
4194
|
#
|
4178
4195
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4179
4196
|
# object reference to use this method on
|
4180
|
-
# @return [
|
4181
|
-
def self.
|
4197
|
+
# @return [Integer]
|
4198
|
+
def self.sndbuf(self_p)
|
4182
4199
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4183
|
-
result = ::CZMQ::FFI.
|
4184
|
-
result = ::FFI::AutoPointer.new(result, LibC.method(:free))
|
4200
|
+
result = ::CZMQ::FFI.zsock_sndbuf(self_p)
|
4185
4201
|
result
|
4186
4202
|
end
|
4187
4203
|
|
4188
|
-
# Set socket option `
|
4189
|
-
# Available from libzmq
|
4204
|
+
# Set socket option `sndbuf`.
|
4205
|
+
# Available from libzmq 2.0.0.
|
4190
4206
|
#
|
4191
|
-
# @param
|
4207
|
+
# @param sndbuf [Integer, #to_int, #to_i]
|
4192
4208
|
# @return [void]
|
4193
|
-
def
|
4209
|
+
def set_sndbuf(sndbuf)
|
4194
4210
|
raise DestroyedError unless @ptr
|
4195
4211
|
self_p = @ptr
|
4196
|
-
|
4212
|
+
sndbuf = Integer(sndbuf)
|
4213
|
+
result = ::CZMQ::FFI.zsock_set_sndbuf(self_p, sndbuf)
|
4197
4214
|
result
|
4198
4215
|
end
|
4199
4216
|
|
4200
|
-
# Set socket option `
|
4201
|
-
# Available from libzmq
|
4217
|
+
# Set socket option `sndbuf`.
|
4218
|
+
# Available from libzmq 2.0.0.
|
4202
4219
|
#
|
4203
|
-
# This is the polymorphic version of #
|
4220
|
+
# This is the polymorphic version of #set_sndbuf.
|
4204
4221
|
#
|
4205
4222
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4206
4223
|
# object reference to use this method on
|
4207
|
-
# @param
|
4224
|
+
# @param sndbuf [Integer, #to_int, #to_i]
|
4208
4225
|
# @return [void]
|
4209
|
-
def self.
|
4226
|
+
def self.set_sndbuf(self_p, sndbuf)
|
4210
4227
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4211
|
-
|
4228
|
+
sndbuf = Integer(sndbuf)
|
4229
|
+
result = ::CZMQ::FFI.zsock_set_sndbuf(self_p, sndbuf)
|
4212
4230
|
result
|
4213
4231
|
end
|
4214
4232
|
|
4215
|
-
# Get socket option `
|
4216
|
-
# Available from libzmq
|
4233
|
+
# Get socket option `rcvbuf`.
|
4234
|
+
# Available from libzmq 2.0.0.
|
4217
4235
|
#
|
4218
4236
|
# @return [Integer]
|
4219
|
-
def
|
4237
|
+
def rcvbuf()
|
4220
4238
|
raise DestroyedError unless @ptr
|
4221
4239
|
self_p = @ptr
|
4222
|
-
result = ::CZMQ::FFI.
|
4240
|
+
result = ::CZMQ::FFI.zsock_rcvbuf(self_p)
|
4223
4241
|
result
|
4224
4242
|
end
|
4225
4243
|
|
4226
|
-
# Get socket option `
|
4227
|
-
# Available from libzmq
|
4244
|
+
# Get socket option `rcvbuf`.
|
4245
|
+
# Available from libzmq 2.0.0.
|
4228
4246
|
#
|
4229
|
-
# This is the polymorphic version of #
|
4247
|
+
# This is the polymorphic version of #rcvbuf.
|
4230
4248
|
#
|
4231
4249
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4232
4250
|
# object reference to use this method on
|
4233
4251
|
# @return [Integer]
|
4234
|
-
def self.
|
4252
|
+
def self.rcvbuf(self_p)
|
4235
4253
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4236
|
-
result = ::CZMQ::FFI.
|
4254
|
+
result = ::CZMQ::FFI.zsock_rcvbuf(self_p)
|
4237
4255
|
result
|
4238
4256
|
end
|
4239
4257
|
|
4240
|
-
#
|
4241
|
-
# Available from libzmq
|
4258
|
+
# Set socket option `rcvbuf`.
|
4259
|
+
# Available from libzmq 2.0.0.
|
4242
4260
|
#
|
4243
|
-
# @
|
4244
|
-
|
4261
|
+
# @param rcvbuf [Integer, #to_int, #to_i]
|
4262
|
+
# @return [void]
|
4263
|
+
def set_rcvbuf(rcvbuf)
|
4245
4264
|
raise DestroyedError unless @ptr
|
4246
4265
|
self_p = @ptr
|
4247
|
-
|
4266
|
+
rcvbuf = Integer(rcvbuf)
|
4267
|
+
result = ::CZMQ::FFI.zsock_set_rcvbuf(self_p, rcvbuf)
|
4248
4268
|
result
|
4249
4269
|
end
|
4250
4270
|
|
4251
|
-
#
|
4252
|
-
# Available from libzmq
|
4271
|
+
# Set socket option `rcvbuf`.
|
4272
|
+
# Available from libzmq 2.0.0.
|
4253
4273
|
#
|
4254
|
-
# This is the polymorphic version of #
|
4274
|
+
# This is the polymorphic version of #set_rcvbuf.
|
4255
4275
|
#
|
4256
4276
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4257
4277
|
# object reference to use this method on
|
4258
|
-
# @
|
4259
|
-
|
4278
|
+
# @param rcvbuf [Integer, #to_int, #to_i]
|
4279
|
+
# @return [void]
|
4280
|
+
def self.set_rcvbuf(self_p, rcvbuf)
|
4260
4281
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4261
|
-
|
4282
|
+
rcvbuf = Integer(rcvbuf)
|
4283
|
+
result = ::CZMQ::FFI.zsock_set_rcvbuf(self_p, rcvbuf)
|
4262
4284
|
result
|
4263
4285
|
end
|
4264
4286
|
|
4265
|
-
# Get socket option `
|
4266
|
-
# Available from libzmq
|
4287
|
+
# Get socket option `linger`.
|
4288
|
+
# Available from libzmq 2.0.0.
|
4267
4289
|
#
|
4268
4290
|
# @return [Integer]
|
4269
|
-
def
|
4291
|
+
def linger()
|
4270
4292
|
raise DestroyedError unless @ptr
|
4271
4293
|
self_p = @ptr
|
4272
|
-
result = ::CZMQ::FFI.
|
4294
|
+
result = ::CZMQ::FFI.zsock_linger(self_p)
|
4273
4295
|
result
|
4274
4296
|
end
|
4275
4297
|
|
4276
|
-
# Get socket option `
|
4277
|
-
# Available from libzmq
|
4298
|
+
# Get socket option `linger`.
|
4299
|
+
# Available from libzmq 2.0.0.
|
4278
4300
|
#
|
4279
|
-
# This is the polymorphic version of #
|
4301
|
+
# This is the polymorphic version of #linger.
|
4280
4302
|
#
|
4281
4303
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4282
4304
|
# object reference to use this method on
|
4283
4305
|
# @return [Integer]
|
4284
|
-
def self.
|
4306
|
+
def self.linger(self_p)
|
4285
4307
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4286
|
-
result = ::CZMQ::FFI.
|
4308
|
+
result = ::CZMQ::FFI.zsock_linger(self_p)
|
4287
4309
|
result
|
4288
4310
|
end
|
4289
4311
|
|
4290
|
-
#
|
4291
|
-
# Available from libzmq
|
4312
|
+
# Set socket option `linger`.
|
4313
|
+
# Available from libzmq 2.0.0.
|
4292
4314
|
#
|
4293
|
-
# @
|
4294
|
-
|
4315
|
+
# @param linger [Integer, #to_int, #to_i]
|
4316
|
+
# @return [void]
|
4317
|
+
def set_linger(linger)
|
4295
4318
|
raise DestroyedError unless @ptr
|
4296
4319
|
self_p = @ptr
|
4297
|
-
|
4298
|
-
result = ::FFI
|
4320
|
+
linger = Integer(linger)
|
4321
|
+
result = ::CZMQ::FFI.zsock_set_linger(self_p, linger)
|
4299
4322
|
result
|
4300
4323
|
end
|
4301
4324
|
|
4302
|
-
#
|
4303
|
-
# Available from libzmq
|
4325
|
+
# Set socket option `linger`.
|
4326
|
+
# Available from libzmq 2.0.0.
|
4304
4327
|
#
|
4305
|
-
# This is the polymorphic version of #
|
4328
|
+
# This is the polymorphic version of #set_linger.
|
4306
4329
|
#
|
4307
4330
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4308
4331
|
# object reference to use this method on
|
4309
|
-
# @
|
4310
|
-
|
4332
|
+
# @param linger [Integer, #to_int, #to_i]
|
4333
|
+
# @return [void]
|
4334
|
+
def self.set_linger(self_p, linger)
|
4311
4335
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4312
|
-
|
4313
|
-
result = ::FFI
|
4336
|
+
linger = Integer(linger)
|
4337
|
+
result = ::CZMQ::FFI.zsock_set_linger(self_p, linger)
|
4314
4338
|
result
|
4315
4339
|
end
|
4316
4340
|
|
4317
|
-
#
|
4318
|
-
# Available from libzmq
|
4341
|
+
# Get socket option `reconnect_ivl`.
|
4342
|
+
# Available from libzmq 2.0.0.
|
4319
4343
|
#
|
4320
|
-
# @
|
4344
|
+
# @return [Integer]
|
4345
|
+
def reconnect_ivl()
|
4346
|
+
raise DestroyedError unless @ptr
|
4347
|
+
self_p = @ptr
|
4348
|
+
result = ::CZMQ::FFI.zsock_reconnect_ivl(self_p)
|
4349
|
+
result
|
4350
|
+
end
|
4351
|
+
|
4352
|
+
# Get socket option `reconnect_ivl`.
|
4353
|
+
# Available from libzmq 2.0.0.
|
4354
|
+
#
|
4355
|
+
# This is the polymorphic version of #reconnect_ivl.
|
4356
|
+
#
|
4357
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4358
|
+
# object reference to use this method on
|
4359
|
+
# @return [Integer]
|
4360
|
+
def self.reconnect_ivl(self_p)
|
4361
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4362
|
+
result = ::CZMQ::FFI.zsock_reconnect_ivl(self_p)
|
4363
|
+
result
|
4364
|
+
end
|
4365
|
+
|
4366
|
+
# Set socket option `reconnect_ivl`.
|
4367
|
+
# Available from libzmq 2.0.0.
|
4368
|
+
#
|
4369
|
+
# @param reconnect_ivl [Integer, #to_int, #to_i]
|
4321
4370
|
# @return [void]
|
4322
|
-
def
|
4371
|
+
def set_reconnect_ivl(reconnect_ivl)
|
4323
4372
|
raise DestroyedError unless @ptr
|
4324
4373
|
self_p = @ptr
|
4325
|
-
|
4326
|
-
result = ::CZMQ::FFI.
|
4374
|
+
reconnect_ivl = Integer(reconnect_ivl)
|
4375
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_ivl(self_p, reconnect_ivl)
|
4327
4376
|
result
|
4328
4377
|
end
|
4329
4378
|
|
4330
|
-
# Set socket option `
|
4331
|
-
# Available from libzmq
|
4379
|
+
# Set socket option `reconnect_ivl`.
|
4380
|
+
# Available from libzmq 2.0.0.
|
4332
4381
|
#
|
4333
|
-
# This is the polymorphic version of #
|
4382
|
+
# This is the polymorphic version of #set_reconnect_ivl.
|
4334
4383
|
#
|
4335
4384
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4336
4385
|
# object reference to use this method on
|
4337
|
-
# @param
|
4386
|
+
# @param reconnect_ivl [Integer, #to_int, #to_i]
|
4338
4387
|
# @return [void]
|
4339
|
-
def self.
|
4388
|
+
def self.set_reconnect_ivl(self_p, reconnect_ivl)
|
4340
4389
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4341
|
-
|
4342
|
-
result = ::CZMQ::FFI.
|
4390
|
+
reconnect_ivl = Integer(reconnect_ivl)
|
4391
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_ivl(self_p, reconnect_ivl)
|
4343
4392
|
result
|
4344
4393
|
end
|
4345
4394
|
|
4346
|
-
# Get socket option `
|
4347
|
-
# Available from libzmq
|
4395
|
+
# Get socket option `reconnect_ivl_max`.
|
4396
|
+
# Available from libzmq 2.0.0.
|
4348
4397
|
#
|
4349
4398
|
# @return [Integer]
|
4350
|
-
def
|
4399
|
+
def reconnect_ivl_max()
|
4351
4400
|
raise DestroyedError unless @ptr
|
4352
4401
|
self_p = @ptr
|
4353
|
-
result = ::CZMQ::FFI.
|
4402
|
+
result = ::CZMQ::FFI.zsock_reconnect_ivl_max(self_p)
|
4354
4403
|
result
|
4355
4404
|
end
|
4356
4405
|
|
4357
|
-
# Get socket option `
|
4358
|
-
# Available from libzmq
|
4406
|
+
# Get socket option `reconnect_ivl_max`.
|
4407
|
+
# Available from libzmq 2.0.0.
|
4359
4408
|
#
|
4360
|
-
# This is the polymorphic version of #
|
4409
|
+
# This is the polymorphic version of #reconnect_ivl_max.
|
4361
4410
|
#
|
4362
4411
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4363
4412
|
# object reference to use this method on
|
4364
4413
|
# @return [Integer]
|
4365
|
-
def self.
|
4414
|
+
def self.reconnect_ivl_max(self_p)
|
4366
4415
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4367
|
-
result = ::CZMQ::FFI.
|
4416
|
+
result = ::CZMQ::FFI.zsock_reconnect_ivl_max(self_p)
|
4368
4417
|
result
|
4369
4418
|
end
|
4370
4419
|
|
4371
|
-
# Set socket option `
|
4372
|
-
# Available from libzmq
|
4420
|
+
# Set socket option `reconnect_ivl_max`.
|
4421
|
+
# Available from libzmq 2.0.0.
|
4373
4422
|
#
|
4374
|
-
# @param
|
4423
|
+
# @param reconnect_ivl_max [Integer, #to_int, #to_i]
|
4375
4424
|
# @return [void]
|
4376
|
-
def
|
4425
|
+
def set_reconnect_ivl_max(reconnect_ivl_max)
|
4377
4426
|
raise DestroyedError unless @ptr
|
4378
4427
|
self_p = @ptr
|
4379
|
-
|
4380
|
-
result = ::CZMQ::FFI.
|
4428
|
+
reconnect_ivl_max = Integer(reconnect_ivl_max)
|
4429
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_ivl_max(self_p, reconnect_ivl_max)
|
4381
4430
|
result
|
4382
4431
|
end
|
4383
4432
|
|
4384
|
-
# Set socket option `
|
4385
|
-
# Available from libzmq
|
4433
|
+
# Set socket option `reconnect_ivl_max`.
|
4434
|
+
# Available from libzmq 2.0.0.
|
4386
4435
|
#
|
4387
|
-
# This is the polymorphic version of #
|
4436
|
+
# This is the polymorphic version of #set_reconnect_ivl_max.
|
4388
4437
|
#
|
4389
4438
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4390
4439
|
# object reference to use this method on
|
4391
|
-
# @param
|
4440
|
+
# @param reconnect_ivl_max [Integer, #to_int, #to_i]
|
4392
4441
|
# @return [void]
|
4393
|
-
def self.
|
4442
|
+
def self.set_reconnect_ivl_max(self_p, reconnect_ivl_max)
|
4394
4443
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4395
|
-
|
4396
|
-
result = ::CZMQ::FFI.
|
4444
|
+
reconnect_ivl_max = Integer(reconnect_ivl_max)
|
4445
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_ivl_max(self_p, reconnect_ivl_max)
|
4397
4446
|
result
|
4398
4447
|
end
|
4399
4448
|
|
4400
|
-
#
|
4401
|
-
# Available from libzmq
|
4449
|
+
# Get socket option `backlog`.
|
4450
|
+
# Available from libzmq 2.0.0.
|
4402
4451
|
#
|
4403
|
-
# @
|
4452
|
+
# @return [Integer]
|
4453
|
+
def backlog()
|
4454
|
+
raise DestroyedError unless @ptr
|
4455
|
+
self_p = @ptr
|
4456
|
+
result = ::CZMQ::FFI.zsock_backlog(self_p)
|
4457
|
+
result
|
4458
|
+
end
|
4459
|
+
|
4460
|
+
# Get socket option `backlog`.
|
4461
|
+
# Available from libzmq 2.0.0.
|
4462
|
+
#
|
4463
|
+
# This is the polymorphic version of #backlog.
|
4464
|
+
#
|
4465
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4466
|
+
# object reference to use this method on
|
4467
|
+
# @return [Integer]
|
4468
|
+
def self.backlog(self_p)
|
4469
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4470
|
+
result = ::CZMQ::FFI.zsock_backlog(self_p)
|
4471
|
+
result
|
4472
|
+
end
|
4473
|
+
|
4474
|
+
# Set socket option `backlog`.
|
4475
|
+
# Available from libzmq 2.0.0.
|
4476
|
+
#
|
4477
|
+
# @param backlog [Integer, #to_int, #to_i]
|
4404
4478
|
# @return [void]
|
4405
|
-
def
|
4479
|
+
def set_backlog(backlog)
|
4406
4480
|
raise DestroyedError unless @ptr
|
4407
4481
|
self_p = @ptr
|
4408
|
-
|
4409
|
-
result = ::CZMQ::FFI.
|
4482
|
+
backlog = Integer(backlog)
|
4483
|
+
result = ::CZMQ::FFI.zsock_set_backlog(self_p, backlog)
|
4410
4484
|
result
|
4411
4485
|
end
|
4412
4486
|
|
4413
|
-
# Set socket option `
|
4414
|
-
# Available from libzmq
|
4487
|
+
# Set socket option `backlog`.
|
4488
|
+
# Available from libzmq 2.0.0.
|
4415
4489
|
#
|
4416
|
-
# This is the polymorphic version of #
|
4490
|
+
# This is the polymorphic version of #set_backlog.
|
4417
4491
|
#
|
4418
4492
|
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4419
4493
|
# object reference to use this method on
|
4420
|
-
# @param
|
4494
|
+
# @param backlog [Integer, #to_int, #to_i]
|
4421
4495
|
# @return [void]
|
4422
|
-
def self.
|
4496
|
+
def self.set_backlog(self_p, backlog)
|
4423
4497
|
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4424
|
-
|
4425
|
-
result = ::CZMQ::FFI.
|
4498
|
+
backlog = Integer(backlog)
|
4499
|
+
result = ::CZMQ::FFI.zsock_set_backlog(self_p, backlog)
|
4500
|
+
result
|
4501
|
+
end
|
4502
|
+
|
4503
|
+
# Set socket option `subscribe`.
|
4504
|
+
# Available from libzmq 2.0.0.
|
4505
|
+
#
|
4506
|
+
# @param subscribe [String, #to_s, nil]
|
4507
|
+
# @return [void]
|
4508
|
+
def set_subscribe(subscribe)
|
4509
|
+
raise DestroyedError unless @ptr
|
4510
|
+
self_p = @ptr
|
4511
|
+
result = ::CZMQ::FFI.zsock_set_subscribe(self_p, subscribe)
|
4512
|
+
result
|
4513
|
+
end
|
4514
|
+
|
4515
|
+
# Set socket option `subscribe`.
|
4516
|
+
# Available from libzmq 2.0.0.
|
4517
|
+
#
|
4518
|
+
# This is the polymorphic version of #set_subscribe.
|
4519
|
+
#
|
4520
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4521
|
+
# object reference to use this method on
|
4522
|
+
# @param subscribe [String, #to_s, nil]
|
4523
|
+
# @return [void]
|
4524
|
+
def self.set_subscribe(self_p, subscribe)
|
4525
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4526
|
+
result = ::CZMQ::FFI.zsock_set_subscribe(self_p, subscribe)
|
4527
|
+
result
|
4528
|
+
end
|
4529
|
+
|
4530
|
+
# Set socket option `unsubscribe`.
|
4531
|
+
# Available from libzmq 2.0.0.
|
4532
|
+
#
|
4533
|
+
# @param unsubscribe [String, #to_s, nil]
|
4534
|
+
# @return [void]
|
4535
|
+
def set_unsubscribe(unsubscribe)
|
4536
|
+
raise DestroyedError unless @ptr
|
4537
|
+
self_p = @ptr
|
4538
|
+
result = ::CZMQ::FFI.zsock_set_unsubscribe(self_p, unsubscribe)
|
4539
|
+
result
|
4540
|
+
end
|
4541
|
+
|
4542
|
+
# Set socket option `unsubscribe`.
|
4543
|
+
# Available from libzmq 2.0.0.
|
4544
|
+
#
|
4545
|
+
# This is the polymorphic version of #set_unsubscribe.
|
4546
|
+
#
|
4547
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4548
|
+
# object reference to use this method on
|
4549
|
+
# @param unsubscribe [String, #to_s, nil]
|
4550
|
+
# @return [void]
|
4551
|
+
def self.set_unsubscribe(self_p, unsubscribe)
|
4552
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4553
|
+
result = ::CZMQ::FFI.zsock_set_unsubscribe(self_p, unsubscribe)
|
4554
|
+
result
|
4555
|
+
end
|
4556
|
+
|
4557
|
+
# Get socket option `type`.
|
4558
|
+
# Available from libzmq 2.0.0.
|
4559
|
+
#
|
4560
|
+
# @return [Integer]
|
4561
|
+
def type()
|
4562
|
+
raise DestroyedError unless @ptr
|
4563
|
+
self_p = @ptr
|
4564
|
+
result = ::CZMQ::FFI.zsock_type(self_p)
|
4565
|
+
result
|
4566
|
+
end
|
4567
|
+
|
4568
|
+
# Get socket option `type`.
|
4569
|
+
# Available from libzmq 2.0.0.
|
4570
|
+
#
|
4571
|
+
# This is the polymorphic version of #type.
|
4572
|
+
#
|
4573
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4574
|
+
# object reference to use this method on
|
4575
|
+
# @return [Integer]
|
4576
|
+
def self.type(self_p)
|
4577
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4578
|
+
result = ::CZMQ::FFI.zsock_type(self_p)
|
4579
|
+
result
|
4580
|
+
end
|
4581
|
+
|
4582
|
+
# Get socket option `rcvmore`.
|
4583
|
+
# Available from libzmq 2.0.0.
|
4584
|
+
#
|
4585
|
+
# @return [Integer]
|
4586
|
+
def rcvmore()
|
4587
|
+
raise DestroyedError unless @ptr
|
4588
|
+
self_p = @ptr
|
4589
|
+
result = ::CZMQ::FFI.zsock_rcvmore(self_p)
|
4590
|
+
result
|
4591
|
+
end
|
4592
|
+
|
4593
|
+
# Get socket option `rcvmore`.
|
4594
|
+
# Available from libzmq 2.0.0.
|
4595
|
+
#
|
4596
|
+
# This is the polymorphic version of #rcvmore.
|
4597
|
+
#
|
4598
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4599
|
+
# object reference to use this method on
|
4600
|
+
# @return [Integer]
|
4601
|
+
def self.rcvmore(self_p)
|
4602
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4603
|
+
result = ::CZMQ::FFI.zsock_rcvmore(self_p)
|
4604
|
+
result
|
4605
|
+
end
|
4606
|
+
|
4607
|
+
# Get socket option `fd`.
|
4608
|
+
# Available from libzmq 2.0.0.
|
4609
|
+
#
|
4610
|
+
# @return [Integer or FFI::Pointer]
|
4611
|
+
def fd()
|
4612
|
+
raise DestroyedError unless @ptr
|
4613
|
+
self_p = @ptr
|
4614
|
+
result = ::CZMQ::FFI.zsock_fd(self_p)
|
4615
|
+
result
|
4616
|
+
end
|
4617
|
+
|
4618
|
+
# Get socket option `fd`.
|
4619
|
+
# Available from libzmq 2.0.0.
|
4620
|
+
#
|
4621
|
+
# This is the polymorphic version of #fd.
|
4622
|
+
#
|
4623
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4624
|
+
# object reference to use this method on
|
4625
|
+
# @return [Integer or FFI::Pointer]
|
4626
|
+
def self.fd(self_p)
|
4627
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4628
|
+
result = ::CZMQ::FFI.zsock_fd(self_p)
|
4629
|
+
result
|
4630
|
+
end
|
4631
|
+
|
4632
|
+
# Get socket option `events`.
|
4633
|
+
# Available from libzmq 2.0.0.
|
4634
|
+
#
|
4635
|
+
# @return [Integer]
|
4636
|
+
def events()
|
4637
|
+
raise DestroyedError unless @ptr
|
4638
|
+
self_p = @ptr
|
4639
|
+
result = ::CZMQ::FFI.zsock_events(self_p)
|
4640
|
+
result
|
4641
|
+
end
|
4642
|
+
|
4643
|
+
# Get socket option `events`.
|
4644
|
+
# Available from libzmq 2.0.0.
|
4645
|
+
#
|
4646
|
+
# This is the polymorphic version of #events.
|
4647
|
+
#
|
4648
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
4649
|
+
# object reference to use this method on
|
4650
|
+
# @return [Integer]
|
4651
|
+
def self.events(self_p)
|
4652
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
4653
|
+
result = ::CZMQ::FFI.zsock_events(self_p)
|
4426
4654
|
result
|
4427
4655
|
end
|
4428
4656
|
|