I really don't understand what is the problem to export on some TCP
port custom server, that read {packet, 4} messages,
decode them via binary_to_term and takes all logic of authentication
and executing commands.
The only problem is lack of function binary_to_term_with_existing_atom