一、百度搜索關鍵字「Qt TCP」html
二、dom
2.一、Qt學習之路_5(Qt TCP的初步使用)tornado
http://www.cnblogs.com/tornadomeet/archive/2012/06/30/2571001.html學習
http://www.cnblogs.com/tornadomeet/category/374732.htmlspa
三、Qt獲取網卡信息 QNetworkInterface.net
http://blog.csdn.net/wjs1033/article/details/22697063code
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 ++; } }
四、htm
五、blog
六、ip
七、
八、