Method: OpenC3::TcpipServerInterface#write
- Defined in:
- lib/openc3/interfaces/tcpip_server_interface.rb
#write(packet) ⇒ Object
229 230 231 232 233 234 235 236 |
# File 'lib/openc3/interfaces/tcpip_server_interface.rb', line 229 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 |