Embedded TCP/IP stack
4.7.0
|
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.
desc | DHCP client descriptor. |
callback_discover | Pointer to the callback function defined by fnet_dhcp_cln_callback_t. |
cookie | Optional application-specific parameter. It's passed to the callback_discover callback function as input parameter. |
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.