diff --git a/src/protocolP2P/ProtocolP2PDatagram.java b/src/protocolP2P/ProtocolP2PDatagram.java index 11db2d5..079c0fd 100644 --- a/src/protocolP2P/ProtocolP2PDatagram.java +++ b/src/protocolP2P/ProtocolP2PDatagram.java @@ -243,28 +243,32 @@ public class ProtocolP2PDatagram { this.hostR = hostR; } - private int computeCheckSum(byte [] datagram){ + private int computeCheckSum(byte [] datagram) throws SizeError { int checksum = 0; - for (int i=CHECKSUM_POSITION+2; i