Method: Cosmos::UdpInterface#read
- Defined in:
- lib/cosmos/interfaces/udp_interface.rb
#read ⇒ Object
142 143 144 145 146 147 148 149 |
# File 'lib/cosmos/interfaces/udp_interface.rb', line 142 def read return super() if @read_port # Write only interface so stop the thread which calls read @thread_sleeper = Sleeper.new @thread_sleeper.sleep(1_000_000_000) while connected? return nil end |