Embedded TCP/IP stack  4.7.0

◆ fnet_dhcp_cln_set_response_timeout()

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.

Parameters
descDHCP client descriptor.
response_timout_msResponse timeout (in milliseconds).
See also
FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT_MS

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.


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