czmq-ffi-gen 0.10.0-x86-mingw32 → 0.12.0-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +8 -0
  3. data/lib/czmq-ffi-gen/czmq/ffi.rb +345 -209
  4. data/lib/czmq-ffi-gen/czmq/ffi/version.rb +1 -1
  5. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +0 -12
  6. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +0 -12
  7. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +0 -31
  8. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +0 -44
  9. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +706 -0
  10. data/lib/czmq-ffi-gen/gem_version.rb +1 -1
  11. data/vendor/local/bin/inproc_lat.exe +0 -0
  12. data/vendor/local/bin/inproc_thr.exe +0 -0
  13. data/vendor/local/bin/libczmq.dll +0 -0
  14. data/vendor/local/bin/libzmq.dll +0 -0
  15. data/vendor/local/bin/local_lat.exe +0 -0
  16. data/vendor/local/bin/local_thr.exe +0 -0
  17. data/vendor/local/bin/remote_lat.exe +0 -0
  18. data/vendor/local/bin/remote_thr.exe +0 -0
  19. data/vendor/local/include/czmq.h +8 -0
  20. data/vendor/local/include/czmq_library.h +2 -29
  21. data/vendor/local/include/zauth.h +1 -1
  22. data/vendor/local/include/zcert.h +0 -8
  23. data/vendor/local/include/zcertstore.h +0 -8
  24. data/vendor/local/include/zhash.h +0 -13
  25. data/vendor/local/include/zhashx.h +0 -21
  26. data/vendor/local/include/zloop.h +7 -12
  27. data/vendor/local/include/zpoller.h +7 -12
  28. data/vendor/local/include/zsock.h +159 -44
  29. data/vendor/local/include/zsock_option.inc +578 -0
  30. data/vendor/local/include/zsys.h +9 -0
  31. data/vendor/local/lib/libczmq.dll.a +0 -0
  32. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  33. data/vendor/local/lib/pkgconfig/libczmq.pc +2 -1
  34. metadata +2 -11
  35. data/vendor/local/include/zauth_v2.h +0 -88
  36. data/vendor/local/include/zbeacon_v2.h +0 -75
  37. data/vendor/local/include/zctx.h +0 -107
  38. data/vendor/local/include/zmonitor_v2.h +0 -56
  39. data/vendor/local/include/zmutex.h +0 -55
  40. data/vendor/local/include/zproxy_v2.h +0 -62
  41. data/vendor/local/include/zsocket.h +0 -110
  42. data/vendor/local/include/zsockopt.h +0 -256
  43. data/vendor/local/include/zthread.h +0 -50
@@ -5,7 +5,7 @@
5
5
 
6
6
  module CZMQ
7
7
  module FFI
8
- VERSION = '3.0.3'
8
+ VERSION = '4.0.0'
9
9
  end
10
10
  end
11
11
 
@@ -276,18 +276,6 @@ module CZMQ
276
276
  result
277
277
  end
278
278
 
279
- # Print certificate contents to open stream. This method is deprecated
280
- # and you should use the print method.
281
- #
282
- # @param file [::FFI::Pointer, #to_ptr]
283
- # @return [void]
284
- def fprint(file)
285
- raise DestroyedError unless @ptr
286
- self_p = @ptr
287
- result = ::CZMQ::FFI.zcert_fprint(self_p, file)
288
- result
289
- end
290
-
291
279
  # Self test of this class
292
280
  #
293
281
  # @param verbose [Boolean]
@@ -191,18 +191,6 @@ module CZMQ
191
191
  result
192
192
  end
193
193
 
194
- # Print list of certificates in store to open stream. This method is
195
- # deprecated, and you should use the print method.
196
- #
197
- # @param file [::FFI::Pointer, #to_ptr]
198
- # @return [void]
199
- def fprint(file)
200
- raise DestroyedError unless @ptr
201
- self_p = @ptr
202
- result = ::CZMQ::FFI.zcertstore_fprint(self_p, file)
203
- result
204
- end
205
-
206
194
  # Self test of this class
207
195
  #
208
196
  # @param verbose [Boolean]
@@ -89,23 +89,6 @@ module CZMQ
89
89
  end
90
90
  end
91
91
 
92
- # Create a new callback of the following type:
93
- # Callback function for zhash_foreach method. Deprecated.
94
- # typedef int (zhash_foreach_fn) (
95
- # const char *key, void *item, void *argument);
96
- #
97
- # @note WARNING: If your Ruby code doesn't retain a reference to the
98
- # FFI::Function object after passing it to a C function call,
99
- # it may be garbage collected while C still holds the pointer,
100
- # potentially resulting in a segmentation fault.
101
- def self.foreach_fn
102
- ::FFI::Function.new :int, [:string, :pointer, :pointer], blocking: true do |key, item, argument|
103
- result = yield key, item, argument
104
- result = Integer(result)
105
- result
106
- end
107
- end
108
-
109
92
  # Create a new, empty hash container
