Skip to main content
. 2021 Sep 9;21(18):6050. doi: 10.3390/s21186050
Listing 5. Pseudo-code of the server runtime main loop.
  • while True:

  •     cmd, args = recv_cmd()

  •     if cmd == "get_bitstream":

  •         send_file(path="path_to_bitstream")

  •     elif cmd == "get_sharedlib":

  •         send_file(path="path_to_sharedlib")

  •     elif cmd == "exec":

  •         execute_cmd(args)

  •     elif cmd == "recv":

  •         recv_data(args)

  •     ...