Question
Need to make a 'simple' ftp client/server coded in java, only problem is i know very little java and even less about socket programming so
Need to make a 'simple' ftp client/server coded in java, only problem is i know very little java and even less about socket programming so after failed attempts at trying to research how to do this, i ended up here. instructions quoted below.
"You are asked to develop a simple file transfer protocol. The protocol is based on client-server architecture. The client will connect to the server, sending user name and password for authentication (No encryption needed. Sending over plain TCP connection is fine). After passing authentication, the client will be able to download/upload files, list the files in the current directory at the server, and change the current directory to other directory at the server. After the client sends a request, the server should respond with some information to indicate if the request is processed or not. The server should also be able to serve another client after the current client logout. You are required implement BOTH client and server sides. And your protocol should be able to transfer BOTH ASCII and binary files. You may refer to the FTP protocol for possible design options and typical commands. But no need to strictly follow or fully implement the FTP protocol. You can design your own protocol. No GUI is required. A command line based UI is good enough.
ONLY use bare socket programming (NOT allow any other supportive libraries/packages such as HTTP or FTP classes)."
it is assumed that we only have one computer to run both the server and the client so the use of localhost instead of specific ip addresses is recommended.
thanks in advance to anyone who takes the time to answer this.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started