110
93
  # @return [CZMQ::Zhash]
111
94
  def self.new()
@@ -383,20 +366,6 @@ module CZMQ
383
366
  result
384
367
  end
385
368
 
386
- # Apply function to each item in the hash table. Items are iterated in no
387
- # defined order. Stops if callback function returns non-zero and returns
388
- # final return code from callback function (zero = success). Deprecated.
389
- #
390
- # @param callback [::FFI::Pointer, #to_ptr]
391
- # @param argument [::FFI::Pointer, #to_ptr]
392
- # @return [Integer]
393
- def foreach(callback, argument)
394
- raise DestroyedError unless @ptr
395
- self_p = @ptr
396
- result = ::CZMQ::FFI.zhash_foreach(self_p, callback, argument)
397
- result
398
- end
399
-
400
369
  # Self test of this class.
401
370
  #
402
371
  # @param verbose [Boolean]
@@ -189,24 +189,6 @@ module CZMQ
189
189
  end
190
190
  end
191
191
 
192
- # Create a new callback of the following type:
193
- # Callback function for zhashx_foreach method.
194
- # This callback is deprecated and you should use zhashx_first/_next instead.
195
- # typedef int (zhashx_foreach_fn) (
196
- # const char *key, void *item, void *argument);
197
- #
198
- # @note WARNING: If your Ruby code doesn't retain a reference to the
199
- # FFI::Function object after passing it to a C function call,
200
- # it may be garbage collected while C still holds the pointer,
201
- # potentially resulting in a segmentation fault.
202
- def self.foreach_fn
203
- ::FFI::Function.new :int, [:string, :pointer, :pointer], blocking: true do |key, item, argument|
204
- result = yield key, item, argument
205
- result = Integer(result)
206
- result
207
- end
208
- end
209
-
210
192
  # Create a new, empty hash container
211
193
  # @return [CZMQ::Zhashx]
212
194
  def self.new()
@@ -614,32 +596,6 @@ module CZMQ
614
596
  result
615
597
  end
616
598
 
617
- # Set hash for automatic value destruction. This method is deprecated
618
- # and you should use set_destructor instead.
619
- #
620
- # @return [void]
621
- def autofree()
622
- raise DestroyedError unless @ptr
623
- self_p = @ptr
624
- result = ::CZMQ::FFI.zhashx_autofree(self_p)
625
- result
626
- end
627
-
628
- # Apply function to each item in the hash table. Items are iterated in no
629
- # defined order. Stops if callback function returns non-zero and returns
630
- # final return code from callback function (zero = success). This method
631
- # is deprecated and you should use zhashx_first/_next instead.
632
- #
633
- # @param callback [::FFI::Pointer, #to_ptr]
634
- # @param argument [::FFI::Pointer, #to_ptr]
635
- # @return [Integer]
636
- def foreach(callback, argument)
637
- raise DestroyedError unless @ptr
638
- self_p = @ptr
639
- result = ::CZMQ::FFI.zhashx_foreach(self_p, callback, argument)
640
- result
641
- end
642
-
643
599
  # Self test of this class.
644
600
  #
645
601
  # @param verbose [Boolean]
@@ -1102,6 +1102,535 @@ module CZMQ
1102
1102
  result
1103
1103
  end
1104
1104
 
