?? macdhcp.h
字號:
#include "qobject.h"#include "qhostaddress.h"#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <sys/param.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <net/if.h>#include <net/route.h>#include <netinet/in.h>#define MAXINTERFACES 16class macdhcp : public QObject{ Q_OBJECTpublic: macdhcp(); ~macdhcp(); int fd, interfaceNum; struct ifreq buf[MAXINTERFACES]; struct ifreq bufnew[MAXINTERFACES]; struct ifconf ifc; struct rtentry rt; unsigned int intNetmask; unsigned int intIp; QString getMacAddress(int); QString getIPAddress(int); QString getNetMask(int); QString getDNS(); QString getGateway(); QString getNetwork(); QString getBroadcast(); QString getIfName(int); QString setMacAddress(int,QString); QString setIPAddress(int,QString); QString setNetMask(int,QString); QString setDNS(QString); QString setGateway(QString); int getIfNum(void); QString checkIP(QString IP);};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -