Yi Meng tcp file upload download and Automatic Update system introduction (TCP File Transfer)
The system is based on the open source Networkcomms communication framework, which was previously charged, is now free and Kaiyuan, the author is the United Kingdom, the development time of more than 5 years, the framework is very stable.
Project Address: https://item.taobao.com/item.htm?spm=686.1000925.0.0.AjdBGP&id=537538462790
Consulting qq:286275658
Demo Program: HTTP://PAN.BAIDU.COM/S/1GEVFMCR
Server-side operation:
Server-side configuration files:
12345678 |
<?xml version=
"1.0"
encoding=
"utf-8" ?>
<configuration>
<appSettings>
<add key=
"DirectoryPath"
value="D:\"/>
//客户端上传的文件的保存路径
<add key=
"IPAddress"
value=
"127.0.0.1"
/>
//服务器端的IP 需要修改真实的IP
<add key=
"Port"
value=
"6006"
/>
//监听的端口号
</appSettings>
</configuration>
|
Partial code for server-side receive files:
Incomingpartialfiledata Incomingpartialfiledatainfo
.
Part of the code:
SendFile
The client describes how to upload the download file, how to enable the automatic upgrade program
Upload file:
View Code
Download file:
View Code
Upload interface:
Article Address: Www.cnblogs.com/networkcomms
Yi Meng tcp file upload download and Automatic Update system introduction (TCP File Transfer) (a)