Embedded TCP/IP stack: fnet_dhcp_cln_set_callback_discover

FNET

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

Registers 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

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-2018 by Andrey Butok. http://fnet.sourceforge.net