基于套接字的局域网内文件传输软件

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于套接字的局域网内文件传输软件

摘要

当今世界科学技术飞速发展,尤其以计算机通信网络为代表的互联网技术更是日新月异,令人眼花燎乱,目不睱接。在计算机与网络迅速发展的今天,借助于网络进行信息资源交流给人们带来了极大的方便。各种文件传输系统都已被广大用户接受。比如QQ、UC、Internet邮件等互联网中运用最为广泛的文件传输工具,但它们之间的文件传输往往对远程服务器有非常大的依赖性,没有彻底实现点对点安全的文件传输。甚至需要花费大量的金钱购买各种移动磁盘或者其他局域网内连接主机的硬件设备。而达到的效果却总是因为传输效率以及安全威胁而受到很大的限制。在这种形势下,开发一个功能简单而实用,并且具有可移植性的局域网内文件传输工具势在必行,信息之间交换技术使用也越来越广泛,比如资料的共享,信息之间的交互,以及文件之间的传输。本论文设计了一个基于linux环境在局域网里实现文件传输的软件,linux环境是如今很公司做软件开始所选着的环境,该软件实现了文件在局域网里的传输,方便了在局域网里内部进行交流,实现信息的同步,进一步提高工作的效率。

关键词:文件传输;套接字;linux网络编程;linux系统

Socket-based file transfer software in the LAN

Liangchunlong

(College of Information Science and Engineering,Jishou University,Jishou,Hunan 416000)

Abstract

In today's world of science and technology rapid development, particularly in the computer communications network of the Internet technology is changing, dizzying Liao chaos head Xia access. In the rapid development of today's computers and network, by means of a network exchange of information resources has brought great convenience to the people. A variety of file transfer system have been accepted by the majority of users. The most widely used file transfer tools such as QQ, UC, Internet Mail, Internet file transfer between them is often a very large dependence on the remote server, not the full

realization of the peer-to-peer secure file transfer. Even need to spend a lot of money to buy a variety of removable disk or LAN connection to the host hardware devices. Would be achieved because the transmission efficiency, and security threats are always subject to considerable restrictions. Under such circumstances, the development of a function is simple and practical, and portability LAN file transfer tool is imperative, the information exchanged between the use of technology are increasingly being used, such as the sharing of information between the information interaction, and file transmission. Designed a linux-based environment, the LAN file transfer software, linux environment is now very company to do the software starts the selected environment, the software to achieve the transmission of files in the LAN to facilitate the internal LAN exchange, information synchronization, and further increase efficiency

Key words:File transfer; socket; linux network programming; the linux system

目录

第一章绪论•1

1.1文件传输的应用背景与概述•1

1.2 开发环境介绍 (1)

.

第二章基本原理

2.1 文件传输的原理 (2)

2.2 文件传输软件的功能实现 (2)

2.2.1 socket函数介绍。。。。。。。2

2.2.2 Socket编程基础重要的数据结构 (6)

2.2.3 Socket提供的系统调用或函数的详细讲解 (6)

2.2.4 使用到的主要函数介绍(bind,listen,accpet) (6)

2.3 软件源代码 (7)

2.3.1 发送端源代码 (8)

2.3.2 接收端源代码 (9)

第三章文件传输软件的使用 (10)

3.1 接收端的使用………

3.2 发送端的使用。。。

3.3 测试结果。。。

第四章设计总结

.

.

.

参考文献•25

相关文档
最新文档