udpmulticast 0.0.6 → 0.0.7

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 (2) hide show
  1. data/lib/udpmulticast.rb +6 -2
  2. metadata +3 -3
@@ -38,8 +38,8 @@ class UDPMulticast
38
38
  bind
39
39
  end
40
40
 
41
- def open_socket
42
- @client = UDPSocket.open
41
+ def client_socket
42
+ open_socket
43
43
  socket_opt @client, Socket::IP_MULTICAST_TTL, @ttl
44
44
  socket_opt @client, Socket::IP_TTL, @ttl
45
45
  end
@@ -54,6 +54,10 @@ class UDPMulticast
54
54
  @server = UDPSocket.new
55
55
  end
56
56
 
57
+ def open_socket
58
+ @client = UDPSocket.open
59
+ end
60
+
57
61
  def socket_opt(socket, opt, val)
58
62
  socket.setsockopt Socket::IPPROTO_IP, opt, val
59
63
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udpmulticast
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Donatas Abraitis