public synchronized void reset() {
		for(int i = 0; i < receivedPackets.length; i++)
			receivedPackets[i] = null;
		receivedPacketHistoryInt = 0;
		lastReceivedPacketIndex = -1;
		lastReceivedPacketSequenceNumber = Packet.SEQUENCE_NUMBER_NOT_APPLICABLE;

		for(int i = 0; i < sentPackets.length; i++)
			sentPackets[i] = null;
		lastSentPacketIndex = -1;
		lastSentPacketSequenceNumber = Packet.SEQUENCE_NUMBER_NOT_APPLICABLE;

		lastSentPacketCheckedForDelivery = Packet.SEQUENCE_NUMBER_NOT_APPLICABLE;
	}