Method: OpenC3::TcpipServerInterface#write
- Defined in:
- lib/openc3/interfaces/tcpip_server_interface.rb
#write(packet) ⇒ Object
240 241 242 243 244 245 246 247 |
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 240 def write(packet) raise "Interface not connected for write: #{@name}" unless connected? raise "Interface not writable: #{@name}" unless write_allowed? @write_count += 1 @write_queue << packet.clone @write_condition_variable.broadcast end |