Home |
Function xn_dhcp_decline |
Function xn_dhcp_declineDeclines use of an IP address. int xn_dhcp_decline(DHCP_session * session); ParameterssessionPointer to DHCP_session that was passed to xn_dhcp. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. All errors returned by sendto and closesocket may also be set. Error Codes further describes each error. This routine sends a DHCPDECLINE message to the DHCP server, declining use of whatever IP address was obtained through xn_dhcp. This message is to be sent if the configuration parameters returned by the server are invalid. If you simply no longer need the IP address, you should call xn_dhcp_release.
|