文件名称:SendFileClient
介绍说明--下载内容均来自于网络,请自行研究使用
VC++实现类似于QQ文件传输功能的文件发送与接收程序示例,分为服务端和客户端,客户端首次接收数据,将判断文件包大小,数据包中一定包含完整的数据包结构信息,数据不一定完整;读取数据包的大小,包含数据包结构大小和数据大小,之前接收的数据与现在接收的数据能够构成至少一个完整的数据包,文件接收完毕则设置结束标记,若终止的连接,则弹出窗口告诉用户,对方终止了文件传送。
服务端程序是比较简单的,基本是复制文件数据、判断文件是否传递成功、等待对方收受发送任务或取消发送任务,分包继续发送文件等功能。
-VC++ QQ file transfer capabilities to achieve similar file send and receive 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, the previously received data and present the data received at least be able to constitute a 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.
服务端程序是比较简单的,基本是复制文件数据、判断文件是否传递成功、等待对方收受发送任务或取消发送任务,分包继续发送文件等功能。
-VC++ QQ file transfer capabilities to achieve similar file send and receive 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, the previously received data and present the data received at least be able to constitute a 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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SendFileClient\SendFileClient\ClientSock.cpp
..............\..............\ClientSock.h
..............\..............\ReadMe.txt
..............\..............\res\SendFileClient.ico
..............\..............\...\SendFileClient.rc2
..............\..............\resource.h
..............\..............\SendFileClient.aps
..............\..............\SendFileClient.clw
..............\..............\SendFileClient.cpp
..............\..............\SendFileClient.dsp
..............\..............\SendFileClient.dsw
..............\..............\SendFileClient.h
..............\..............\SendFileClient.rc
..............\..............\SendFileClientDlg.cpp
..............\..............\SendFileClientDlg.h
..............\..............\StdAfx.cpp
..............\..............\StdAfx.h
..............\........Server\ReadMe.txt
..............\..............\res\SendFileServer.ico
..............\..............\...\SendFileServer.rc2
..............\..............\resource.h
..............\..............\SendFileServer.aps
..............\..............\SendFileServer.clw
..............\..............\SendFileServer.cpp
..............\..............\SendFileServer.dsp
..............\..............\SendFileServer.dsw
..............\..............\SendFileServer.h
..............\..............\SendFileServer.rc
..............\..............\SendFileServerDlg.cpp
..............\..............\SendFileServerDlg.h
..............\..............\ServerSock.cpp
..............\..............\ServerSock.h
..............\..............\StdAfx.cpp
..............\..............\StdAfx.h
..............\........Client\res
..............\........Server\res
..............\SendFileClient
..............\SendFileServer
SendFileClient