Skip to content

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

License

Notifications You must be signed in to change notification settings

ivorob/ftpserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published