cztop 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/cztop/beacon.rb +11 -2
- data/lib/cztop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ecd770fb211c9e4ef5aaf15ad602c23ed5337aa
|
4
|
+
data.tar.gz: ac11ecd5c536b2322594000bf5ab05c85763136d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f29fa29f291dda39e7b43697e0ca1e13df1dc96321445f771c2324b0eae14f9680dcf2a1617c4c123c238a4840aabe193e5f0cbd2bf0503be760529c74b9ed0
|
7
|
+
data.tar.gz: c422a1152c407d8215932a7d5be169f18dbe73e00c37ebffb8ab5bcff456fc9fc79b367f7f58c6e4fbb4bf9a389486fe6ef5fadebed9b255723357fd7745abe7
|
data/CHANGES.md
CHANGED
data/lib/cztop/beacon.rb
CHANGED
@@ -35,14 +35,23 @@ module CZTop
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Run the beacon on the specified UDP port.
|
38
|
+
#
|
38
39
|
# @param port [Integer] port number to
|
39
40
|
# @return [String] hostname, which can be used as endpoint for incoming
|
40
41
|
# connections
|
41
|
-
# @raise [
|
42
|
+
# @raise [Interrupt] if the context was terminated or the process
|
43
|
+
# interrupted
|
44
|
+
# @raise [NotImplementedError] if the system doesn't support UDP broadcasts
|
42
45
|
def configure(port)
|
43
46
|
@actor.send_picture("si", :string, "CONFIGURE", :int, port)
|
44
|
-
|
47
|
+
ptr = Zstr.recv(@actor)
|
48
|
+
|
49
|
+
# NULL if context terminated or interrupted
|
50
|
+
HasFFIDelegate.raise_zmq_err if ptr.null?
|
51
|
+
|
52
|
+
hostname = ptr.read_string
|
45
53
|
return hostname unless hostname.empty?
|
54
|
+
|
46
55
|
raise NotImplementedError, "system doesn't support UDP broadcasts"
|
47
56
|
end
|
48
57
|
|
data/lib/cztop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cztop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Wenger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: czmq-ffi-gen
|