在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:KuaiChuan开源软件地址:https://gitee.com/mayubao2015/KuaiChuan开源软件介绍:KuaiChuan(仿茄子快传)仿茄子快传的一款文件传输应用, 涉及到Socket通信,包括TCP,UDP通信。(喜欢的给一个star, 有帮助的给一个fork, 欢迎Star和Fork ^_^) 下载 点击下载去下载应用。 效果预览主页文件发送端文件接收端网页传(20161218新增)原理快传有两种方式可以传输文件:
第一种方式主要是是通过设备间发送文件。 文件传输在文件发送端或者是文件接收端通过自定义协议的Socket通信来实现。由于文件接收方和文件发送方都要有文件的缩略图,这里采用了header + body的自定义协议, header部分包括了文件的信息(长度,大小,缩略图), body部分就是文件。 第二种方式主要是在android应用端架设微型Http服务器来实现文件的传输。这里可以用ftp来实现,为什么不用ftp呢?因为没有缩略图,这是重点! 测试(必须在真机下测试)在Android测试机 分别是 魅蓝2 与 华为 SCL-TL00, Vivo xs1 运行正常 感谢google: http://www.google.com stackoverflow http://stackoverflow.com/ 版本v1.0完成了Android端到Android端的文件传输 v1.1完成了网页传模块的功能 issueQQ:345269374 Email:[email protected] LicenseCopyright 2016 mayubaoLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. |
请发表评论