文件名称:udpservermoni
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- 朱**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
建立接收socket,将socket和指定的端口绑定
2、创建接收线程,在线程中调用ioctlsocket()判断是否接收到数据,接收到数据时调用OnReceive()(类似CSocket中的OnReceive())
3、在OnReceive中申请空间调用recvfrom接收数据
4、建立发送socket,和INADDR_ANY绑定
5、调用sendto发送数据
-establishment receiving socket, the socket and designated ports bundled with two to create receive threads, Calling the threads ioctlsocket () to decide whether or not to receive data, to receive information call OnReceive () (similar to the OnReceive CSocket ()) 3, in which the application of space OnReceive call recvfrom four receive data, the establishment of this socket, and INADDR_ANY bundled 5, call sendto send data
2、创建接收线程,在线程中调用ioctlsocket()判断是否接收到数据,接收到数据时调用OnReceive()(类似CSocket中的OnReceive())
3、在OnReceive中申请空间调用recvfrom接收数据
4、建立发送socket,和INADDR_ANY绑定
5、调用sendto发送数据
-establishment receiving socket, the socket and designated ports bundled with two to create receive threads, Calling the threads ioctlsocket () to decide whether or not to receive data, to receive information call OnReceive () (similar to the OnReceive CSocket ()) 3, in which the application of space OnReceive call recvfrom four receive data, the establishment of this socket, and INADDR_ANY bundled 5, call sendto send data
(系统自动生成,下载前可以参看下载内容)
下载文件列表
udpdemo.cpp
udpdemo.dsp
udpdemo.dsw
UDPServer.cpp
UDPServer.h
一个简单的UDP Server实现.htm
udpdemo.dsp
udpdemo.dsw
UDPServer.cpp
UDPServer.h
一个简单的UDP Server实现.htm