登录
首页 » Visual C++ » SendFileClient

SendFileClient

于 2014-06-03 发布 文件大小:46KB
0 309
下载积分: 1 下载次数: 7

代码说明:

  VC++实现类似于QQ文件传输功能的文件发送与接收程序示例,分为服务端和客户端,客户端首次接收数据,将判断文件包大小,数据包中一定包含完整的数据包结构信息,数据不一定完整;读取数据包的大小,包含数据包结构大小和数据大小,之前接收的数据与现在接收的数据能够构成至少一个完整的数据包,文件接收完毕则设置结束标记,若终止的连接,则弹出窗口告诉用户,对方终止了文件传送。   服务端程序是比较简单的,基本是复制文件数据、判断文件是否传递成功、等待对方收受发送任务或取消发送任务,分包继续发送文件等功能(VC++ implementation is similar to QQ file transfer capabilities to send and receive files program examples, divided into server and client, the client receives the first data packet to determine the file size, the packet must contain the complete information packet structure, the data is not must complete reading packet size, including the size and structure of the data packet size, and previously received data received data can now constitute at least one complete packet, the file has been received then set the mark, if the connection is terminated, the pop-up window telling the user, the other party to terminate the file transfer. Server program is relatively simple, basically copying the file data, to determine whether the file transfer is successful, waiting for the other to accept or cancel the sending task sends tasks, subcontractors continue to send files and other functions )

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

发表评论

0 个回复

  • Winpcap-demo
    一个简单的Winpcap抓包示例程序,能显示多网卡信息,能分别数据链路层和网络层的报文信息(A simple Winpcap packet capture sample program can display a multi-card information, respectively, the data link layer and network layer packet information)
    2012-04-17 10:41:20下载
    积分:1
  • QQ
    说明:  模仿qq的一个小程序,值得VC++初学者学习(Qq imitate a small program, it is worth learning VC++ beginners)
    2011-12-08 17:03:33下载
    积分:1
  • NetPhone
    用VC开发的网络语音电话,希望对您的开发有所帮助。(VC network with the development of voice calls, and they hope to be helpful to your development.)
    2009-04-09 10:00:07下载
    积分:1
  • CloseWindow
    一个监控网卡的程序。功能如果网卡掉线,电脑自动关机(A monitoring procedure for the network card. Function if the network card offline, the computer automatically shuts down)
    2008-07-17 13:27:47下载
    积分:1
  • WSSAMPLE
    Project that describe how use Windows Socket
    2010-06-02 11:20:25下载
    积分:1
  • ping_sourceCode
    说明:  PING程序源码有记录路由功能,希望对你们有帮助(PING record procedures source routing function, and I hope to help you)
    2006-04-01 01:06:07下载
    积分:1
  • 12084247tao2
    基于ICMP协议的ping程序设计实验基于ICMP协议的ping程序设计实验(Based on the ICMP protocol ping program designed experimental program designed experiments based on the ICMP protocol ping)
    2012-10-29 10:54:54下载
    积分:1
  • huoqu
    获取本地计算机信息的小代码,比较简单,适合初学网络编程(a simple program of geting information from computer)
    2013-11-28 23:56:56下载
    积分:1
  • Client
    VC++ 2008客户端实现 可以模拟多个服务器链接(VC++ 2008 client implementation can simulate multiple servers link)
    2012-10-02 03:31:21下载
    积分:1
  • socket
    SOCKET通信,一个服务端,一个客户端的通信。(SOCKET communications, a server, a client communication.)
    2013-11-04 16:50:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载