mkdir build && cd build
cmake ..
cmake --build . &> build.log.txt
gcc pi_svr_main.c pi_server.c pi_commons.c ftp_commons.c dtp_commons.c -o ftp_svr -lpthread
gcc pi_cli_main.c pi_client.c pi_commons.c ftp_commons.c dtp_commons.c -o ftp_cli -lpthread
- FTP COMMONS: fonctions de base d'initialisation et gestion de connections client-serveur entre sockets
- DTP COMMONS: macros et fonctions communes à la partie Data Protocol Interpreter
- DTP CLIENT: fonctions propres au client DTP
- DTP SERVER: fonctions propres au serveur DTP
- PI COMMONS: macros et fonctions communes à la partie Protocol Interpreter
- PI CLIENT: fonctions propres au client PI
- PI SERVER: fonctions propres au serveur PI
Test ( using Criterion )
run ctest
in the build folder or execute one of the executable present in the build/test folder
# www.cyberciti.biz/faq/linux-port-scanning/
nc -z -v 127.0.0.1 1-3000