C2 Proxy
C2 Web Interface

TCP Socket Handler

Needed

  • Starts a new thread for each connection
  • Every connection is treated like the same device
    • This is to handle situations where the UAV disconnects and reconnects
    • There should only ever be one UAV
  • Command Callback function
  • Send Command function
  • One static socket
    • This is overridden when a new connection is received
      • This way the application is always working with the current connection

Methods

  • socket_handler_init(receive_message_callback_function)
    • Starts up a new thread
  • socket_handler_send(String)

Variables

  • static : socket

WebSocket Handler

Command Manager

WebSocket Client

Command Handler

Control Panel

UAV TCP Client

Mission Planner