Sending Reply Message
The tnet_process_cmd function processes the Telnet command when it is received from a remote user. This function then generates a reply message and sends it back to the user. This is how the command-line interface works.
When the reply message is short, the whole message can be sent in a single packet. However, when long reports are generated, multiple packets must be sent to transfer the whole message. This is the case, for example, when the log files are displayed. Both single and multiple packets are supported by the Embedded Telnet Server.