Skip to content
Snippets Groups Projects
Commit 6ebfac00 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

move Chojnacki directory to assignment

parent c6a1ee90
No related branches found
No related tags found
No related merge requests found
package MV3500Cohort2023MarchJune.Chojnacki;
package MV3500Cohort2023MarchJune.homework1.Chojnacki;
import java.io.*;
import java.net.*;
......@@ -81,7 +81,7 @@ public class Assignment1Client
}
catch (IOException | InterruptedException e)
{
System.err.println("Problem with " + TcpExample3Client.class.getName() + " networking:"); // describe what is happening
System.err.println("Problem with " + Assignment1Client.class.getName() + " networking:"); // describe what is happening
System.err.println("Error: " + e);
// Provide more helpful information to user if exception occurs due to running twice at one time
......@@ -98,7 +98,7 @@ public class Assignment1Client
// program exit: tell somebody about that happening. Likely cause: server drops connection.
System.out.println();
System.out.println(TcpExample3Client.class.getName() + " exit");
System.out.println(Assignment1Client.class.getName() + " exit");
}
}
}
ant -f C:\\x3d-nps-gitlab\\NetworkedGraphicsMV3500\\assignments -Dnb.internal.action.name=run.single -Djavac.includes=MV3500Cohort2023MarchJune/homework1/Chojnacki/Assignment1Client.java -Drun.class=MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client run-single
init:
Deleting: C:\x3d-nps-gitlab\NetworkedGraphicsMV3500\assignments\build\built-jar.properties
deps-jar:
Updating property file: C:\x3d-nps-gitlab\NetworkedGraphicsMV3500\assignments\build\built-jar.properties
Compiling 1 source file to C:\x3d-nps-gitlab\NetworkedGraphicsMV3500\assignments\build\classes
warning: [options] system modules path not set in conjunction with -source 17
1 warning
compile-single:
run-single:
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 1: We are connected to the server!
The message the server sent was: 'This is response 1 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 2: We are connected to the server!
The message the server sent was: 'This is response 2 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 3: We are connected to the server!
The message the server sent was: 'This is response 3 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 4: We are connected to the server!
The message the server sent was: 'This is response 4 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 5: We are connected to the server!
The message the server sent was: 'This is response 5 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 6: We are connected to the server!
The message the server sent was: 'This is response 6 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 7: We are connected to the server!
The message the server sent was: 'This is response 7 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 8: We are connected to the server!
The message the server sent was: 'This is response 8 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 9: We are connected to the server!
The message the server sent was: 'This is response 9 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client creating socket...
======================Assignment1===========================
Client loop 10: We are connected to the server!
The message the server sent was: 'This is response 10 produced by the server, MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server'
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Client exit
BUILD SUCCESSFUL (total time: 10 seconds)
package MV3500Cohort2023MarchJune.Chojnacki;
package MV3500Cohort2023MarchJune.homework1.Chojnacki;
import java.io.*;
import java.net.*;
......@@ -85,7 +85,7 @@ public class Assignment1Server
// Socket pair: (( /0:0:0:0:0:0:0:1, 2317 ), ( /0:0:0:0:0:0:0:1, 54881 ))
// Why is the first IP/port the same, while the second set has different ports?
System.out.println(TcpExample3Server.class.getName() + " socket pair showing host name, address, port:");
System.out.println(Assignment1Server.class.getName() + " socket pair showing host name, address, port:");
System.out.println(" (( " +
localAddress.getHostName() + "=" + localAddress.getHostAddress() + ", " + localPort + " ), ( " +
remoteAddress.getHostName() + "=" + remoteAddress.getHostAddress() + ", " + remotePort + " ))");
......@@ -104,7 +104,7 @@ public class Assignment1Server
numberOfRequests++;
}
} catch (IOException e) {
System.err.println("Problem with " + TcpExample3Server.class.getName() + " networking: " + e);
System.err.println("Problem with " + Assignment1Server.class.getName() + " networking: " + e);
// Provide more helpful information to user if exception occurs due to running twice at one time
if (e instanceof java.net.BindException) {
......
ant -f C:\\x3d-nps-gitlab\\NetworkedGraphicsMV3500\\assignments -Dnb.internal.action.name=run.single -Djavac.includes=MV3500Cohort2023MarchJune/homework1/Chojnacki/Assignment1Server.java -Drun.class=MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server run-single
init:
Deleting: C:\x3d-nps-gitlab\NetworkedGraphicsMV3500\assignments\build\built-jar.properties
deps-jar:
Updating property file: C:\x3d-nps-gitlab\NetworkedGraphicsMV3500\assignments\build\built-jar.properties
Compiling 1 source file to C:\x3d-nps-gitlab\NetworkedGraphicsMV3500\assignments\build\classes
warning: [options] system modules path not set in conjunction with -source 17
1 warning
compile-single:
run-single:
MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server has started...
Server loop 1: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55884 ))
note HostName matches address if host has no DNS name
Server loop 2: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55885 ))
note HostName matches address if host has no DNS name
Server loop 3: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55886 ))
note HostName matches address if host has no DNS name
Server loop 4: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55887 ))
note HostName matches address if host has no DNS name
Server loop 5: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55888 ))
note HostName matches address if host has no DNS name
Server loop 6: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55889 ))
note HostName matches address if host has no DNS name
Server loop 7: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55890 ))
note HostName matches address if host has no DNS name
Server loop 8: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55891 ))
note HostName matches address if host has no DNS name
Server loop 9: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55892 ))
note HostName matches address if host has no DNS name
Server loop 10: MV3500Cohort2023MarchJune.homework1.Chojnacki.Assignment1Server socket pair showing host name, address, port:
(( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 2317 ), ( 0:0:0:0:0:0:0:1=0:0:0:0:0:0:0:1, 55893 ))
note HostName matches address if host has no DNS name
BUILD SUCCESSFUL (total time: 4 minutes 53 seconds)
\ No newline at end of file
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