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

note timestamp unmodified

parent f85e1e20
No related branches found
No related tags found
No related merge requests found
...@@ -436,7 +436,8 @@ public class AllPduSender ...@@ -436,7 +436,8 @@ public class AllPduSender
} }
if (aPdu != null) if (aPdu != null)
{ {
generatedPdusList.add(aPdu); // leave aPdu timestamp at default value for consistency of output unit tests
generatedPdusList.add(aPdu);
} }
} }
catch (Exception e) catch (Exception e)
...@@ -468,12 +469,12 @@ public class AllPduSender ...@@ -468,12 +469,12 @@ public class AllPduSender
{ {
// careful here! keep object instantiations inside of loop to avoid endless array and packet growth // careful here! keep object instantiations inside of loop to avoid endless array and packet growth
ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(baos); DataOutputStream dos = new DataOutputStream(baos);
aPdu = generatedPdusList.get(idx); aPdu = generatedPdusList.get(idx);
try try
{ {
aPdu.marshal(dos); aPdu.marshal(dos); // dos is DataOutputStream connected to ByteArrayOutputStrea
buffer = baos.toByteArray(); buffer = baos.toByteArray();
packet = new DatagramPacket(buffer, buffer.length, localMulticastAddress, DEFAULT_MULTICAST_PORT); packet = new DatagramPacket(buffer, buffer.length, localMulticastAddress, DEFAULT_MULTICAST_PORT);
......
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