/// <summary> /// Receive Data Block from the TFTP server. RRQ_SENT or ACK_SENT --> DATA_RECEIVED. /// </summary> /// <param name="rcvBuffer">the receiving buffer for return.</param> /// <returns> /// A int variable that tell the length of the receiving buffer. /// </returns> public static void receiveDataBlock() { byte[] rcvBuffer; client.receiveDataBlock(out rcvBuffer); state = client.tftpClientMode; }
public void TestReceiveDataBlock() { client.sendReadRequest(remotePath, destPath, TFTPClient.Modes.Octet); client.receiveDataBlock(out rcvBuffer); Assert.AreEqual(TFTPClient.FSM_Modes.DATA_RECEIVED, client.tftpClientMode); //received a block? Nog testen lengte receiveBuffer }
public static void ReceiveDataBlock() { clnt.receiveDataBlock(out rcvBuffer); }