Embedded TCP/IP stack  4.7.0

◆ fnet_telnet_init()

fnet_telnet_desc_t fnet_telnet_init ( fnet_telnet_params_t params)

Initializes the Telnet Server service.

Parameters
paramsInitialization parameters defined by fnet_telnet_params_t.
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.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net