Code Monkey home page Code Monkey logo

ftpserver's Introduction

Simple ftp server

What is it and what does it do?

It is a simple ftp server written in C++. It comes without any warranties of any kind.

How to use?

Compile it

Compile it by using the make all command. If all went well, an executable file named ftpserver should have been generated.

Run the server

You can execute the executable generated in the compilation step by ./ftpserver.

Command-line options are as follows:

ftpserver server root directory, default=./ port to listen on for incoming connections, default=4242 telnet mode for use with telnet client, default=false

To shut down, press Ctrl+C.

While it is running, a ftp client can connect to it.

Usage reference

Available commands in the program that the client can issue and the running ftpserver will respond to:

Command Explanation
browse lists all files and directories in the current server working directory
ls dir lists all files and directories in the specified directory
download file sends the binary data of the specified file over the connection the command was received
upload file stores all binary data that is received by the connection the command was received
pwd prints the current working directory on the server
cd dir changes the current working directory on the server to the specified one
touch file create an empty file of the given name
mkdir dir creates a directory of the specified name in the current server working dir
rmdir dir removes the specified directory and all contents at the server side
delete file deletes the specified file at the server side
getparentdir returns the parent directory of the current working dir
getsize file returns the size in bytes of the specified file
getsize dir returns the content count, the number of subdirectories and files in the specified directory
getaccessright file or dir returns the numeric unix permission for a specified file or directory
getlastmodificationtime file or dir returns the time of the last modification for a specified file or directory
getowner file or dir returns the file or directory owner
getgroup file or dir returns the file or directory group
bye terminates the connection the command is received on
quit same as disconnect

To-do

ftpserver's People

Contributors

dahoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ftpserver's Issues

What is nbproject???

I get these issues while execute make:

$ make
makefile:106: nbproject/Makefile-impl.mk: No such file or directory
makefile:109: nbproject/Makefile-variables.mk: No such file or directory
make: *** 没有规则可以创建目标“nbproject/Makefile-variables.mk”。 停止。

More details on how to use?

I really like the simplicity of your repository, but as someone who is not as familiar with the command line as I wish I would, could you please tell me more in the README about this (besides the command arguments)?

One thing I would like to know, additionally, is how (or if) it can send files to other computers. Would you be able to supply this information?

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.