ivorob / ftpserver

FORK FOR REFACTORING - Simple ftp server written in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple ftp server

ftpserver

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?

Building

To build run the following commands:

mkdir build
cd build
cmake -G "Unix Makefiles" ..
cmake --build .

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
user username login as user username, dummy implemented
syst get system type without system version
pasv get data connection port, dummy implementation without data connection
pwd prints the current working directory on the server
cwd dir changes the current working directory on the server to the specified one
bye terminates the connection the command is received on
quit same as disconnect

TODO

About

FORK FOR REFACTORING - Simple ftp server written in C++

License:Apache License 2.0


Languages

Language:C++ 93.6%Language:CMake 5.7%Language:C 0.7%