登录
首页 » Windows Socket编程 » CUdpSocket是为了简化发送,解析UDP 数据报所提供的一个基类。这个类封装了基于SOCK_DGRAM的大部分基本操作。这个类提供两种工作模式,一种是和实...

CUdpSocket是为了简化发送,解析UDP 数据报所提供的一个基类。这个类封装了基于SOCK_DGRAM的大部分基本操作。这个类提供两种工作模式,一种是和实...

于 2023-07-22 发布 文件大小:126.03 kB
0 167
下载积分: 2 下载次数: 1

代码说明:

CUdpSocket是为了简化发送,解析UDP 数据报所提供的一个基类。这个类封装了基于SOCK_DGRAM的大部分基本操作。这个类提供两种工作模式,一种是和实际处理UDP 数据报的功能紧耦合,这需要通过继承实现,同时设置workmode 为auto_receive(参见SetWorkdMode),另外一种是直接作为单独对象出现,此时用户需要使用Recv成员函数自己处理数据的接收。-CUdpSocket is to simplify this, the analytical data reported by the UDP with a base class. This type of packaging based SOCK_DGRAM the most basic operation. This provides two types of work, is a practical and UDP data processing function of tight coupling, it needs to achieve through inheritance, as set workmode auto_receive (see SetWorkdMode), the other is directly emerging as a separate object, users need to use this member function since Recv others receiving data processing.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 完成端口网络服务
    完成端口网络服务-complete port network services
    2022-08-25 09:24:30下载
    积分:1
  • a neighbor can access online code, through access to the mainframe are able to a...
    一个可以获取网上邻居的代码,通过获取的主机名可以得到相应的IP地址,并且可以从本地向所获取的机器发送数据。-a neighbor can access online code, through access to the mainframe are able to access the corresponding IP addresses, as well as from local access to the machine by sending data.
    2023-07-15 01:15:03下载
    积分:1
  • 网络入门的一个实践好序,正在学VC的朋友可以看一下
    网络编程入门的一个实践好程序,正在学VC的朋友可以看一下-Network Programming entry of a good practice procedures, is studying VC friends can look at the
    2022-05-07 03:00:21下载
    积分:1
  • 市场房贷首付但是赶得上赶得上广泛的感豆腐干豆腐干豆腐干豆腐干地方...
    市场房贷首付但是赶得上赶得上广泛的感豆腐干豆腐干豆腐干豆腐干地方-fsdfdsfds
    2022-07-20 06:30:03下载
    积分:1
  • 小型聊天系统原代码
    小型聊天系统原代码-small chat system source code
    2022-01-23 11:02:50下载
    积分:1
  • 使用python写的ping序,ping大家都比较清楚了吧
    使用python编写的ping程序,ping大家都比较清楚了吧-Ping prepared using procedures python
    2022-04-27 00:28:05下载
    积分:1
  • 局域网的一个信息交换平台,可用于网间交换信息
    局域网的一个信息交换平台,可用于网间交换信息-a LAN information exchange platform for the exchange of information between network
    2022-06-02 20:13:10下载
    积分:1
  • 我一朋友作的云南省楚雄州局通讯录,现在公安专网上运行中,很好用...
    我一朋友作的云南省楚雄州局通讯录,现在公安专网上运行中,很好用-a friend of the Chuxiong in Yunnan Bureau correspondence, public security professionals online operations, is useful
    2022-06-12 05:48:58下载
    积分:1
  • P2P c++ sdk
    P2P dll c++ ,  static emReturnType SetAppType(emAppType AppType);//设置程序类型,服务器emAppType_Server或者客户端emAppType_Client  static emReturnType SetClientCallback(IMsgCallback *pMsgCallback);//设置回调类,回调类继承IMsgCallback接口  static emReturnType Startup();//开启网络  static emReturnType Cleanup();//关闭网络  //Server  以下函数是服务器调用  static emReturnType BeginService(unsigned short nPort);//如果是服务器,调用该函数开启服务,nPort:端口号  static emReturnType EndService();//服务器退出的时候,调用该函数关闭服务  //Client  以下函数是客户端调用  static emReturnType Logon(LOGONINFO* pLogonInfo);//函数登录服务器。pLogonInfo:登录信息,详细见P2PHeaderDef.h->LOGONINFO  static emReturnType Logout();//登出服务器  static emReturnType ConnectAnchor(CLIENTINFO* pClientInfo);//连接主播,该函数是用户调用  static emReturnType SendP2PMSG(CLIENTINFO* pClientInfo, char* pszMsg, int nMsgLen);//发送P2P消息,pClientInfo,要发送的客户信息,如果是用户,则pClientI
    2022-02-03 19:54:38下载
    积分:1
  • socks5简易实现
    socks5简易实现-socks5 simple realizes
    2022-02-25 19:14:35下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载