登录
首页 » Visual C++ » SendFileClient

SendFileClient

于 2014-06-03 发布 文件大小:46KB
0 229
下载积分: 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 个回复

  • zgy-server
    说明:  用VC6写的简单控制台服务器端程序,学习用。(with VC6 write a simple console server software, to study.)
    2006-04-12 14:39:50下载
    积分:1
  • IPMonitor
    本程序可以用来监控本地网络,捕获一段时间内以本机为源地址或目的地址的IP数据包(不包括以广播形式发出的数据包),统计IP数据包的信息,列出本机与其他主机之间不同协议类型IP数据包的流量。(This procedure can be used to monitor the local network, capturing a period of time to this machine as the source or destination addresses of IP packets (including broadcast packets sent), statistics of IP packets, lists the machine with The flow of data packets IP between different protocol types in other hosts.)
    2020-11-02 23:29:53下载
    积分:1
  • hashkey
    利用哈希运算产生服务端和客户端的通信密钥( Produces the service end and the customer end correspondence key using the Hasche operation )
    2004-07-08 10:27:55下载
    积分:1
  • LiveZilla_3.1.8.6
    免注册QQ/MSN号码,直接在网页上聊天/通话/视频,最佳在线客服.(Live Support)
    2010-05-18 17:35:55下载
    积分:1
  • MyPing
    网络延迟测试工具。测试出网络速度带宽,大小( Network latency test)
    2016-05-28 11:02:21下载
    积分:1
  • LanTalk_sources
    Currently, most of people use MS DCOM/COM+, Java Bean/RMI, and Corba to do distributed computing over internet. All of these technologies are provided with some tools and intermediate objects to simplify internet development. However, these technologies have one common and fundamental problem that all of the calls between a client and a server are blocked for a returned result (please correct me if this is wrong). A client stays still, and has to wait for a while after sending a request to a server. If the request is a lengthy action, the client application seems to be dead to a user. In most cases, we could use a worker thread at the client side to do background computation for solving this problem. However, this comes with an expensive price, more coding, data synchronization and mess in coding logic. Additionally, I also doubt that these technologies are able to really move data across internet efficiently.
    2009-06-27 15:00:43下载
    积分:1
  • fx
    说明:  以网络通讯为基础,客户端输入指令,得到反馈,在客户端和服务器端显示opengl模型,并控制模型的运动(base on the communication of network,client type the key ,the sever respond at the same time client and the sever show the live result on the screen.)
    2011-05-04 17:04:09下载
    积分:1
  • ping_Alexei
    有关Ping使用的例子(the Ping examples of usage)
    2004-09-25 10:39:47下载
    积分:1
  • Single-threaded-file-transfer
    实现单线程文件传输,不支持断点传出,功能相对简单,但是性能很好。(Achieve single-threaded file transfer, does not support breakpoints spread, function is relatively simple, but the performance is very good.)
    2013-06-11 12:51:41下载
    积分:1
  • http
    基于HTTP的入侵检测程序,运行前需先装winpcap。(HTTP-based intrusion detection procedures, first installed before running winpcap.)
    2021-03-29 20:29:10下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载