czmq-ffi-gen 1.0.0 → 1.1.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/lib/czmq-ffi-gen/czmq/ffi/version.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +108 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +22 -1
- data/lib/czmq-ffi-gen/czmq/ffi.rb +6 -0
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d586c486f6018121763eea8ec60f1a84f1f14bf9d522a85ed2c2d7690b6ca7e
|
4
|
+
data.tar.gz: 8d02bb2a412f6028a8f86966ef78567d547d7af8e636d64faf197464b0e95247
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee9d8d1389761ad64d8265873265df6610f0e32e543ac0db4b14e40ef4203e655ea3bbef0590eb2aba174a896f1168153b8cf088742896defecf8bf8ce8d1049
|
7
|
+
data.tar.gz: 3501a58bf930e87b082ac62a15a934e1950520340ac53363f1f2f524d4d3a0fce0e4369bf2cabbcac3af3fdcd1952b4a3f1651f77a1c08ae0412c0150a7f0f32
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
1.1.0.pre1 (10/17/2022)
|
2
|
+
-----
|
3
|
+
* updated CZMQ low-level binding
|
4
|
+
|
5
|
+
1.0.0 (01/08/2021)
|
6
|
+
-----
|
7
|
+
* modernized project
|
8
|
+
* updated CZMQ low-level binding
|
9
|
+
* removed CZMQ::FFI::LIBRARY_VERSION
|
10
|
+
|
1
11
|
0.16.1 (11/20/2019)
|
2
12
|
-----
|
3
13
|
* relax gem dependencies
|
@@ -957,6 +957,114 @@ module CZMQ
|
|
957
957
|
result
|
958
958
|
end
|
959
959
|
|
960
|
+
# Get socket option `priority`.
|
961
|
+
# Available from libzmq 4.3.0.
|
962
|
+
#
|
963
|
+
# @return [Integer]
|
964
|
+
def priority()
|
965
|
+
raise DestroyedError unless @ptr
|
966
|
+
self_p = @ptr
|
967
|
+
result = ::CZMQ::FFI.zsock_priority(self_p)
|
968
|
+
result
|
969
|
+
end
|
970
|
+
|
971
|
+
# Get socket option `priority`.
|
972
|
+
# Available from libzmq 4.3.0.
|
973
|
+
#
|
974
|
+
# This is the polymorphic version of #priority.
|
975
|
+
#
|
976
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
977
|
+
# object reference to use this method on
|
978
|
+
# @return [Integer]
|
979
|
+
def self.priority(self_p)
|
980
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
981
|
+
result = ::CZMQ::FFI.zsock_priority(self_p)
|
982
|
+
result
|
983
|
+
end
|
984
|
+
|
985
|
+
# Set socket option `priority`.
|
986
|
+
# Available from libzmq 4.3.0.
|
987
|
+
#
|
988
|
+
# @param priority [Integer, #to_int, #to_i]
|
989
|
+
# @return [void]
|
990
|
+
def set_priority(priority)
|
991
|
+
raise DestroyedError unless @ptr
|
992
|
+
self_p = @ptr
|
993
|
+
priority = Integer(priority)
|
994
|
+
result = ::CZMQ::FFI.zsock_set_priority(self_p, priority)
|
995
|
+
result
|
996
|
+
end
|
997
|
+
|
998
|
+
# Set socket option `priority`.
|
999
|
+
# Available from libzmq 4.3.0.
|
1000
|
+
#
|
1001
|
+
# This is the polymorphic version of #set_priority.
|
1002
|
+
#
|
1003
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1004
|
+
# object reference to use this method on
|
1005
|
+
# @param priority [Integer, #to_int, #to_i]
|
1006
|
+
# @return [void]
|
1007
|
+
def self.set_priority(self_p, priority)
|
1008
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1009
|
+
priority = Integer(priority)
|
1010
|
+
result = ::CZMQ::FFI.zsock_set_priority(self_p, priority)
|
1011
|
+
result
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# Get socket option `reconnect_stop`.
|
1015
|
+
# Available from libzmq 4.3.0.
|
1016
|
+
#
|
1017
|
+
# @return [Integer]
|
1018
|
+
def reconnect_stop()
|
1019
|
+
raise DestroyedError unless @ptr
|
1020
|
+
self_p = @ptr
|
1021
|
+
result = ::CZMQ::FFI.zsock_reconnect_stop(self_p)
|
1022
|
+
result
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
# Get socket option `reconnect_stop`.
|
1026
|
+
# Available from libzmq 4.3.0.
|
1027
|
+
#
|
1028
|
+
# This is the polymorphic version of #reconnect_stop.
|
1029
|
+
#
|
1030
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1031
|
+
# object reference to use this method on
|
1032
|
+
# @return [Integer]
|
1033
|
+
def self.reconnect_stop(self_p)
|
1034
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1035
|
+
result = ::CZMQ::FFI.zsock_reconnect_stop(self_p)
|
1036
|
+
result
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# Set socket option `reconnect_stop`.
|
1040
|
+
# Available from libzmq 4.3.0.
|
1041
|
+
#
|
1042
|
+
# @param reconnect_stop [Integer, #to_int, #to_i]
|
1043
|
+
# @return [void]
|
1044
|
+
def set_reconnect_stop(reconnect_stop)
|
1045
|
+
raise DestroyedError unless @ptr
|
1046
|
+
self_p = @ptr
|
1047
|
+
reconnect_stop = Integer(reconnect_stop)
|
1048
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_stop(self_p, reconnect_stop)
|
1049
|
+
result
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# Set socket option `reconnect_stop`.
|
1053
|
+
# Available from libzmq 4.3.0.
|
1054
|
+
#
|
1055
|
+
# This is the polymorphic version of #set_reconnect_stop.
|
1056
|
+
#
|
1057
|
+
# @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
|
1058
|
+
# object reference to use this method on
|
1059
|
+
# @param reconnect_stop [Integer, #to_int, #to_i]
|
1060
|
+
# @return [void]
|
1061
|
+
def self.set_reconnect_stop(self_p, reconnect_stop)
|
1062
|
+
self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
|
1063
|
+
reconnect_stop = Integer(reconnect_stop)
|
1064
|
+
result = ::CZMQ::FFI.zsock_set_reconnect_stop(self_p, reconnect_stop)
|
1065
|
+
result
|
1066
|
+
end
|
1067
|
+
|
960
1068
|
# Set socket option `only_first_subscribe`.
|
961
1069
|
# Available from libzmq 4.3.0.
|
962
1070
|
#
|
@@ -326,7 +326,7 @@ module CZMQ
|
|
326
326
|
|
327
327
|
# Format a string using printf formatting, returning a freshly allocated
|
328
328
|
# buffer. If there was insufficient memory, returns NULL. Free the returned
|
329
|
-
# string using zstr_free(). The hinted version allows to optimize by using
|
329
|
+
# string using zstr_free(). The hinted version allows one to optimize by using
|
330
330
|
# a larger starting buffer size (known to/assumed by the developer) and so
|
331
331
|
# avoid reallocations.
|
332
332
|
#
|
@@ -541,6 +541,27 @@ module CZMQ
|
|
541
541
|
result
|
542
542
|
end
|
543
543
|
|
544
|
+
# Configure the numeric prefix to each thread created for the internal
|
545
|
+
# context's thread pool. This option is only supported on Linux.
|
546
|
+
# If the environment variable ZSYS_THREAD_NAME_PREFIX_STR is defined, that
|
547
|
+
# provides the default.
|
548
|
+
# Note that this method is valid only before any socket is created.
|
549
|
+
#
|
550
|
+
# @param prefix [String, #to_s, nil]
|
551
|
+
# @return [void]
|
552
|
+
def self.set_thread_name_prefix_str(prefix)
|
553
|
+
result = ::CZMQ::FFI.zsys_set_thread_name_prefix_str(prefix)
|
554
|
+
result
|
555
|
+
end
|
556
|
+
|
557
|
+
# Return thread name prefix.
|
558
|
+
#
|
559
|
+
# @return [String]
|
560
|
+
def self.thread_name_prefix_str()
|
561
|
+
result = ::CZMQ::FFI.zsys_thread_name_prefix_str()
|
562
|
+
result
|
563
|
+
end
|
564
|
+
|
544
565
|
# Adds a specific CPU to the affinity list of the ZMQ context thread pool.
|
545
566
|
# This option is only supported on Linux.
|
546
567
|
# Note that this method is valid only before any socket is created.
|
@@ -593,6 +593,10 @@ module CZMQ
|
|
593
593
|
attach_function :zsock_is, [:pointer], :bool, **opts
|
594
594
|
attach_function :zsock_resolve, [:pointer], :pointer, **opts
|
595
595
|
attach_function :zsock_has_in, [:pointer], :bool, **opts
|
596
|
+
attach_function :zsock_priority, [:pointer], :int, **opts
|
597
|
+
attach_function :zsock_set_priority, [:pointer, :int], :void, **opts
|
598
|
+
attach_function :zsock_reconnect_stop, [:pointer], :int, **opts
|
599
|
+
attach_function :zsock_set_reconnect_stop, [:pointer, :int], :void, **opts
|
596
600
|
attach_function :zsock_set_only_first_subscribe, [:pointer, :int], :void, **opts
|
597
601
|
attach_function :zsock_set_hello_msg, [:pointer, :pointer], :void, **opts
|
598
602
|
attach_function :zsock_set_disconnect_msg, [:pointer, :pointer], :void, **opts
|
@@ -823,6 +827,8 @@ module CZMQ
|
|
823
827
|
attach_function :zsys_set_thread_priority, [:int], :void, **opts
|
824
828
|
attach_function :zsys_set_thread_name_prefix, [:int], :void, **opts
|
825
829
|
attach_function :zsys_thread_name_prefix, [], :int, **opts
|
830
|
+
attach_function :zsys_set_thread_name_prefix_str, [:string], :void, **opts
|
831
|
+
attach_function :zsys_thread_name_prefix_str, [], :string, **opts
|
826
832
|
attach_function :zsys_thread_affinity_cpu_add, [:int], :void, **opts
|
827
833
|
attach_function :zsys_thread_affinity_cpu_remove, [:int], :void, **opts
|
828
834
|
attach_function :zsys_set_max_sockets, [:size_t], :void, **opts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: czmq-ffi-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.1.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Wenger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -141,11 +141,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: 2.5.0
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- - "
|
144
|
+
- - ">"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
146
|
+
version: 1.3.1
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.2.
|
148
|
+
rubygems_version: 3.2.33
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Generated low-level Ruby binding for CZMQ
|