文件名称:CMulticastSocket-VC-4-demos
- 所属分类:
- TCP/IP协议栈
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 537kb
- 下载次数:
- 0次
- 提 供 者:
- 邝**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
UDP组播VC例程
修正了原PUDN上的UDP组播例程的BUG
简单说明:
一共4个可执行文件。
CMulticastSocket-仅发送测试.exe
CMulticastSocket-仅接收测试.exe
CMulticastSocket-发送和接收.exe
组播实现一例:监听程序,可同时运行多个进程接收.exe
其中,1~3是对话框版,改自同一版本,最早是个只能绑定一次组播地址:端口对的,后来根据实例4的思想改为了支持多个进程的版本(显然多个线程仍然适用),即可多次运行这个程序,绑定相同的组播地址和端口对。同时这里增加了一个简单的控制,通过发送Clear消息可以使2和3完成"ClearAllReceivedMessage"控件相同的功能;另外在第3个中有两个隐藏控件,其中实现了进程内的消息处理测试,可以PostMessage给其他控件,(自定义消息WM_TRY)以激活相关动作(函数OnTry),另外有一部分未激活的代码可以实现黑屏控制。
其中,4为shell版原来只接收一共数据报,我把它改成了可以一直接收数据,直到收到一个包含“shutdown”的消息;但由于采用阻塞式(receivefrom),即一直处于接收状态,在未收到消息是不能干任何事。
另外,压缩包中保留的各个版本以供对照。-CMulticastSocket with 7 dsw/dsp packages
including 6 compilable, 1 cannot be compiled just included for references.
The packages demonstrates:
1 DLG based M-cast UDP tranceiver also with a non-reusable version for reference
1 shell based M-cast UDP tranceiver
1 DLG based M-cast UDP receiver,
1 DLG based M-cast UDP sender.
修正了原PUDN上的UDP组播例程的BUG
简单说明:
一共4个可执行文件。
CMulticastSocket-仅发送测试.exe
CMulticastSocket-仅接收测试.exe
CMulticastSocket-发送和接收.exe
组播实现一例:监听程序,可同时运行多个进程接收.exe
其中,1~3是对话框版,改自同一版本,最早是个只能绑定一次组播地址:端口对的,后来根据实例4的思想改为了支持多个进程的版本(显然多个线程仍然适用),即可多次运行这个程序,绑定相同的组播地址和端口对。同时这里增加了一个简单的控制,通过发送Clear消息可以使2和3完成"ClearAllReceivedMessage"控件相同的功能;另外在第3个中有两个隐藏控件,其中实现了进程内的消息处理测试,可以PostMessage给其他控件,(自定义消息WM_TRY)以激活相关动作(函数OnTry),另外有一部分未激活的代码可以实现黑屏控制。
其中,4为shell版原来只接收一共数据报,我把它改成了可以一直接收数据,直到收到一个包含“shutdown”的消息;但由于采用阻塞式(receivefrom),即一直处于接收状态,在未收到消息是不能干任何事。
另外,压缩包中保留的各个版本以供对照。-CMulticastSocket with 7 dsw/dsp packages
including 6 compilable, 1 cannot be compiled just included for references.
The packages demonstrates:
1 DLG based M-cast UDP tranceiver also with a non-reusable version for reference
1 shell based M-cast UDP tranceiver
1 DLG based M-cast UDP receiver,
1 DLG based M-cast UDP sender.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CMulticastSocket-仅发送测试.exe
CMulticastSocket-仅接收测试.exe
CMulticastSocket-发送和接收.exe
..........................\CMulticastSocket.cpp
..........................\CMulticastSocket.dsp
..........................\CMulticastSocket.dsw
..........................\CMulticastSocket.h
..........................\CMulticastSocket.rc
..........................\CMulticastSocketDlg.cpp
..........................\CMulticastSocketDlg.h
..........................\JoinGroupDlg.cpp
..........................\JoinGroupDlg.h
..........................\MulticastSocket.cpp
..........................\MulticastSocket.h
..........................\ReadMe.txt
..........................\Release
..........................\.......\CMulticastSocket.exe
..........................\res
..........................\...\CMulticastSocket.rc2
..........................\resource.h
..........................\StdAfx.cpp
..........................\StdAfx.h
UDP组播VC例程-仅发送测试
........................\CMulticastSocket.cpp
........................\CMulticastSocket.dsp
........................\CMulticastSocket.dsw
........................\CMulticastSocket.h
........................\CMulticastSocket.rc
........................\CMulticastSocketDlg.cpp
........................\CMulticastSocketDlg.h
........................\JoinGroupDlg.cpp
........................\JoinGroupDlg.h
........................\MulticastSocket.cpp
........................\MulticastSocket.h
........................\ReadMe.txt
........................\res
........................\...\CMulticastSocket.rc2
........................\resource.h
........................\StdAfx.cpp
........................\StdAfx.h
UDP组播VC例程-仅接收测试
........................\CMulticastSocket.cpp
........................\CMulticastSocket.dsp
........................\CMulticastSocket.dsw
........................\CMulticastSocket.h
........................\CMulticastSocket.ncb
........................\CMulticastSocket.opt
........................\CMulticastSocket.rc
........................\CMulticastSocketDlg.cpp
........................\CMulticastSocketDlg.h
........................\Debug
........................\JoinGroupDlg.cpp
........................\JoinGroupDlg.h
........................\MulticastSocket.cpp
........................\MulticastSocket.h
........................\ReadMe.txt
........................\res
........................\...\CMulticastSocket.rc2
........................\resource.h
........................\StdAfx.cpp
........................\StdAfx.h
UDP组播VC例程-发送与接收
........................\CMulticastSocket.cpp
........................\CMulticastSocket.dsp
........................\CMulticastSocket.dsw
........................\CMulticastSocket.h
........................\CMulticastSocket.rc
........................\CMulticastSocketDlg.cpp
........................\CMulticastSocketDlg.h
........................\JoinGroupDlg.cpp
........................\JoinGroupDlg.h
........................\MulticastSocket.cpp
........................\MulticastSocket.h
........................\ReadMe.txt
........................\res
........................\...\CMulticastSocket.rc2
........................\resource.h
........................\StdAfx.cpp
........................\StdAfx.h
UDP组播VC例程-邝育军修改补充
............................\CMulticastSocket.cpp
............................\CMulticastSocket.dsp
............................\CMulticastSocket.dsw
............................\CMulticastSocket.h
............................\CMulticastSocket.ncb
............................\CMulticastSocket.opt
............................\CMulticastSocket.plg
............................\CMulticastSocket.rc
............................\CMulticastSocketDlg.cpp
............................\CMulticastSocketDlg.h
............................\JoinGroupDlg.cpp
............................\JoinGroupDlg.h
............................\MulticastSocket.cpp
............................\MulticastSocket.h
............................\ReadMe.txt
............................\res
CMulticastSocket-仅接收测试.exe
CMulticastSocket-发送和接收.exe
..........................\CMulticastSocket.cpp
..........................\CMulticastSocket.dsp
..........................\CMulticastSocket.dsw
..........................\CMulticastSocket.h
..........................\CMulticastSocket.rc
..........................\CMulticastSocketDlg.cpp
..........................\CMulticastSocketDlg.h
..........................\JoinGroupDlg.cpp
..........................\JoinGroupDlg.h
..........................\MulticastSocket.cpp
..........................\MulticastSocket.h
..........................\ReadMe.txt
..........................\Release
..........................\.......\CMulticastSocket.exe
..........................\res
..........................\...\CMulticastSocket.rc2
..........................\resource.h
..........................\StdAfx.cpp
..........................\StdAfx.h
UDP组播VC例程-仅发送测试
........................\CMulticastSocket.cpp
........................\CMulticastSocket.dsp
........................\CMulticastSocket.dsw
........................\CMulticastSocket.h
........................\CMulticastSocket.rc
........................\CMulticastSocketDlg.cpp
........................\CMulticastSocketDlg.h
........................\JoinGroupDlg.cpp
........................\JoinGroupDlg.h
........................\MulticastSocket.cpp
........................\MulticastSocket.h
........................\ReadMe.txt
........................\res
........................\...\CMulticastSocket.rc2
........................\resource.h
........................\StdAfx.cpp
........................\StdAfx.h
UDP组播VC例程-仅接收测试
........................\CMulticastSocket.cpp
........................\CMulticastSocket.dsp
........................\CMulticastSocket.dsw
........................\CMulticastSocket.h
........................\CMulticastSocket.ncb
........................\CMulticastSocket.opt
........................\CMulticastSocket.rc
........................\CMulticastSocketDlg.cpp
........................\CMulticastSocketDlg.h
........................\Debug
........................\JoinGroupDlg.cpp
........................\JoinGroupDlg.h
........................\MulticastSocket.cpp
........................\MulticastSocket.h
........................\ReadMe.txt
........................\res
........................\...\CMulticastSocket.rc2
........................\resource.h
........................\StdAfx.cpp
........................\StdAfx.h
UDP组播VC例程-发送与接收
........................\CMulticastSocket.cpp
........................\CMulticastSocket.dsp
........................\CMulticastSocket.dsw
........................\CMulticastSocket.h
........................\CMulticastSocket.rc
........................\CMulticastSocketDlg.cpp
........................\CMulticastSocketDlg.h
........................\JoinGroupDlg.cpp
........................\JoinGroupDlg.h
........................\MulticastSocket.cpp
........................\MulticastSocket.h
........................\ReadMe.txt
........................\res
........................\...\CMulticastSocket.rc2
........................\resource.h
........................\StdAfx.cpp
........................\StdAfx.h
UDP组播VC例程-邝育军修改补充
............................\CMulticastSocket.cpp
............................\CMulticastSocket.dsp
............................\CMulticastSocket.dsw
............................\CMulticastSocket.h
............................\CMulticastSocket.ncb
............................\CMulticastSocket.opt
............................\CMulticastSocket.plg
............................\CMulticastSocket.rc
............................\CMulticastSocketDlg.cpp
............................\CMulticastSocketDlg.h
............................\JoinGroupDlg.cpp
............................\JoinGroupDlg.h
............................\MulticastSocket.cpp
............................\MulticastSocket.h
............................\ReadMe.txt
............................\res