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

improved diagnostic, TODO fix PDU type problem

parent f68d6fcf
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ public class AllPduReceiver
socket.receive(packet);
Pdu pdu = factory.createPdu(packet.getData());
Pdu pdu = factory.createPdu(packet.getData()); // packet.getData() returns byte[] array data buffer
if (pdu != null)
{
DISPDUType currentPduType = pdu.getPduType(); //short currentPduType = pdu.getPduType();
......@@ -58,7 +58,7 @@ public class AllPduReceiver
if (currentPduType.getValue() < 10)
message.append(" "); // column spacing
message.append(currentPduType.getValue());
String currentPduTypePadded = String.format("%-34s", currentPduType); // - indicates right padding of whitespace
String currentPduTypePadded = String.format("%-34s", currentPduType); // - indicates right padding of whitespace
message.append(" " ).append(currentPduTypePadded);
String currentPduTypeNamePadded = String.format("%-49s", currentPduTypeName); // - indicates right padding of whitespace
message.append(" of type ").append(currentPduTypeNamePadded); // package.class name
......
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