QtTcp_资料
1、百度搜索关键字“Qt TCP”
2、
2.1、Qt学习之路_5(Qt TCP的初步使用)
http://www.cnblogs.com/tornadomeet/archive/2012/06/30/2571001.html
http://www.cnblogs.com/tornadomeet/category/374732.html
3、Qt获取网卡信息 QNetworkInterface
http://blog.csdn.net/wjs1033/article/details/22697063
void MainWindow::on_pbtnMsg01_clicked() { int i=0, j=0; QList<QNetworkInterface> networkInterface = QNetworkInterface::allInterfaces(); for (QList<QNetworkInterface>::const_iterator it = networkInterface.constBegin(); it != networkInterface.constEnd(); ++it) { qDebug() << "[" << i << "] : " << (*it).name(); qDebug() << " " << (*it).humanReadableName(); qDebug() << " " << (*it).hardwareAddress(); //获取连接地址列表 QList<QNetworkAddressEntry> addressEntriesList = (*it).addressEntries(); for (QList<QNetworkAddressEntry>::const_iterator jIt = addressEntriesList.constBegin(); jIt != addressEntriesList.constEnd(); ++jIt) { qDebug() << "\t(" << j << ") :"; //输出 ip qDebug() << "\t\tIP : " <<(*jIt).ip().toString(); //输出 netmask qDebug() << "\t\tnetmask : " << (*jIt).netmask().toString(); qDebug() << ""; j ++; } i ++; } }
4、
5、
6、
7、
8、