The server must be able to process user pass list retr stor


Socket programming - FTP server (Active Mode)

Requirements

Your main task is to write a simple Active FTP server program using windows sockets. The server must be able to process USER, PASS, LIST, RETR, STOR and QUIT command requests from an FTP client that is available in the Windows operating system.

- Your FTP server program must be RFC 959 protocol-, IPv4- and IPv6-compliant in terms of data structures used. Avoid data structures that work only on IPv4 addresses.

- Your server must be able to accept an optional ephemeral port to listen to, as one of its arguments (e.g. FTPserver 1155)

- If the port number is not specified, use port 1234 as default.

- It will be tested using a Windows 7 FTP user agent, using simple commands such as:
dir
get
put

- Assume that the files exchanged are text files only (ASCII encoding)

- For testing purposes, include one authorized user entry in your server with the user name: napoleon, and password: 334

Guidelines

Learn about the protocol commands and response messages that need to be issued. Refer to materials provided in the stream web site (i.e. RFC 959, lecture slides, sample codes). It is also highly recommended that you try to interact with a real ftp server (ftp.massey.ac.nz), to see how it actually responds to your requests.

Remember that the FTP protocol requires two parallel TCP connections: one in port 21 and a data connection in port 20. The machines in the lab may not allow users to bind applications on these ports. Therefore, your program should allow for any valid ephemeral port i.e. [1024, 65535] as an alternative port number.

Attachment:- Code.zip

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: The server must be able to process user pass list retr stor
Reference No:- TGS01566685

Expected delivery within 24 Hours