1105
+ # Set socket option `xpub_manual`.
1106
+ #
1107
+ # @param xpub_manual [Integer, #to_int, #to_i]
1108
+ # @return [void]
1109
+ def set_xpub_manual(xpub_manual)
1110
+ raise DestroyedError unless @ptr
1111
+ self_p = @ptr
1112
+ xpub_manual = Integer(xpub_manual)
1113
+ result = ::CZMQ::FFI.zsock_set_xpub_manual(self_p, xpub_manual)
1114
+ result
1115
+ end
1116
+
1117
+ # Set socket option `xpub_manual`.
1118
+ #
1119
+ # This is the polymorphic version of #set_xpub_manual.
1120
+ #
1121
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1122
+ # object reference to use this method on
1123
+ # @param xpub_manual [Integer, #to_int, #to_i]
1124
+ # @return [void]
1125
+ def self.set_xpub_manual(self_p, xpub_manual)
1126
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1127
+ xpub_manual = Integer(xpub_manual)
1128
+ result = ::CZMQ::FFI.zsock_set_xpub_manual(self_p, xpub_manual)
1129
+ result
1130
+ end
1131
+
1132
+ # Set socket option `xpub_welcome_msg`.
1133
+ #
1134
+ # @param xpub_welcome_msg [String, #to_s, nil]
1135
+ # @return [void]
1136
+ def set_xpub_welcome_msg(xpub_welcome_msg)
1137
+ raise DestroyedError unless @ptr
1138
+ self_p = @ptr
1139
+ result = ::CZMQ::FFI.zsock_set_xpub_welcome_msg(self_p, xpub_welcome_msg)
1140
+ result
1141
+ end
1142
+
1143
+ # Set socket option `xpub_welcome_msg`.
1144
+ #
1145
+ # This is the polymorphic version of #set_xpub_welcome_msg.
1146
+ #
1147
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1148
+ # object reference to use this method on
1149
+ # @param xpub_welcome_msg [String, #to_s, nil]
1150
+ # @return [void]
1151
+ def self.set_xpub_welcome_msg(self_p, xpub_welcome_msg)
1152
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1153
+ result = ::CZMQ::FFI.zsock_set_xpub_welcome_msg(self_p, xpub_welcome_msg)
1154
+ result
1155
+ end
1156
+
1157
+ # Set socket option `stream_notify`.
1158
+ #
1159
+ # @param stream_notify [Integer, #to_int, #to_i]
1160
+ # @return [void]
1161
+ def set_stream_notify(stream_notify)
1162
+ raise DestroyedError unless @ptr
1163
+ self_p = @ptr
1164
+ stream_notify = Integer(stream_notify)
1165
+ result = ::CZMQ::FFI.zsock_set_stream_notify(self_p, stream_notify)
1166
+ result
1167
+ end
1168
+
1169
+ # Set socket option `stream_notify`.
1170
+ #
1171
+ # This is the polymorphic version of #set_stream_notify.
1172
+ #
1173
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1174
+ # object reference to use this method on
1175
+ # @param stream_notify [Integer, #to_int, #to_i]
1176
+ # @return [void]
1177
+ def self.set_stream_notify(self_p, stream_notify)
1178
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1179
+ stream_notify = Integer(stream_notify)
1180
+ result = ::CZMQ::FFI.zsock_set_stream_notify(self_p, stream_notify)
1181
+ result
1182
+ end
1183
+
1184
+ # Get socket option `invert_matching`.
1185
+ #
1186
+ # @return [Integer]
1187
+ def invert_matching()
1188
+ raise DestroyedError unless @ptr
1189
+ self_p = @ptr
1190
+ result = ::CZMQ::FFI.zsock_invert_matching(self_p)
1191
+ result
1192
+ end
1193
+
1194
+ # Get socket option `invert_matching`.
1195
+ #
1196
+ # This is the polymorphic version of #invert_matching.
1197
+ #
1198
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1199
+ # object reference to use this method on
1200
+ # @return [Integer]
1201
+ def self.invert_matching(self_p)
1202
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1203
+ result = ::CZMQ::FFI.zsock_invert_matching(self_p)
1204
+ result
1205
+ end
1206
+
1207
+ # Set socket option `invert_matching`.
1208
+ #
1209
+ # @param invert_matching [Integer, #to_int, #to_i]
1210
+ # @return [void]
1211
+ def set_invert_matching(invert_matching)
1212
+ raise DestroyedError unless @ptr
1213
+ self_p = @ptr
1214
+ invert_matching = Integer(invert_matching)
1215
+ result = ::CZMQ::FFI.zsock_set_invert_matching(self_p, invert_matching)
1216
+ result
1217
+ end
1218
+
1219
+ # Set socket option `invert_matching`.
1220
+ #
1221
+ # This is the polymorphic version of #set_invert_matching.
1222
+ #
1223
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1224
+ # object reference to use this method on
1225
+ # @param invert_matching [Integer, #to_int, #to_i]
1226
+ # @return [void]
1227
+ def self.set_invert_matching(self_p, invert_matching)
1228
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1229
+ invert_matching = Integer(invert_matching)
1230
+ result = ::CZMQ::FFI.zsock_set_invert_matching(self_p, invert_matching)
1231
+ result
1232
+ end
1233
+
1234
+ # Set socket option `xpub_verboser`.
1235
+ #
1236
+ # @param xpub_verboser [Integer, #to_int, #to_i]
1237
+ # @return [void]
1238
+ def set_xpub_verboser(xpub_verboser)
1239
+ raise DestroyedError unless @ptr
1240
+ self_p = @ptr
1241
+ xpub_verboser = Integer(xpub_verboser)
1242
+ result = ::CZMQ::FFI.zsock_set_xpub_verboser(self_p, xpub_verboser)
1243
+ result
1244
+ end
1245
+
1246
+ # Set socket option `xpub_verboser`.
1247
+ #
1248
+ # This is the polymorphic version of #set_xpub_verboser.
1249
+ #
1250
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1251
+ # object reference to use this method on
1252
+ # @param xpub_verboser [Integer, #to_int, #to_i]
1253
+ # @return [void]
1254
+ def self.set_xpub_verboser(self_p, xpub_verboser)
1255
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1256
+ xpub_verboser = Integer(xpub_verboser)
1257
+ result = ::CZMQ::FFI.zsock_set_xpub_verboser(self_p, xpub_verboser)
1258
+ result
1259
+ end
1260
+
1261
+ # Get socket option `connect_timeout`.
1262
+ #
1263
+ # @return [Integer]
1264
+ def connect_timeout()
1265
+ raise DestroyedError unless @ptr
1266
+ self_p = @ptr
1267
+ result = ::CZMQ::FFI.zsock_connect_timeout(self_p)
1268
+ result
1269
+ end
1270
+
1271
+ # Get socket option `connect_timeout`.
1272
+ #
1273
+ # This is the polymorphic version of #connect_timeout.
1274
+ #
1275
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1276
+ # object reference to use this method on
1277
+ # @return [Integer]
1278
+ def self.connect_timeout(self_p)
1279
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1280
+ result = ::CZMQ::FFI.zsock_connect_timeout(self_p)
1281
+ result
1282
+ end
1283
+
1284
+ # Set socket option `connect_timeout`.
1285
+ #
1286
+ # @param connect_timeout [Integer, #to_int, #to_i]
1287
+ # @return [void]
1288
+ def set_connect_timeout(connect_timeout)
1289
+ raise DestroyedError unless @ptr
1290
+ self_p = @ptr
1291
+ connect_timeout = Integer(connect_timeout)
1292
+ result = ::CZMQ::FFI.zsock_set_connect_timeout(self_p, connect_timeout)
1293
+ result
1294
+ end
1295
+
1296
+ # Set socket option `connect_timeout`.
1297
+ #
1298
+ # This is the polymorphic version of #set_connect_timeout.
1299
+ #
1300
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1301
+ # object reference to use this method on
1302
+ # @param connect_timeout [Integer, #to_int, #to_i]
1303
+ # @return [void]
1304
+ def self.set_connect_timeout(self_p, connect_timeout)
1305
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1306
+ connect_timeout = Integer(connect_timeout)
1307
+ result = ::CZMQ::FFI.zsock_set_connect_timeout(self_p, connect_timeout)
1308
+ result
1309
+ end
1310
+
1311
+ # Get socket option `tcp_maxrt`.
1312
+ #
1313
+ # @return [Integer]
1314
+ def tcp_maxrt()
1315
+ raise DestroyedError unless @ptr
1316
+ self_p = @ptr
1317
+ result = ::CZMQ::FFI.zsock_tcp_maxrt(self_p)
1318
+ result
1319
+ end
1320
+
1321
+ # Get socket option `tcp_maxrt`.
1322
+ #
1323
+ # This is the polymorphic version of #tcp_maxrt.
1324
+ #
1325
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1326
+ # object reference to use this method on
1327
+ # @return [Integer]
1328
+ def self.tcp_maxrt(self_p)
1329
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1330
+ result = ::CZMQ::FFI.zsock_tcp_maxrt(self_p)
1331
+ result
1332
+ end
1333
+
1334
+ # Set socket option `tcp_maxrt`.
1335
+ #
1336
+ # @param tcp_maxrt [Integer, #to_int, #to_i]
1337
+ # @return [void]
1338
+ def set_tcp_maxrt(tcp_maxrt)
1339
+ raise DestroyedError unless @ptr
1340
+ self_p = @ptr
1341
+ tcp_maxrt = Integer(tcp_maxrt)
1342
+ result = ::CZMQ::FFI.zsock_set_tcp_maxrt(self_p, tcp_maxrt)
1343
+ result
1344
+ end
1345
+
1346
+ # Set socket option `tcp_maxrt`.
1347
+ #
1348
+ # This is the polymorphic version of #set_tcp_maxrt.
1349
+ #
1350
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1351
+ # object reference to use this method on
1352
+ # @param tcp_maxrt [Integer, #to_int, #to_i]
1353
+ # @return [void]
1354
+ def self.set_tcp_maxrt(self_p, tcp_maxrt)
1355
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1356
+ tcp_maxrt = Integer(tcp_maxrt)
1357
+ result = ::CZMQ::FFI.zsock_set_tcp_maxrt(self_p, tcp_maxrt)
1358
+ result
1359
+ end
1360
+
1361
+ # Get socket option `thread_safe`.
1362
+ #
1363
+ # @return [Integer]
1364
+ def thread_safe()
1365
+ raise DestroyedError unless @ptr
1366
+ self_p = @ptr
1367
+ result = ::CZMQ::FFI.zsock_thread_safe(self_p)
1368
+ result
1369
+ end
1370
+
1371
+ # Get socket option `thread_safe`.
1372
+ #
1373
+ # This is the polymorphic version of #thread_safe.
1374
+ #
1375
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1376
+ # object reference to use this method on
1377
+ # @return [Integer]
1378
+ def self.thread_safe(self_p)
1379
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1380
+ result = ::CZMQ::FFI.zsock_thread_safe(self_p)
1381
+ result
1382
+ end
1383
+
1384
+ # Get socket option `multicast_maxtpdu`.
1385
+ #
1386
+ # @return [Integer]
1387
+ def multicast_maxtpdu()
1388
+ raise DestroyedError unless @ptr
1389
+ self_p = @ptr
1390
+ result = ::CZMQ::FFI.zsock_multicast_maxtpdu(self_p)
1391
+ result
1392
+ end
1393
+
1394
+ # Get socket option `multicast_maxtpdu`.
1395
+ #
1396
+ # This is the polymorphic version of #multicast_maxtpdu.
1397
+ #
1398
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1399
+ # object reference to use this method on
1400
+ # @return [Integer]
1401
+ def self.multicast_maxtpdu(self_p)
1402
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1403
+ result = ::CZMQ::FFI.zsock_multicast_maxtpdu(self_p)
1404
+ result
1405
+ end
1406
+
1407
+ # Set socket option `multicast_maxtpdu`.
1408
+ #
1409
+ # @param multicast_maxtpdu [Integer, #to_int, #to_i]
1410
+ # @return [void]
1411
+ def set_multicast_maxtpdu(multicast_maxtpdu)
1412
+ raise DestroyedError unless @ptr
1413
+ self_p = @ptr
1414
+ multicast_maxtpdu = Integer(multicast_maxtpdu)
1415
+ result = ::CZMQ::FFI.zsock_set_multicast_maxtpdu(self_p, multicast_maxtpdu)
1416
+ result
1417
+ end
1418
+
1419
+ # Set socket option `multicast_maxtpdu`.
1420
+ #
1421
+ # This is the polymorphic version of #set_multicast_maxtpdu.
1422
+ #
1423
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1424
+ # object reference to use this method on
1425
+ # @param multicast_maxtpdu [Integer, #to_int, #to_i]
1426
+ # @return [void]
1427
+ def self.set_multicast_maxtpdu(self_p, multicast_maxtpdu)
1428
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1429
+ multicast_maxtpdu = Integer(multicast_maxtpdu)
1430
+ result = ::CZMQ::FFI.zsock_set_multicast_maxtpdu(self_p, multicast_maxtpdu)
1431
+ result
1432
+ end
1433
+
1434
+ # Get socket option `vmci_buffer_size`.
1435
+ #
1436
+ # @return [Integer]
1437
+ def vmci_buffer_size()
1438
+ raise DestroyedError unless @ptr
1439
+ self_p = @ptr
1440
+ result = ::CZMQ::FFI.zsock_vmci_buffer_size(self_p)
1441
+ result
1442
+ end
1443
+
1444
+ # Get socket option `vmci_buffer_size`.
1445
+ #
1446
+ # This is the polymorphic version of #vmci_buffer_size.
1447
+ #
1448
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1449
+ # object reference to use this method on
1450
+ # @return [Integer]
1451
+ def self.vmci_buffer_size(self_p)
1452
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1453
+ result = ::CZMQ::FFI.zsock_vmci_buffer_size(self_p)
1454
+ result
1455
+ end
1456
+
1457
+ # Set socket option `vmci_buffer_size`.
1458
+ #
1459
+ # @param vmci_buffer_size [Integer, #to_int, #to_i]
1460
+ # @return [void]
1461
+ def set_vmci_buffer_size(vmci_buffer_size)
1462
+ raise DestroyedError unless @ptr
1463
+ self_p = @ptr
1464
+ vmci_buffer_size = Integer(vmci_buffer_size)
1465
+ result = ::CZMQ::FFI.zsock_set_vmci_buffer_size(self_p, vmci_buffer_size)
1466
+ result
1467
+ end
1468
+
1469
+ # Set socket option `vmci_buffer_size`.
1470
+ #
1471
+ # This is the polymorphic version of #set_vmci_buffer_size.
1472
+ #
1473
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1474
+ # object reference to use this method on
1475
+ # @param vmci_buffer_size [Integer, #to_int, #to_i]
1476
+ # @return [void]
1477
+ def self.set_vmci_buffer_size(self_p, vmci_buffer_size)
1478
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1479
+ vmci_buffer_size = Integer(vmci_buffer_size)
1480
+ result = ::CZMQ::FFI.zsock_set_vmci_buffer_size(self_p, vmci_buffer_size)
1481
+ result
1482
+ end
1483
+
1484
+ # Get socket option `vmci_buffer_min_size`.
1485
+ #
1486
+ # @return [Integer]
1487
+ def vmci_buffer_min_size()
1488
+ raise DestroyedError unless @ptr
1489
+ self_p = @ptr
1490
+ result = ::CZMQ::FFI.zsock_vmci_buffer_min_size(self_p)
1491
+ result
1492
+ end
1493
+
1494
+ # Get socket option `vmci_buffer_min_size`.
1495
+ #
1496
+ # This is the polymorphic version of #vmci_buffer_min_size.
1497
+ #
1498
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1499
+ # object reference to use this method on
1500
+ # @return [Integer]
1501
+ def self.vmci_buffer_min_size(self_p)
1502
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1503
+ result = ::CZMQ::FFI.zsock_vmci_buffer_min_size(self_p)
1504
+ result
1505
+ end
1506
+
1507
+ # Set socket option `vmci_buffer_min_size`.
1508
+ #
1509
+ # @param vmci_buffer_min_size [Integer, #to_int, #to_i]
1510
+ # @return [void]
1511
+ def set_vmci_buffer_min_size(vmci_buffer_min_size)
1512
+ raise DestroyedError unless @ptr
1513
+ self_p = @ptr
1514
+ vmci_buffer_min_size = Integer(vmci_buffer_min_size)
1515
+ result = ::CZMQ::FFI.zsock_set_vmci_buffer_min_size(self_p, vmci_buffer_min_size)
1516
+ result
1517
+ end
1518
+
1519
+ # Set socket option `vmci_buffer_min_size`.
1520
+ #
1521
+ # This is the polymorphic version of #set_vmci_buffer_min_size.
1522
+ #
1523
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1524
+ # object reference to use this method on
1525
+ # @param vmci_buffer_min_size [Integer, #to_int, #to_i]
1526
+ # @return [void]
1527
+ def self.set_vmci_buffer_min_size(self_p, vmci_buffer_min_size)
1528
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1529
+ vmci_buffer_min_size = Integer(vmci_buffer_min_size)
1530
+ result = ::CZMQ::FFI.zsock_set_vmci_buffer_min_size(self_p, vmci_buffer_min_size)
1531
+ result
1532
+ end
1533
+
1534
+ # Get socket option `vmci_buffer_max_size`.
1535
+ #
1536
+ # @return [Integer]
1537
+ def vmci_buffer_max_size()
1538
+ raise DestroyedError unless @ptr
1539
+ self_p = @ptr
1540
+ result = ::CZMQ::FFI.zsock_vmci_buffer_max_size(self_p)
1541
+ result
1542
+ end
1543
+
1544
+ # Get socket option `vmci_buffer_max_size`.
1545
+ #
1546
+ # This is the polymorphic version of #vmci_buffer_max_size.
1547
+ #
1548
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1549
+ # object reference to use this method on
1550
+ # @return [Integer]
1551
+ def self.vmci_buffer_max_size(self_p)
1552
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1553
+ result = ::CZMQ::FFI.zsock_vmci_buffer_max_size(self_p)
1554
+ result
1555
+ end
1556
+
1557
+ # Set socket option `vmci_buffer_max_size`.
1558
+ #
1559
+ # @param vmci_buffer_max_size [Integer, #to_int, #to_i]
1560
+ # @return [void]
1561
+ def set_vmci_buffer_max_size(vmci_buffer_max_size)
1562
+ raise DestroyedError unless @ptr
1563
+ self_p = @ptr
1564
+ vmci_buffer_max_size = Integer(vmci_buffer_max_size)
1565
+ result = ::CZMQ::FFI.zsock_set_vmci_buffer_max_size(self_p, vmci_buffer_max_size)
1566
+ result
1567
+ end
1568
+
1569
+ # Set socket option `vmci_buffer_max_size`.
1570
+ #
1571
+ # This is the polymorphic version of #set_vmci_buffer_max_size.
1572
+ #
1573
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1574
+ # object reference to use this method on
1575
+ # @param vmci_buffer_max_size [Integer, #to_int, #to_i]
1576
+ # @return [void]
1577
+ def self.set_vmci_buffer_max_size(self_p, vmci_buffer_max_size)
1578
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1579
+ vmci_buffer_max_size = Integer(vmci_buffer_max_size)
1580
+ result = ::CZMQ::FFI.zsock_set_vmci_buffer_max_size(self_p, vmci_buffer_max_size)
1581
+ result
1582
+ end
1583
+
1584
+ # Get socket option `vmci_connect_timeout`.
1585
+ #
1586
+ # @return [Integer]
1587
+ def vmci_connect_timeout()
1588
+ raise DestroyedError unless @ptr
1589
+ self_p = @ptr
1590
+ result = ::CZMQ::FFI.zsock_vmci_connect_timeout(self_p)
1591
+ result
1592
+ end
1593
+
1594
+ # Get socket option `vmci_connect_timeout`.
1595
+ #
1596
+ # This is the polymorphic version of #vmci_connect_timeout.
1597
+ #
1598
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1599
+ # object reference to use this method on
1600
+ # @return [Integer]
1601
+ def self.vmci_connect_timeout(self_p)
1602
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1603
+ result = ::CZMQ::FFI.zsock_vmci_connect_timeout(self_p)
1604
+ result
1605
+ end
1606
+
1607
+ # Set socket option `vmci_connect_timeout`.
1608
+ #
1609
+ # @param vmci_connect_timeout [Integer, #to_int, #to_i]
1610
+ # @return [void]
1611
+ def set_vmci_connect_timeout(vmci_connect_timeout)
1612
+ raise DestroyedError unless @ptr
1613
+ self_p = @ptr
1614
+ vmci_connect_timeout = Integer(vmci_connect_timeout)
1615
+ result = ::CZMQ::FFI.zsock_set_vmci_connect_timeout(self_p, vmci_connect_timeout)
1616
+ result
1617
+ end
1618
+
1619
+ # Set socket option `vmci_connect_timeout`.
1620
+ #
1621
+ # This is the polymorphic version of #set_vmci_connect_timeout.
1622
+ #
1623
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1624
+ # object reference to use this method on
1625
+ # @param vmci_connect_timeout [Integer, #to_int, #to_i]
1626
+ # @return [void]
1627
+ def self.set_vmci_connect_timeout(self_p, vmci_connect_timeout)
1628
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1629
+ vmci_connect_timeout = Integer(vmci_connect_timeout)
1630
+ result = ::CZMQ::FFI.zsock_set_vmci_connect_timeout(self_p, vmci_connect_timeout)
1631
+ result
1632
+ end
1633
+
1105
1634
  # Get socket option `tos`.
