Giter VIP home page Giter VIP logo

ftp's Introduction

执行说明:
	两个文件夹分别执行make后生成两个可执行文件:client server
	先在一个终端执行server文件夹中的server
		先转换为root用户,再执行./server ip port
	之后在另一个终端执行client文件夹中的client
		./client ip port		
说明:client和server的ip都是服务器端的ip,并且两端的端口号一致才可以。
使用说明:
	先在client端登录
		用户名:user1
		密码:123
	之后client端可以执行:
		指令                              说明
		ls                           查看server端当前目录的文件
		pwd                          查看client所在的server端的当前路径
		removefilename               删除server端filename文件
		cdpath                       进入到server端的path路径里面(path必须是绝对路径)
		getsfilename                 从server端下载filename文件到client端
		putsfilename                 从client端上传filename到server端
		其他指令                     一律当做无效指令
问题说明:
	一、指令与作用对象之间不能有空格:一旦有空格就会被当做两条指令来处理,如:gets filename会被当做 gets和filename两个指令
	二、断点续传功能的不完全实现:什么是断点续传?
		在客户端登录后执行:getsfilename
		然后随便输入几个字符暂停下载:asdfadsf
		之后继续下载:getsfilename
		这样问题就出现了:第二次下载时,文件会下载到一半就出现地址错误而无法继续下载。

添加文本查询的模块(C++):
目前该模块并没有合并到住模块中,仅实现了文本查询的功能并通过了单元测试。该模块的原型是C++ Primer的第15章的实例。这个实例对我的
启发非常大。让我感受到继承后使用多态机制的巨大好处。但是我需要更多的时间去理解如何利用继承去思考问题。

下个目标:使用C++重写主模块,实现服务-客户的通讯。


	

ftp's People

Contributors

fineday4 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.