Write a simple active ftp server program

Assignment Help Programming Languages
Reference no: EM131184453

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 <filename>
put <filename>

- 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

Reference no: EM131184453

Questions Cloud

Are deductive arguments more or less valid : Are deductive arguments more or less valid? That is, are deductive argument valid to a degree? Or is there no middle ground between validity and invalidity, the way there is with inductive arguments which may be strong to a degree
Create a research hypothesis based on the information : Create a research hypothesis based on the information provided in each scenario. You will be given a data set with two sets of interval data (just the numbers, as you must decide what they represent, such as method A results or method B results)
Create robust interaction and dialogue : Classroom discussion in an online environment requires the active participation of students and the instructor to create robust interaction and dialogue.
Sketch the production delivery system : Sketch the production-delivery system used by CMAX.com-Sole mates, Inc., in providing custom tennis shoes.- Could this approach be applied to other consumer goods?
Write a simple active ftp server program : 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.
Compare forecasts using a three period moving average : Compare forecasts using a three-period moving average,  exponential smoothing with a  0.2, and linear regression. Using MADand MSE, which forecasting model is best?
Analyze the emerging security threats presented : Analyze the emerging security threats presented within the "Security Threat Report 2014" report. Analyze the major threats to mobile devices, and suggest at least two methods to mitigate the concerns.
What are some of the key tenets of existential psychology : What are some of the key tenets of existential psychology? The significant of Carl Rodger's contribution to the field of psychology. What is client-centered therapy
Analyze five google technologies that are under research : Analyze five Google technologies that are current under research and development, including the self-driving automobile and four other technologies of your choice.

Reviews

Write a Review

Programming Languages Questions & Answers

  Application for calculation

Which school had the most kids playing basketball

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Create a java application named distancecalculator1

Create a Java application named DistanceCalculator1.java to solve the following problem. An application is needed to allow a user to enter two cities and display the distances between them.

  Write unix shell script to check file in current directory

Write Unix shell script (one program) called Project1_lastname (your lastname). This script will do the following tasks: Using "if" statement checks for a file called "student.txt" in current directory.

  Describe program which converts fahrenheit to celsius

Create the following program which converts Fahrenheit to Celsius. Your program must have the following functions: Read integer Fahrenheit temperatures from the user. You need to check whether the input is the correct one or not. If the user enters..

  Progarm to calculate unit price for products sold

Manager of Super Supermarket would like to be able to calculate unit price for products sold there. To do this, program must input name and price of the item and its weight in pounds and ounces.

  Desigh program that enters first and second number

Desigh a program which enters first and a second number. First and second number which will be entered should be computed in halves, quarter, double, and square using JoptionPane input dialog.

  Create the logic for a program that accepts an annual salary

Create the logic for a program that accepts an annual salary as input pass the salary to a method that calculate the highest monthly housing payment the user can afford assuming that the year's total payment is no more than 25 percent of the annua..

  Write a program that replies either leap or not a leap year

Write a program that replies either Leap Year or Not a Leap Year, given a year. It is a leap year if the year is divisible by 4 but not by 100 (for example, 1796 is a leap year because it is divisible by 4 but not by 100).

  Write a perl program to parse out the file

Do a search for the term "anthrax" in PubMed. Then search the Protein and Nucleotide databases -

  Writing program of long term parking

Write an enitre program about the long term parking, and calculate the parking total fare.

  Top-down modular approach and pseudocode to create program

Use top-down modular approach and pseudocode to create a appropriate program to solve it. Where suitable, use defensive programming techniques. Give both pseudocode and flow chart algorithms.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd