Initializes the Telnet Server service.
- Parameters
-
- Returns
- This function returns:
- Telnet server descriptor if no error occurs.
0
if an error occurs.
- See also
- fnet_telnet_release()
This function initializes the Telnet server service. It allocates all resources needed, and registers the Telnet server service in the polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the Telnet server in background.
The Telnet service executes parsing of user-entered commands received via the Telnet protocol, and calls user-defined command functions, if the parsing was successful.