NetBurner 3.5.6
PDF Version |
#include <dhcpclient.h>
Inherits TimeOutElement.
Public Member Functions | |
void | StartDHCP () |
Manually start the DHCP Client. | |
void | StopDHCP () |
Manually stop the DHCP client and release the DHCP lease. | |
void | RestartDHCP () |
Manually stop are resetart the DHCP client. | |
bool | bDoFallBack () |
Returns true if a DHCP fallback event has occurred. | |
void | RenewDHCP () |
Manually force a DHCP renew of a lease. | |
void | RebindDHCP () |
Manually force a DHCP rebind of a lease. | |
BOOL | ValidDhcpLease () |
Returns the status of a DHCP lease. | |
uint32_t | GetRemainingDhcpLeaseTime () |
Returns number of seconds remaining for current lease. | |
uint32_t | GetDhcpRenewTime () |
Returns number of seconds remaining before the lease will be renewed. | |
uint32_t | GetDhcpRebindTime () |
Returns number of seconds remaining before the current lease will have to rebind. | |
uint32_t | GetDhcpExpirationTime () |
Returns number of seconds remaining before the current lease will expire. | |
int32_t | GetDHCPState () |
Returns current state of the DHCP lease. | |
DHCP client class.
bool DhcpObject::bDoFallBack | ( | ) |
Returns true if a DHCP fallback event has occurred.
The init() function called at the beginning of an application will handle DHCP client services for all network interfaces. It is rare that you would need to call these functions manually.
If the fallback functionality has been enabled in the device configuration, this function can be used to determine if a fallback to a static IP settings has occurred.
|
inline |
Returns number of seconds remaining before the current lease will expire.
|
inline |
Returns number of seconds remaining before the current lease will have to rebind.
|
inline |
Returns number of seconds remaining before the lease will be renewed.
int32_t DhcpObject::GetDHCPState | ( | ) |
uint32_t DhcpObject::GetRemainingDhcpLeaseTime | ( | ) |
Returns number of seconds remaining for current lease.
void DhcpObject::RebindDHCP | ( | ) |
Manually force a DHCP rebind of a lease.
The init() function called at the beginning of an application will handle DHCP client services for all network interfaces. It is rare that you would need to call these functions manually.
void DhcpObject::RenewDHCP | ( | ) |
Manually force a DHCP renew of a lease.
The init() function called at the beginning of an application will handle DHCP client services for all network interfaces. It is rare that you would need to call these functions manually.
void DhcpObject::RestartDHCP | ( | ) |
void DhcpObject::StartDHCP | ( | ) |
Manually start the DHCP Client.
The init() function called at the beginning of an application will handle DHCP client services for all network interfaces. It is rare that you would need to call these functions manually.
This function will start the DHCP client and return immediately. Check the DHCP status to verify you have successfully obtained a lease via GetDHCPState()
void DhcpObject::StopDHCP | ( | ) |
Manually stop the DHCP client and release the DHCP lease.
The init() function called at the beginning of an application will handle DHCP client services for all network interfaces. It is rare that you would need to call these functions manually.
BOOL DhcpObject::ValidDhcpLease | ( | ) |
Returns the status of a DHCP lease.