Embedded TCP/IP stack: fnet_dhcp_cln_init

FNET

fnet_dhcp_cln_desc_t fnet_dhcp_cln_init ( struct fnet_dhcp_cln_params params)

Initializes the DHCPv4 client service.

Parameters
paramsInitialization parameters.
Returns
This function returns:
  • DHCP client descriptor if no error occurs.
  • 0 if an error occurs.
See also
fnet_dhcp_cln_release()

This function initializes the DHCPv4 client service. It allocates all resources needed and registers the DHCP service in the polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the DHCP service routine in the background.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net