Skip to content
Snippets Groups Projects
Commit 12001e62 authored by brutzman's avatar brutzman
Browse files
parents ea86f17d 11710f5e
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,8 @@ file.reference.dis-enums-1.3.jar=../lib/dis-enums-1.3.jar
file.reference.guava-28.0-jre.jar=../lib/guava-28.0-jre.jar
file.reference.open-dis7-entities-all.jar=../lib/open-dis7-entities-all.jar
file.reference.open-dis7-java.jar=../lib/open-dis7-java.jar
file.reference.open-dis7-javadoc.jar=../lib/open-dis7-javadoc.jar
file.reference.open-dis7-source.jar=../lib/open-dis7-source.jar
file.reference.open-dis_4.16.jar=../lib/open-dis_4.16.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
......@@ -48,6 +50,8 @@ jar.index=${jnlp.enabled}
javac.classpath=\
${file.reference.open-dis7-entities-all.jar}:\
${file.reference.open-dis7-java.jar}:\
${file.reference.open-dis7-javadoc.jar}:\
${file.reference.open-dis7-source.jar}:\
${file.reference.commons-io-2.6.jar}:\
${file.reference.guava-28.0-jre.jar}:\
${file.reference.open-dis_4.16.jar}:\
......
......@@ -3,7 +3,7 @@ package MV3500Cohort2018JulySeptember.projects.FriscoFurr.originals;
import java.net.*;
import java.io.*;
import java.util.*;
import edu.nps.moves.dis.*;
import edu.nps.moves.dis.*; // OpenDIS version 4
import java.io.IOException;
import edu.nps.moves.disutil.PduFactory;
import edu.nps.moves.disutil.DisTime;
......
......@@ -10,3 +10,11 @@ References include
* [assignments source subdirectories](../../../../../assignments/src) show examples from previous cohorts.
Questions and innovation are always welcome, good luck!
Coded two classes:
MahanServer
MahanClient
1. Run the MahanServer once
2. Run the MahanClient as many times as you want
3. Enjoy the messages from the two consoles
\ No newline at end of file
......@@ -10,3 +10,17 @@ References include
* [assignments source subdirectories](../../../../../assignments/src) show examples from previous cohorts.
Questions and innovation are always welcome, good luck!
Coded three classes:
LokiChatServer
LokiServerThread
LokiChatClient
LokiClientThread
1. Run the LokiChatServer once
2. Run the LokiChatClient twice or more
3. type some messages in a client console
4. you will see the message on each of the client consoles
Please see HW2.jpg (chart) and doku.pdf
\ No newline at end of file
......@@ -88,7 +88,18 @@ POSSIBILITY OF SUCH DAMAGE.
<!-- TODO get clearer about what each of 4 jar files might be -->
<property name="open-dis7-java.relative" value="../open-dis7-java/dist"/>
<echo message="copy ${open-dis7-java.relative}/open-dis7-java.jar to project lib/ subdirectory"/>
<copy file="${open-dis7-java.relative}/open-dis7-java.jar" todir="lib" force="true" verbose="true"/>
<!-- https://ant.apache.org/manual/Tasks/fail.html -->
<fail message="open-dis7-java.jar not found">
<condition>
<not>
<resourcecount count="1">
<fileset id="fs" dir="${open-dis7-java.relative}" includes="open-dis7-java.jar"/><!-- comma separated -->
</resourcecount>
</not>
</condition>
</fail>
<delete file="lib/open-dis7-java.jar" verbose="true" />
<copy file="${open-dis7-java.relative}/open-dis7-java.jar" todir="lib" force="true" verbose="true" failonerror="true"/>
</target>
<target name="update.open-dis7.jar.gitlab" description="update open-dis7.jar in project lib directory">
......
......@@ -38,12 +38,16 @@ file.reference.dis-enums-1.3.jar=../lib/dis-enums-1.3.jar
file.reference.guava-28.0-jre.jar=../lib/guava-28.0-jre.jar
file.reference.open-dis7-entities-all.jar=../lib/open-dis7-entities-all.jar
file.reference.open-dis7-java.jar=../lib/open-dis7-java.jar
file.reference.open-dis7-javadoc.jar=../lib/open-dis7-javadoc.jar
file.reference.open-dis7-source.jar=../lib/open-dis7-source.jar
file.reference.open-dis_4.16.jar=../lib/open-dis_4.16.jar
includes=**
jar.compress=false
javac.classpath=\
${file.reference.open-dis7-entities-all.jar}:\
${file.reference.open-dis7-java.jar}:\
${file.reference.open-dis7-javadoc.jar}:\
${file.reference.open-dis7-source.jar}:\
${file.reference.commons-io-2.6.jar}:\
${file.reference.guava-28.0-jre.jar}:\
${file.reference.open-dis_4.16.jar}:\
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
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