czmq-ffi-gen 0.16.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -18
- data/lib/czmq-ffi-gen/czmq/ffi.rb +58 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +10 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +17 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +16 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zosc.rb +487 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +485 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +50 -0
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- data/lib/czmq-ffi-gen/versions.rb +0 -3
- metadata +13 -23
@@ -735,6 +735,16 @@ module CZMQ
|
|
735
735
|
result
|
736
736
|
end
|
737
737
|
|
738
|
+
# Test if ipv6 is available on the system. Return true if available.
|
739
|
+
# The only way to reliably check is to actually open a socket and
|
740
|
+
# try to bind it. (ported from libzmq)
|
741
|
+
#
|
742
|
+
# @return [Boolean]
|
743
|
+
def self.ipv6_available()
|
744
|
+
result = ::CZMQ::FFI.zsys_ipv6_available()
|
745
|
+
result
|
746
|
+
end
|
747
|
+
|
738
748
|
# Set network interface name to use for broadcasts, particularly zbeacon.
|
739
749
|
# This lets the interface be configured for test environments where required.
|
740
750
|
# For example, on Mac OS X, zbeacon cannot bind to 255.255.255.255 which is
|
@@ -798,6 +808,46 @@ module CZMQ
|
|
798
808
|
result
|
799
809
|
end
|
800
810
|
|
811
|
+
# Set IPv4 multicast address to use for sending zbeacon messages. By default
|
812
|
+
# IPv4 multicast is NOT used. If the environment variable
|
813
|
+
# ZSYS_IPV4_MCAST_ADDRESS is set, use that as the default IPv4 multicast
|
814
|
+
# address. Calling this function or setting ZSYS_IPV4_MCAST_ADDRESS
|
815
|
+
# will enable IPv4 zbeacon messages.
|
816
|
+
#
|
817
|
+
# @param value [String, #to_s, nil]
|
818
|
+
# @return [void]
|
819
|
+
def self.set_ipv4_mcast_address(value)
|
820
|
+
result = ::CZMQ::FFI.zsys_set_ipv4_mcast_address(value)
|
821
|
+
result
|
822
|
+
end
|
823
|
+
|
824
|
+
# Return IPv4 multicast address to use for sending zbeacon, or NULL if none was
|
825
|
+
# set.
|
826
|
+
#
|
827
|
+
# @return [String]
|
828
|
+
def self.ipv4_mcast_address()
|
829
|
+
result = ::CZMQ::FFI.zsys_ipv4_mcast_address()
|
830
|
+
result
|
831
|
+
end
|
832
|
+
|
833
|
+
# Set multicast TTL default is 1
|
834
|
+
#
|
835
|
+
# @param value [Integer, #to_int, #to_i]
|
836
|
+
# @return [void]
|
837
|
+
def self.set_mcast_ttl(value)
|
838
|
+
value = Integer(value)
|
839
|
+
result = ::CZMQ::FFI.zsys_set_mcast_ttl(value)
|
840
|
+
result
|
841
|
+
end
|
842
|
+
|
843
|
+
# Get multicast TTL
|
844
|
+
#
|
845
|
+
# @return [Integer]
|
846
|
+
def self.mcast_ttl()
|
847
|
+
result = ::CZMQ::FFI.zsys_mcast_ttl()
|
848
|
+
result
|
849
|
+
end
|
850
|
+
|
801
851
|
# Configure the automatic use of pre-allocated FDs when creating new sockets.
|
802
852
|
# If 0 (default), nothing will happen. Else, when a new socket is bound, the
|
803
853
|
# system API will be used to check if an existing pre-allocated FD with a
|
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: 0.
|
4
|
+
version: 1.0.0
|
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: 2021-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.11'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '2.0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +44,14 @@ dependencies:
|
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
47
|
+
version: '3.10'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
54
|
+
version: '3.10'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: minitest
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,6 +107,7 @@ files:
|
|
121
107
|
- lib/czmq-ffi-gen/czmq/ffi/zlistx.rb
|
122
108
|
- lib/czmq-ffi-gen/czmq/ffi/zloop.rb
|
123
109
|
- lib/czmq-ffi-gen/czmq/ffi/zmsg.rb
|
110
|
+
- lib/czmq-ffi-gen/czmq/ffi/zosc.rb
|
124
111
|
- lib/czmq-ffi-gen/czmq/ffi/zpoller.rb
|
125
112
|
- lib/czmq-ffi-gen/czmq/ffi/zproc.rb
|
126
113
|
- lib/czmq-ffi-gen/czmq/ffi/zsock.rb
|
@@ -136,10 +123,13 @@ files:
|
|
136
123
|
- lib/czmq-ffi-gen/signals.rb
|
137
124
|
- lib/czmq-ffi-gen/vendor.rb
|
138
125
|
- lib/czmq-ffi-gen/versions.rb
|
139
|
-
homepage: https://
|
126
|
+
homepage: https://rubygems.org/gems/czmq-ffi-gen
|
140
127
|
licenses:
|
141
128
|
- ISC
|
142
|
-
metadata:
|
129
|
+
metadata:
|
130
|
+
homepage_uri: https://rubygems.org/gems/czmq-ffi-gen
|
131
|
+
source_code_uri: https://github.com/paddor/czmq-ffi-gen
|
132
|
+
changelog_uri: https://github.com/paddor/czmq-ffi-gen/blob/master/CHANGES.md
|
143
133
|
post_install_message:
|
144
134
|
rdoc_options: []
|
145
135
|
require_paths:
|
@@ -148,15 +138,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
138
|
requirements:
|
149
139
|
- - ">="
|
150
140
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
141
|
+
version: 2.5.0
|
152
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
143
|
requirements:
|
154
144
|
- - ">="
|
155
145
|
- !ruby/object:Gem::Version
|
156
146
|
version: '0'
|
157
147
|
requirements: []
|
158
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.2.4
|
159
149
|
signing_key:
|
160
150
|
specification_version: 4
|
161
|
-
summary:
|
151
|
+
summary: Generated low-level Ruby binding for CZMQ
|
162
152
|
test_files: []
|