資源簡介
UDP通信實例,很完美。包含接收和發(fā)送端,定時發(fā)送和接收數(shù)據(jù)

代碼片段和文件信息
#include?
#include?“udpwheatherclient.h“
int?main(int?argc?char?*argv[])
{
????QApplication?a(argc?argv);
????UdpWheatherClient?*wheatherserver?=?new?UdpWheatherClient;
????wheatherserver->show();
????return?a.exec();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-01-11?00:10??UDP\
?????目錄???????????0??2011-01-11?00:10??UDP\UdpWheatherClient\
?????文件?????????257??2011-01-09?23:48??UDP\UdpWheatherClient\main.cpp
?????文件????????3430??2011-01-10?23:49??UDP\UdpWheatherClient\udpwheatherclient.cpp
?????文件?????????747??2011-01-09?23:46??UDP\UdpWheatherClient\udpwheatherclient.h
?????文件?????????360??2011-01-09?23:41??UDP\UdpWheatherClient\UdpWheatherClient.pro
?????目錄???????????0??2011-01-11?00:10??UDP\UdpWheatherServer\
?????文件?????????245??2011-01-09?22:07??UDP\UdpWheatherServer\main.cpp
?????文件????????2683??2011-01-10?23:23??UDP\UdpWheatherServer\udpwheatherserver.cpp
?????文件?????????883??2011-01-10?00:03??UDP\UdpWheatherServer\udpwheatherserver.h
?????文件?????????341??2011-01-09?22:27??UDP\UdpWheatherServer\UdpWheatherServer.pro
評論
共有 條評論