Embedded TCP/IP stack: fnet_dhcp_cln_set_callback_updated

FNET

void fnet_dhcp_cln_set_callback_updated ( fnet_dhcp_cln_desc_t  desc,
fnet_dhcp_cln_callback_t  callback_updated,
void *  cookie 
)

Registers the "IP parameters updated" DHCP event handler callback.

Parameters
descDHCP client descriptor.
callback_updatedPointer to the callback function defined by fnet_dhcp_cln_callback_t.
cookieOptional application-specific parameter.
It's passed to the callback_updated callback function as input parameter.

This function registers the callback_updated callback function for the "IP parameters updated" event. This event occurs when the DHCP client has updated the IP parameters.
To stop the event handling, set the callback_updated parameter to zero value.


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