Realize the Internet connection between the server and clients. Start the server and client by typing ./ftpserver ../conf/server.conf and ./client [ip] [port] on bash respectively.
In Phase I, the client provides more than six clauses similar to bash commands. The fundamental commands are listed as below:
cd- change directoryls- list files and directoriesputs- upload local files to the servergets- download files from server to clientremove- delete files on the serverpwd- print working directory- other commands such as
mkdirand etc.
In this phase, clauses 1 to 6 will be correctly responded. User types a clause on client and presses enter to send it to the server. The command should be pretreated and checked before being sent to the server. Server executes commands after receiving. The result of command execution will be sent to the client and output to the user.