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

object naming more explicit

parent e4c321cc
No related branches found
No related tags found
No related merge requests found
......@@ -422,8 +422,8 @@ public class AllPduSender
System.out.println("Send the " + generatedPdusList.size() + " PDUs we created...");
InetAddress localMulticastAddress = InetAddress.getByName(DEFAULT_MULTICAST_ADDRESS);
MulticastSocket socket = new MulticastSocket(DEFAULT_MULTICAST_PORT);
socket.joinGroup(localMulticastAddress);
MulticastSocket multicastSocket = new MulticastSocket(DEFAULT_MULTICAST_PORT);
multicastSocket.joinGroup(localMulticastAddress);
for (int idx = 0; idx < generatedPdusList.size(); idx++)
{
......@@ -438,9 +438,9 @@ public class AllPduSender
buffer = baos.toByteArray();
DatagramPacket packet = new DatagramPacket(buffer, buffer.length, localMulticastAddress, DEFAULT_MULTICAST_PORT);
socket.send(packet);
multicastSocket.send(packet);
try {
Thread.sleep(100L);
Thread.sleep(100L); // TODO this kind of delay timing should be in a DIS sender class?
} catch (InterruptedException ex) {
}
String currentPduTypeValuePadded = String.format("%2s", aPdu.getPduType().getValue());
......
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