Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Latest commit

 

History

History
46 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.41 KB

cs472-ftp

Written by Jason Carrete ([email protected])

This project contains the source code for both FTP client and FTP server. The questions are answered in the READMEs in the ftpclient/ and ftpserver/ subdirectories. The common/ subdirectory contains source code common to both client and server implementations.

Homework 4 questions are answered in HW4.pdf. See ftpserver/README.md for information on the configuration file, ftps.conf.

This application was built and run on tux using the clang compiler. The following build instructions explain how to compile both the client and server.

Build Instructions

Create a directory for output files in the project root (same location as this README)

mkdir build && cd build

Run cmake to generate a buildsystem

CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=out ../

The app should run fine under the Release build type but if it doesn't, run make edit_cache and change CMAKE_BUILD_TYPE to Debug. If make edit cache doesn't work, then manually edit CMakeCache.txt found in the build directory and update the variable there. Then recompile the app as specified below.

Compile sources and install

make install

Run the client

out/bin/ftpc HOST LOGFILE [PORT]

or server

out/bin/ftps LOGFILE PORT

Running the application with no arguments will print more detailed usage information