DhcpClientProcess handles the DHCP client process.
More...
DhcpClientProcess handles the DHCP client process.
◆ addPortDataEntry()
| void DhcpClientProcess::addPortDataEntry |
( |
string |
| ) |
|
◆ dhcpConfigured()
| void DhcpClientProcess::dhcpConfigured |
( |
QString |
, |
|
|
string |
, |
|
|
bool |
|
|
) |
| |
This event is emitted when the process has determined that DHCP is configured.
- deviceName, the name of the device.
- portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0
- isConfigured, true if DHCP is configured, otherwise false.
IPC event.
◆ dhcpFailed()
| void DhcpClientProcess::dhcpFailed |
( |
QString |
, |
|
|
string |
|
|
) |
| |
This event is emitted when a DHCP request fails.
- deviceName, the name of the device.
- portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0
IPC event.
◆ dhcpRelease()
| bool DhcpClientProcess::dhcpRelease |
( |
string |
| ) |
|
Releases the DHCP lease from the specified port.
- Parameters
-
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
- Returns
- bool, true if successful, otherwise false.
◆ dhcpRun()
| void DhcpClientProcess::dhcpRun |
( |
string |
| ) |
|
Start dhcp process on the specified port.
- Parameters
-
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
◆ dhcpSucceed()
| void DhcpClientProcess::dhcpSucceed |
( |
QString |
, |
|
|
string |
, |
|
|
ip |
, |
|
|
ip |
|
|
) |
| |
This event is emitted when the process receives a DHCP acknowledgement packet.
- deviceName, the name of the device.
- portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0
- newip, the IP address that was leased.
- newmask, the subnet mask that was leased.
IPC event.
◆ getDataOfPort()
◆ isPortExisted()
| bool DhcpClientProcess::isPortExisted |
( |
string |
| ) |
|
Runs DHCP on the specified port.
- Parameters
-
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
- Returns
- bool, true if successful, otherwise false.
◆ removePortDataEntry()
| void DhcpClientProcess::removePortDataEntry |
( |
string |
| ) |
|
Runs DHCP on the specified port.
- Parameters
-
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
◆ resetDhcpConfOn()
| bool DhcpClientProcess::resetDhcpConfOn |
( |
string |
| ) |
|
Resets the DHCP configuration on the specified port.
- Parameters
-
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
- Returns
- bool, true if successful, otherwise false.
The documentation for this class was generated from the following file: