|
DtkDevice
DTK library for device.
|
网卡设备信息. 更多...
#include <dnetdevice.h>
类 | |
| struct | DInetAddr4 |
| IPv4信息 更多... | |
| struct | DInetAddr6 |
| IPv6信息 更多... | |
| struct | DNetifInfo |
| 网络状态信息 更多... | |
Public 成员函数 | |
| DNetDevice (QObject *parent=nullptr) | |
| int | count () |
| 获取所有网卡个数. | |
| QString | name (int index) |
| QString | vendor (int index) |
| 获取指定网卡的厂商. | |
| QString | model (int index) |
| 获取指定网卡的型号. | |
| QString | type (int index) |
| 获取指定网卡的类型. | |
| QString | macAddress (int index) |
| 获取指定网卡的MAC地址. | |
| QString | driver (int index) |
| 获取指定网卡的驱动. | |
| QString | speed (int index) |
| 获取指定网卡的速度. | |
| QString | status (int index) |
| 获取指定网卡的连接状态. | |
| DInetAddr4 | inetAddr4 (int index) |
| 获取指定网卡的IP4信息. | |
| DInetAddr6 | inetAddr6 (int index) |
| 获取指定网卡的IP6信息. | |
| DNetifInfo | netifInfo (int index) |
| 获取指定网卡的网络信息. | |
| QString | portStatus (int index, int port) |
| 获取指定网卡的端口状态. | |
| QList< int > | applicationPorts (int pid) |
| 获取指定应用的端口信息. | |
网卡设备信息.
| QList< int > DNetDevice::applicationPorts | ( | int | pid | ) |
获取指定应用的端口信息.
| [in] | pid | 应用的ID. |
| int DNetDevice::count | ( | ) |
获取所有网卡个数.
| QString DNetDevice::driver | ( | int | index | ) |
获取指定网卡的驱动.
| [in] | index | 指定网卡的ID. |
| DInetAddr4 DNetDevice::inetAddr4 | ( | int | index | ) |
获取指定网卡的IP4信息.
| [in] | index | 指定网卡的ID. |
| DInetAddr6 DNetDevice::inetAddr6 | ( | int | index | ) |
获取指定网卡的IP6信息.
| [in] | index | 指定网卡的ID. |
| QString DNetDevice::macAddress | ( | int | index | ) |
获取指定网卡的MAC地址.
| [in] | index | 指定网卡的ID. |
| QString DNetDevice::model | ( | int | index | ) |
获取指定网卡的型号.
| [in] | index | 指定网卡的ID. |
| DNetifInfo DNetDevice::netifInfo | ( | int | index | ) |
获取指定网卡的网络信息.
| [in] | index | 指定网卡的ID. |
| QString DNetDevice::portStatus | ( | int | index, |
| int | port | ||
| ) |
获取指定网卡的端口状态.
| [in] | index | 指定网卡的ID. |
| [in] | port | 端口的ID. |
| QString DNetDevice::speed | ( | int | index | ) |
获取指定网卡的速度.
| [in] | index | 指定网卡的ID. |
| QString DNetDevice::status | ( | int | index | ) |
获取指定网卡的连接状态.
| [in] | index | 指定网卡的ID. |
| QString DNetDevice::type | ( | int | index | ) |
获取指定网卡的类型.
| [in] | index | 指定网卡的ID. |
| QString DNetDevice::vendor | ( | int | index | ) |
获取指定网卡的厂商.
| [in] | index | 指定网卡的ID. |