discovery 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/discovery/udp.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0da22b162169c405e21fe71620cbdd47591bd00
|
4
|
+
data.tar.gz: 6bec05a6127412c10797e56bb2b0ce53616c5229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f12098126007448a0c6d0ec72efdc126550b8d0fe47c65fca9d46d65492edbd6464285c3440aec525dac11e209721242e76eaf92163811e368f45dbac33205d9
|
7
|
+
data.tar.gz: f57f9a99314e0760679d8e882c3a0706ec946c7c5c6fd8e3057c484703096322afe8e7b7881a00313cc60cec2f2aec52c3dc8264ac3ed27e85607a21d2a48de8
|
data/lib/discovery/udp.rb
CHANGED
@@ -27,6 +27,10 @@ module Discovery
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
# Halt the discovery thread started by listen,
|
31
|
+
# but do not unregister the callback
|
32
|
+
def self.halt; @thread.kill; end
|
33
|
+
|
30
34
|
# Return the info hash of the next DDDP beacon detected - blocking
|
31
35
|
# Optional :timeout keyword argument specifies maximum time to block
|
32
36
|
def self.next_beacon timeout:nil
|