Skip to content
Snippets Groups Projects
Commit d13a8050 authored by Brennenstuhl, Tobias FORNATL, GY's avatar Brennenstuhl, Tobias FORNATL, GY
Browse files

Merge origin/master

Conflicts:
	assignments/ReportingForDuty.md
parent 6f81e5b7
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ public class BrennenstuhllEspduSender ...@@ -143,7 +143,7 @@ public class BrennenstuhllEspduSender
entityID.setSiteID ((short)1); // TODO utility method to allow int values entityID.setSiteID ((short)1); // TODO utility method to allow int values
entityID.setApplicationID((short)2); entityID.setApplicationID((short)2);
entityID.setEntityID ((short)3); entityID.setEntityID ((short)3);
espdu.setEntityID(entityID); espdu.setEntityID(entityID);
// Set the entity type. SISO has a big list of enumerations, so that by // Set the entity type. SISO has a big list of enumerations, so that by
// specifying various numbers we can say this is an M1A2 American tank, // specifying various numbers we can say this is an M1A2 American tank,
...@@ -264,16 +264,16 @@ public class BrennenstuhllEspduSender ...@@ -264,16 +264,16 @@ public class BrennenstuhllEspduSender
while (iterator.hasNext()) while (iterator.hasNext())
{ {
InetAddress broadcast = (InetAddress) iterator.next(); InetAddress broadcast = (InetAddress) iterator.next();
if (espduArray.length > 0) // if (espduArray.length > 0)
{ // {
System.out.println("Sending espdu datagram packet to " + broadcast); // System.out.println("Sending espdu datagram packet to " + broadcast);
packet = new DatagramPacket(espduArray, espduArray.length, broadcast, port); // packet = new DatagramPacket(espduArray, espduArray.length, broadcast, port);
socket.send(packet); // socket.send(packet);
} // }
// TODO experiment with these! 8) // TODO experiment with these! 8)
if (fireArray.length > 0) if (fireArray.length > 0)
{ {
System.out.println("Sending fire datagram packet to " + broadcast); System.out.println("Sending Chuck Norris datagram packet to " + broadcast + " to burn down the Simulation");
packet = new DatagramPacket(fireArray, fireArray.length, broadcast, port); // alternate packet = new DatagramPacket(fireArray, fireArray.length, broadcast, port); // alternate
socket.send(packet); socket.send(packet);
} }
......
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