Coder Social home page Coder Social logo

gongzq5 / lftp Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 6.13 MB

Use Java Socket API (Based on UDP) to develop a protocol that works like TCP, including reliable transfer, flow control, and congestion control. | 使用基于UDP的Java Socket API 实现TCP的功能,主要包括可靠传输、流量控制、拥塞控制.

Java 100.00%

lftp's Introduction

LFTP

一个文件传输系统,使用CS结构,分为服务器和客户端两个程序。

运行

服务器部分

服务器端运行lftp包中的ServerUI.java程序。 我们提供了导出的jar包,命名为LFTPServer.jar,可以使用

$ java -jar LFTPServer.jar

运行该服务器程序,程序默认绑定在5066端口上。

客户端部分

客户端运行lftp包中的Client.java程序。

我们同样提供了导出的jar包文件,命名为LFTPClient.jar,可以使用

$ java -jar LFTPClient.jar

运行客户端程序,程序提供命令行的UI。

获取文件命令

LFTP > lget serverIP serverPort fileName

Example:

LFTP > lget 120.77.155.38 5066 test\\src10m.txt

即连接到服务器,指定其地址为120.77.155.38,端口为5066,从此获取test\src10m.txt文件到本地

上传文件命令

LFTP > lsend serverIP serverPort fileName

Example

LFTP > lsend 120.77.155.38 5066 test\\src10m.txt

即连接到服务器,指定其地址为120.77.155.38,端口为5066,从本地传输test\src10m.txt文件到服务器上

lftp's People

Contributors

gongzq5 avatar hhyx avatar

Stargazers

 avatar  avatar  avatar 奔跑的艺方 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.