Skip to content
Snippets Groups Projects
Commit 799305f2 authored by bweissenbergergy's avatar bweissenbergergy
Browse files

Added the Android source code and minor changes...

09/06/2020
parent 47598224
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ import java.util.logging.Logger; ...@@ -14,7 +14,7 @@ import java.util.logging.Logger;
* to Stefan's PDU Receiver * to Stefan's PDU Receiver
* *
* @date 09/05/2020 * @date 09/05/2020
* @author Bernd * @author Bernd/Stefan
* @version 0.1 * @version 0.1
*/ */
public class GermanyEspduReceiverEspduVPNSender { public class GermanyEspduReceiverEspduVPNSender {
......
...@@ -45,10 +45,8 @@ public class GermanyEspduVPNReceiver { ...@@ -45,10 +45,8 @@ public class GermanyEspduVPNReceiver {
// Specify the socket to receive data // Specify the socket to receive data
socket = new MulticastSocket(DEFAULT_PORT); socket = new MulticastSocket(DEFAULT_PORT);
System.out.println(TRACE_PREFIX + "listening for PDU packets on port " + DEFAULT_PORT); System.out.println(TRACE_PREFIX + "listening for PDU packets on port " + DEFAULT_PORT);
System.out.println("==============="); System.out.println("====================================================");
while (true) // Loop infinitely, receiving datagrams while (true) // Loop infinitely, receiving datagrams
{ {
...@@ -58,7 +56,7 @@ public class GermanyEspduVPNReceiver { ...@@ -58,7 +56,7 @@ public class GermanyEspduVPNReceiver {
socket.receive(packet); socket.receive(packet);
List<Pdu> pduBundle = pduFactory.getPdusFromBundle(packet.getData(), packet.getLength()); List<Pdu> pduBundle = pduFactory.getPdusFromBundle(packet.getData(), packet.getLength());
if (pduBundle.size() > 1) { if (pduBundle.size() > 1) { // should be 1 for this project
System.out.println("Bundle size is " + pduBundle.size()); System.out.println("Bundle size is " + pduBundle.size());
} }
......
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