Method: OpenC3::InterfaceThread#initialize

Defined in:
lib/openc3/tools/cmd_tlm_server/interface_thread.rb

#initialize(interface) ⇒ InterfaceThread

Returns a new instance of InterfaceThread.

Parameters:

  • interface (Interface)

    The interface to create a thread for



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/openc3/tools/cmd_tlm_server/interface_thread.rb', line 48

def initialize(interface)
  @interface = interface
  @connection_success_callback = nil
  @connection_failed_callback = nil
  @connection_lost_callback = nil
  @identified_packet_callback = nil
  @fatal_exception_callback = nil
  @thread = nil
  @thread_sleeper = Sleeper.new
  @connection_failed_messages = []
  @connection_lost_messages = []
  @mutex = Mutex.new
end