Skip to content
Snippets Groups Projects
Commit 9516e70a authored by rojas's avatar rojas
Browse files

Merge origin/master

parents 40fe9d05 b228d331
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,6 @@ jnlp.signed=false ...@@ -103,7 +103,6 @@ jnlp.signed=false
jnlp.signing= jnlp.signing=
jnlp.signing.alias= jnlp.signing.alias=
jnlp.signing.keystore= jnlp.signing.keystore=
main.class=MV3500Cohort2022MayJune.homework2.Royer.Homework2.java
# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found. # Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found.
manifest.custom.application.library.allowable.codebase= manifest.custom.application.library.allowable.codebase=
# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts. # Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts.
...@@ -114,7 +113,7 @@ manifest.custom.codebase= ...@@ -114,7 +113,7 @@ manifest.custom.codebase=
manifest.custom.permissions= manifest.custom.permissions=
meta.inf.dir=${src.dir}/META-INF meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false mkdist.disabled=false
platform.active=JDK_22 platform.active=default_platform
project.licensePath=../license.txt project.licensePath=../license.txt
run.classpath=\ run.classpath=\
${javac.classpath}:\ ${javac.classpath}:\
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<configuration> <configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3"> <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>Networked Graphics MV3500 assignments</name> <name>Networked Graphics MV3500 assignments</name>
<explicit-platform explicit-source-supported="true"/>
<source-roots> <source-roots>
<root id="src.dir"/> <root id="src.dir"/>
</source-roots> </source-roots>
......
...@@ -33,7 +33,6 @@ public class LennonHW2Client ...@@ -33,7 +33,6 @@ public class LennonHW2Client
// default constructor // default constructor
} }
static String DESTINATION_HOST = "localhost"; static String DESTINATION_HOST = "localhost";
static int MAX_LOOP_COUNT = 4;
/** /**
* Program invocation, execution starts here * Program invocation, execution starts here
...@@ -43,9 +42,7 @@ public class LennonHW2Client ...@@ -43,9 +42,7 @@ public class LennonHW2Client
try { try {
boolean play; boolean play;
Scanner scanner = new Scanner(System.in); Scanner scanner = new Scanner(System.in);
System.out.println(LennonHW2Client.class.getName() + " start, loop " + MAX_LOOP_COUNT + " times");
//for (int loopCount = 1; loopCount <= MAX_LOOP_COUNT; loopCount++) // loop then exit
do{ do{
System.out.println("======================================================="); System.out.println("=======================================================");
System.out.println(LennonHW2Client.class.getName() + " creating new socket ...\n"); System.out.println(LennonHW2Client.class.getName() + " creating new socket ...\n");
......
/**
* TCP Unicast homework assignments supporting the NPS MOVES MV3500 Networked Graphics course.
*
* @see <a href="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/tree/master/assignments" target="_blank">networkedGraphicsMV3500 assignments</a>
* @see java.lang.Package
* @see <a href="https://stackoverflow.com/questions/22095487/why-is-package-info-java-useful" target="_blank">StackOverflow: why-is-package-info-java-useful</a>
* @see <a href="https://stackoverflow.com/questions/624422/how-do-i-document-packages-in-java" target="_blank">StackOverflow: how-do-i-document-packages-in-java</a>
*/
package MV3500Cohort2024JulySeptember.homework2.Lennon;
...@@ -93,7 +93,7 @@ main.class=TcpExamples.TcpExample1Telnet ...@@ -93,7 +93,7 @@ main.class=TcpExamples.TcpExample1Telnet
manifest.file=manifest.mf manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false mkdist.disabled=false
platform.active=JDK_22 platform.active=default_platform
run.classpath=\ run.classpath=\
${javac.classpath}:\ ${javac.classpath}:\
${build.classes.dir} ${build.classes.dir}
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<configuration> <configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3"> <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>Networked Graphics MV3500 examples</name> <name>Networked Graphics MV3500 examples</name>
<explicit-platform explicit-source-supported="true"/>
<source-roots> <source-roots>
<root id="src.dir"/> <root id="src.dir"/>
<root id="src.src.dir"/> <root id="src.src.dir"/>
......
...@@ -51,8 +51,10 @@ public class TcpExample4Client ...@@ -51,8 +51,10 @@ public class TcpExample4Client
// line after 10 sec. // line after 10 sec.
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
// open a socket for each loop // Open a socket for each loop
Socket socket = new Socket(DESTINATION_HOST, 2317); Socket socket = new Socket(DESTINATION_HOST, 2317);
// Note our local port on this client host is not specified - because
// that doesn't matter. It is an "ephemeral" port on localhost.
// Setup. Read the single line written by the server. // Setup. Read the single line written by the server.
// We'd do things a bit differently if many lines to be read // We'd do things a bit differently if many lines to be read
......
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