Embedded TCP/IP stack: fnet_telnet_init

FNET

fnet_telnet_desc_t fnet_telnet_init ( struct fnet_telnet_params params)

Initializes the Telnet Server service.

Parameters
paramsInitialization parameters defined by fnet_telnet_params.
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-2018 by Andrey Butok. http://fnet.sourceforge.net