1106
1635
  #
1107
1636
  # @return [Integer]
@@ -1179,6 +1708,183 @@ module CZMQ
1179
1708
  result
1180
1709
  end
1181
1710
 
1711
+ # Set socket option `connect_rid`.
1712
+ #
1713
+ # @param connect_rid [String, #to_s, nil]
1714
+ # @return [void]
1715
+ def set_connect_rid(connect_rid)
1716
+ raise DestroyedError unless @ptr
1717
+ self_p = @ptr
1718
+ result = ::CZMQ::FFI.zsock_set_connect_rid(self_p, connect_rid)
1719
+ result
1720
+ end
1721
+
1722
+ # Set socket option `connect_rid`.
1723
+ #
1724
+ # This is the polymorphic version of #set_connect_rid.
1725
+ #
1726
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1727
+ # object reference to use this method on
1728
+ # @param connect_rid [String, #to_s, nil]
1729
+ # @return [void]
1730
+ def self.set_connect_rid(self_p, connect_rid)
1731
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1732
+ result = ::CZMQ::FFI.zsock_set_connect_rid(self_p, connect_rid)
1733
+ result
1734
+ end
1735
+
1736
+ # Set socket option `connect_rid` from 32-octet binary
1737
+ #
1738
+ # @param connect_rid [::FFI::Pointer, #to_ptr]
1739
+ # @return [void]
1740
+ def set_connect_rid_bin(connect_rid)
1741
+ raise DestroyedError unless @ptr
1742
+ self_p = @ptr
1743
+ result = ::CZMQ::FFI.zsock_set_connect_rid_bin(self_p, connect_rid)
1744
+ result
1745
+ end
1746
+
1747
+ # Set socket option `connect_rid` from 32-octet binary
1748
+ #
1749
+ # This is the polymorphic version of #set_connect_rid_bin.
1750
+ #
1751
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1752
+ # object reference to use this method on
1753
+ # @param connect_rid [::FFI::Pointer, #to_ptr]
1754
+ # @return [void]
1755
+ def self.set_connect_rid_bin(self_p, connect_rid)
1756
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1757
+ result = ::CZMQ::FFI.zsock_set_connect_rid_bin(self_p, connect_rid)
1758
+ result
1759
+ end
1760
+
1761
+ # Get socket option `handshake_ivl`.
1762
+ #
1763
+ # @return [Integer]
1764
+ def handshake_ivl()
1765
+ raise DestroyedError unless @ptr
1766
+ self_p = @ptr
1767
+ result = ::CZMQ::FFI.zsock_handshake_ivl(self_p)
1768
+ result
1769
+ end
1770
+
1771
+ # Get socket option `handshake_ivl`.
1772
+ #
1773
+ # This is the polymorphic version of #handshake_ivl.
1774
+ #
1775
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1776
+ # object reference to use this method on
1777
+ # @return [Integer]
1778
+ def self.handshake_ivl(self_p)
1779
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1780
+ result = ::CZMQ::FFI.zsock_handshake_ivl(self_p)
1781
+ result
1782
+ end
1783
+
1784
+ # Set socket option `handshake_ivl`.
1785
+ #
1786
+ # @param handshake_ivl [Integer, #to_int, #to_i]
1787
+ # @return [void]
1788
+ def set_handshake_ivl(handshake_ivl)
1789
+ raise DestroyedError unless @ptr
1790
+ self_p = @ptr
1791
+ handshake_ivl = Integer(handshake_ivl)
1792
+ result = ::CZMQ::FFI.zsock_set_handshake_ivl(self_p, handshake_ivl)
1793
+ result
1794
+ end
1795
+
1796
+ # Set socket option `handshake_ivl`.
1797
+ #
1798
+ # This is the polymorphic version of #set_handshake_ivl.
1799
+ #
1800
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1801
+ # object reference to use this method on
1802
+ # @param handshake_ivl [Integer, #to_int, #to_i]
1803
+ # @return [void]
1804
+ def self.set_handshake_ivl(self_p, handshake_ivl)
1805
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1806
+ handshake_ivl = Integer(handshake_ivl)
1807
+ result = ::CZMQ::FFI.zsock_set_handshake_ivl(self_p, handshake_ivl)
1808
+ result
1809
+ end
1810
+
1811
+ # Get socket option `socks_proxy`.
1812
+ #
1813
+ # @return [::FFI::AutoPointer]
1814
+ def socks_proxy()
1815
+ raise DestroyedError unless @ptr
1816
+ self_p = @ptr
1817
+ result = ::CZMQ::FFI.zsock_socks_proxy(self_p)
1818
+ result = ::FFI::AutoPointer.new(result, LibC.method(:free))
1819
+ result
1820
+ end
1821
+
1822
+ # Get socket option `socks_proxy`.
1823
+ #
1824
+ # This is the polymorphic version of #socks_proxy.
1825
+ #
1826
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1827
+ # object reference to use this method on
1828
+ # @return [::FFI::AutoPointer]
1829
+ def self.socks_proxy(self_p)
1830
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1831
+ result = ::CZMQ::FFI.zsock_socks_proxy(self_p)
1832
+ result = ::FFI::AutoPointer.new(result, LibC.method(:free))
1833
+ result
1834
+ end
1835
+
1836
+ # Set socket option `socks_proxy`.
1837
+ #
1838
+ # @param socks_proxy [String, #to_s, nil]
1839
+ # @return [void]
1840
+ def set_socks_proxy(socks_proxy)
1841
+ raise DestroyedError unless @ptr
1842
+ self_p = @ptr
1843
+ result = ::CZMQ::FFI.zsock_set_socks_proxy(self_p, socks_proxy)
1844
+ result
1845
+ end
1846
+
1847
+ # Set socket option `socks_proxy`.
1848
+ #
1849
+ # This is the polymorphic version of #set_socks_proxy.
1850
+ #
1851
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1852
+ # object reference to use this method on
1853
+ # @param socks_proxy [String, #to_s, nil]
1854
+ # @return [void]
1855
+ def self.set_socks_proxy(self_p, socks_proxy)
1856
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1857
+ result = ::CZMQ::FFI.zsock_set_socks_proxy(self_p, socks_proxy)
1858
+ result
1859
+ end
1860
+
1861
+ # Set socket option `xpub_nodrop`.
1862
+ #
1863
+ # @param xpub_nodrop [Integer, #to_int, #to_i]
1864
+ # @return [void]
1865
+ def set_xpub_nodrop(xpub_nodrop)
1866
+ raise DestroyedError unless @ptr
1867
+ self_p = @ptr
1868
+ xpub_nodrop = Integer(xpub_nodrop)
1869
+ result = ::CZMQ::FFI.zsock_set_xpub_nodrop(self_p, xpub_nodrop)
1870
+ result
1871
+ end
1872
+
1873
+ # Set socket option `xpub_nodrop`.
1874
+ #
1875
+ # This is the polymorphic version of #set_xpub_nodrop.
1876
+ #
1877
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
1878
+ # object reference to use this method on
1879
+ # @param xpub_nodrop [Integer, #to_int, #to_i]
1880
+ # @return [void]
1881
+ def self.set_xpub_nodrop(self_p, xpub_nodrop)
1882
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
1883
+ xpub_nodrop = Integer(xpub_nodrop)
1884
+ result = ::CZMQ::FFI.zsock_set_xpub_nodrop(self_p, xpub_nodrop)
1885
+ result
1886
+ end
1887
+
1182
1888
  # Set socket option `router_mandatory`.
1183
1889
  #
1184
1890
  # @param router_mandatory [Integer, #to_int, #to_i]