We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 475b3f9 + 00f6182 commit 04e4681Copy full SHA for 04e4681
lib/cosmos/interfaces/udp_interface.rb
@@ -75,18 +75,18 @@ def initialize(
75
# the constructor and a new {UdpReadSocket} if the read_port was given in
76
# the constructor.
77
def connect
78
+ @read_socket = UdpReadSocket.new(
79
+ @read_port,
80
+ @hostname,
81
+ @interface_address,
82
+ @bind_address) if @read_port
83
@write_socket = UdpWriteSocket.new(
84
@hostname,
85
@write_dest_port,
86
@write_src_port,
87
@interface_address,
88
@ttl,
89
@bind_address) if @write_dest_port
- @read_socket = UdpReadSocket.new(
- @read_port,
- @hostname,
- @interface_address,
- @bind_address) if @read_port
90
@thread_sleeper = nil
91
end
92
0 commit comments