Skip to content
Snippets Groups Projects
Commit a14bcec5 authored by coltonfetterolf's avatar coltonfetterolf
Browse files

No commit message

No commit message
parent bd4e7cda
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@ public class FetterolfHomework2Client {
try {
while (true) {
//altered the socket creation piece
System.out.println("Homework 2 is creating socket...");
// We request an IP to connect to ("localhost") and
......@@ -48,6 +49,7 @@ public class FetterolfHomework2Client {
// from the server instead of one only.
serverMessage = br.readLine();
System.out.println("==================================================");
//changed the connecting lingo
System.out.println("Sweet, looked like we're connected!");
System.out.println("The message the server sent was: '" + serverMessage + "'");
// socket gets closed, either automatically/silently by this code (or possibly by the server)
......
......@@ -50,6 +50,7 @@ public class FetterolfHomework2Server {
// Now hook everything up (i.e. set up the streams), Java style:
os = clientConnection.getOutputStream();
ps = new PrintStream(os);
//changed what the server says to the client in response
ps.println("Yo what up. "); // this gets sent back to client!
// Print some information locally about the Socket connection.
......
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment