Lab12a - Lab 12 Networking By the end of this lab you will have modified two JAVA programs that use networking calls to pass information back and

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 12: Networking By the end of this lab, you will have modified two JAVA programs that use networking calls to pass information back and forth. Get the files Dog.java and DogServer.java from CourseSite. In those programs, the DogServer puts out the question, "If you met me, would you shake my hand or sniff it?" and then waits for the Dog program to send it the answer. If your answer contains the word “sniff” then it assumes that whoever is running the Dog program is a dog, otherwise it assumes the user is a human (or an AI experiment). For the first step, compile and run both of these programs on your system. To run the DogServer, you need to go to Start->Accessories->Command Prompt and run the command window. You will need to change directory to wherever your DogServer.class file is located. For instance, I did this with it on my desktop, so I did “cd Desktop<enter>” in my window. Then you can type java DogServer at the command prompt to run your server. Verify that they are working by trying different responses
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/09/2012 for the course BIO 1 taught by Professor Smith during the Spring '11 term at Cuyahoga CC.

Page1 / 2

Lab12a - Lab 12 Networking By the end of this lab you will have modified two JAVA programs that use networking calls to pass information back and

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online