Embedded TCP/IP stack
4.7.0
|
void fnet_dhcp_cln_set_response_timeout | ( | fnet_dhcp_cln_desc_t | desc, |
fnet_time_t | response_timout_ms | ||
) |
Change timeout for a DHCP server response.
desc | DHCP client descriptor. |
response_timout_ms | Response timeout (in milliseconds). |
This function sets the timeout for a response from a remote DHCP server. If the DHCP client does not receive any response from a DHCP server during this time, the client sends new discover message.
If the response_timout_ms is 0, the function reset the timeout to FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT_MS.
Using of this function is optional, the default timeout value is defined by FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT_MS.