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

explanatory comment

parent c7d62292
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ public class UnicastUdpReceiver ...@@ -51,7 +51,7 @@ public class UnicastUdpReceiver
DatagramPacket receivePacket = new DatagramPacket(byteArray, byteArray.length); DatagramPacket receivePacket = new DatagramPacket(byteArray, byteArray.length);
ByteArrayInputStream bais = new ByteArrayInputStream(byteArray); ByteArrayInputStream bais = new ByteArrayInputStream(byteArray);
DataInputStream dis = new DataInputStream(bais); DataInputStream dis = new DataInputStream(bais);
boolean isEvenParity; boolean isEvenParity;
int packetCount = 0; int packetCount = 0;
...@@ -102,7 +102,7 @@ public class UnicastUdpReceiver ...@@ -102,7 +102,7 @@ public class UnicastUdpReceiver
finally // clean up prior to exit, don't want to leave behind zombie socket finally // clean up prior to exit, don't want to leave behind zombie socket
{ {
if (udpSocket != null) if (udpSocket != null)
udpSocket.close(); udpSocket.close(); // making sure the perhaps-scarce resource is released
System.out.println(UnicastUdpReceiver.class.getName() + " complete."); // all done System.out.println(UnicastUdpReceiver.class.getName() + " complete."); // all done
} }
} }
......
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