Java Assignment

qrrrib
timer Asked: May 2nd, 2014

Question Description

I am wanting the following tasks completed please, cheers :)

Projects.docx

Checks.docx

Unformatted Attachment Preview

Projects All projects are console applications All projects must be written in Java. 1. Hello Server – UDP 2. File Server – TCP 3. Chat Program 4. Bonus (if chat messages are encrypted) Hello Server – UDP Server Part Runs in a loop When a request comes in it returns “Hello, my name is …………. And my Id is …………” Client Part Receives IP and port at command line Connects to server Makes request Displays response on screen File Server - TCP Server Part Runs in a loop Receives request in the format “Send myfile.txt” Sends file to client Closes connection Waits for another request Client Part Receives IP, port and filename at command line Connects to server Makes request and receives file. Stores file in local folder Notes: Must handle large files Must handle files other than text files. Chat Program - UDP Peer to peer architecture Once software runs o A list of valid peers are read from file o The peers are displayed on the screen, one per line In the format “Peer 1, Fred ” o Any message typed at the screen is sent to all peers o Any message received from a peer should be displayed on the screen o Messages displayed should be in the format “Buzz Hi…” o Both sent and received messages should be displayed o Unauthorized contacts should result in the following message being displayed (once only per IP) “Unauthorized chat request from ” o All in and out going messages should be in one command window o If a message from unauthorized chatter arrives it should be rejected Check list General Testing requirements – Applicable to all parts Code has been tested on virtual machines in EN Lab Code has been tested on real machine in EN Lab Comments – Applicable to all parts Each Class has a comment at the top that includes the description of what it does your name and ID. Each method has a header describing what it does, and includes @param, @return and @exception There are comments throughout the code explaining how it works All comments follow javadoc requirements References All code that has been adapted from or directly copied from other sources must clearly show the source. This should be done at the top of any method that it applies to. Example 1 // this code has been adapted from code found at this source //http://www.youtube.com/watch?v=Q0ue-T0Z6Zs, accessed 27 April, 2014 Checks for Part A - Hello Server ___ Has been written using UDP The server, once started ___ runs in a loop and ___ can respond to multiple different requests. When the client program is run ___ IP and the port of the server are entered at the command line For example, java ClientProgram 127.0.0.1 4001 ___ IP and port number are validated (poor input will not crash program) ___ The client receives your ID and Name and displays it on the console. ___ Other clients, on the same machine, or other machines may also make the request and get a response. Check for, Part B - File Server Server Part ___ Has been written using TCP ** ___ (1) Has the ability to work with multiple clients without being restarted When file name is received ___ (1) validates file request string without crashing ___ (1) locates file ___ (1) sends file back to client ___ (1) closes connection Client Part ___ (1) is started at the command line at time program starts ___ (1) receives IP, port and filename at command line ___ (1) validates strings received at command line ___ (1) connects to server ___ (1) makes request and receives file. ___ (1) stores received file in local folder ___ ___ ___ (3) Test 1 – small text file ** (3) Test 2 – mp3 file (-5) (3) Test 3 – large image (-5) Checks for , Part C Chat Program - UDP Testing Deploy software on at least four machines (may be virtual or real network) ___ ** The software on each machine is the same and there is no central server ___ (2) Peer list is read from file ___ (2) Peer list is displayed correctly on screen In the format “Peer 1, Fred ” Type message on one machine and view display on other computers On sending Machine ___ (1) is displayed , ___ (1) is displayed correctly Buzz Hi…” On receiving Machines ___ (2) is displayed , ___ (2) is displayed correctly ___ (3) Chat is exchanged between clients without error and in the manner expected Run software on machine without approved IP ___ (1) Rejected message is displayed correctly “Unauthorized chat request from ” ___ (1) No message displayed on second attempt __ ** Only one command line window used for all interactions __ (-5) The code is carefully and meticulously documented Part D - Bonus (if chat messages are encrypted) Testing ___ understands and can explain where, how and when code is encrypted ___ understands and can explain how keys are used ___ code is actually encrypted (show by capturing a frame using Wireshark) ___ all code is documented
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Similar Content

Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors