Embedded TCP/IP stack  4.7.0

◆ fnet_dhcp_cln_set_callback_discover()

void fnet_dhcp_cln_set_callback_discover ( fnet_dhcp_cln_desc_t  desc,
fnet_dhcp_cln_callback_t  callback_discover,
void *  cookie 
)

Register the "Discover message sent" DHCP event handler callback.

Parameters
descDHCP client descriptor.
callback_discoverPointer to the callback function defined by fnet_dhcp_cln_callback_t.
cookieOptional application-specific parameter.
It's passed to the callback_discover callback function as input parameter.
See also
FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT_MS

This function registers the callback_discover callback function for the "Discover message sent" event. This event occurs when the DHCP client sends the DHCP discover message. A user interface program may use it for indication of retransmission attempts.
To stop the event handling, set the callback_discover parameter to zero value.


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