Example #1
0
        /// <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;
        }
Example #2
0
 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
 }
Example #3
0
 public static void ReceiveDataBlock()
 {
     clnt.receiveDataBlock(out rcvBuffer);
 }