Skip to content
Snippets Groups Projects
Commit eb09088f authored by brutzman's avatar brutzman
Browse files

Merge origin/master

parents c9702148 d9c9d535
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ public class GermanyEspduReceiverEspduVPNSender {
pduCount++;
String receiptMessage = String.format("%3s", pduCount) // right justify, 3 characters
+ ". received PDU type " + aPdu.getPduType().getValue() + "=" + aPdu.getPduType().name() + " " + aPdu.getClass().getName();
// only handle ESPDU at this point (no fire PDU etc...)
if (aPdu instanceof EntityStatePdu) {
System.out.println(receiptMessage);
EntityID entityID = ((EntityStatePdu) aPdu).getEntityID();
......@@ -96,6 +97,10 @@ public class GermanyEspduReceiverEspduVPNSender {
System.out.println(TRACE_PREFIX + "complete.");
} // end main
/**
* gets the espdu from main and send it to VPN_RECEIVER_ADDRESS
* @param espdu
*/
public static void sendESPDU(EntityStatePdu espdu) {
MulticastSocket socket = null; // must be initialized, even if null
InetAddress destinationIp = null; // must be initialized, even if null
......@@ -114,7 +119,7 @@ public class GermanyEspduReceiverEspduVPNSender {
}
Set<InetAddress> broadcastAddresses;
// Loop through sending N ESPDUs
// Loop through sending one ESPDUs
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(baos);
try {
......
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