• 大小: 315KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-09
  • 语言: C/C++
  • 标签: udp  组播  多播  

资源简介

一个简单的C++实现UDP组播发送和接收的程序

资源截图

代码片段和文件信息

#include 
#include “Receive.h“

using namespace std;
int main()
{
string strMessage;
Receive receive;
receive.InitSocket(“224.0.1.2““7838“);
while (1)
{
receive.ReceiveStringData(strMessage);
cout<
}


receive.CloseSocket();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6956  2012-12-08 19:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\BuildLog.htm

     文件      42149  2012-12-08 19:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\Main.obj

     文件         65  2012-12-08 19:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\mt.dep

     文件      24020  2012-12-08 17:41  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\Person.obj

     文件      61063  2012-12-08 17:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\Receive.obj

     文件        403  2012-12-08 17:41  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\Receive_UDPMulticast_Windows.exe.embed.manifest

     文件        468  2012-12-08 17:41  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\Receive_UDPMulticast_Windows.exe.embed.manifest.res

     文件        385  2012-12-08 19:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\Receive_UDPMulticast_Windows.exe.intermediate.manifest

     文件     551936  2012-12-08 19:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\vc80.idb

     文件     233472  2012-12-08 19:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Debug\vc80.pdb

     文件        289  2012-12-08 19:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Main.cpp

     文件         82  2012-12-08 17:00  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Person.cpp

     文件        195  2012-12-08 16:59  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Person.h

     文件       2310  2012-12-08 17:52  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Receive.cpp

     文件        566  2012-12-08 17:36  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Receive.h

     文件       4298  2012-12-08 17:35  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Receive_UDPMulticast_Windows.vcproj

     文件       1427  2013-01-14 10:29  UDPMulticast_Windows\Receive_UDPMulticast_Windows\Receive_UDPMulticast_Windows.vcproj.PC--20120411BJI.chengqian.user

     文件       6758  2012-12-08 19:53  UDPMulticast_Windows\UDPMulticast_Windows\Debug\BuildLog.htm

     文件      54296  2012-12-08 19:53  UDPMulticast_Windows\UDPMulticast_Windows\Debug\Main.obj

     文件         65  2012-12-08 19:53  UDPMulticast_Windows\UDPMulticast_Windows\Debug\mt.dep

     文件      23956  2012-12-08 16:27  UDPMulticast_Windows\UDPMulticast_Windows\Debug\Person.obj

     文件      68485  2012-12-08 16:49  UDPMulticast_Windows\UDPMulticast_Windows\Debug\Send.obj

     文件        403  2012-12-08 16:28  UDPMulticast_Windows\UDPMulticast_Windows\Debug\Send_UDPMulticast_Windows.exe.embed.manifest

     文件        468  2012-12-08 16:28  UDPMulticast_Windows\UDPMulticast_Windows\Debug\Send_UDPMulticast_Windows.exe.embed.manifest.res

     文件        385  2012-12-08 19:53  UDPMulticast_Windows\UDPMulticast_Windows\Debug\Send_UDPMulticast_Windows.exe.intermediate.manifest

     文件     568320  2012-12-08 19:53  UDPMulticast_Windows\UDPMulticast_Windows\Debug\vc80.idb

     文件     233472  2012-12-08 19:53  UDPMulticast_Windows\UDPMulticast_Windows\Debug\vc80.pdb

     文件        268  2012-12-08 19:53  UDPMulticast_Windows\UDPMulticast_Windows\Main.cpp

     文件         82  2012-12-08 16:27  UDPMulticast_Windows\UDPMulticast_Windows\Person.cpp

     文件        195  2012-12-08 16:27  UDPMulticast_Windows\UDPMulticast_Windows\Person.h

............此处省略15个文件信息

评论

共有 条评论