|
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)
...
|