private void waitAnswer() throws Exception
	{
		for (long i=Sequence;i<((Sequence+WIN>nbSequence)?nbSequence:Sequence+WIN);i++) 
		{
			DatagramPacket packet=new DatagramPacket(new byte[PAYLOADLENGTH], PAYLOADLENGTH);
			rx(dataSocket, new byte[PAYLOADLENGTH]);					
			System.out.println("verifier si c'est un ACK" +messagePacket.getSequence()+" "+(Sequence+1)%MODULO);
			if (messagePacket.getType() == MessageType.ACK.getType()
				&& messagePacket.getSequence() == (nextSequence+1)%MODULO) 
			{
		
				System.out.println("ACK détecté; glisser la fenêtre'");
				nextSequence++;
			}
			else
			{
				break;
			}
		}
		Sequence = nextSequence;
	}