示例#1
0
 public static void PutExit()
 {
     clnt.canPutExit(sndBuffer.Length);
 }
示例#2
0
 public void TestPutExitFalse()
 {
     client.canPutExit(520);
     Assert.AreNotEqual(TFTPClient.FSM_Modes.EXIT, client.tftpClientMode);
 }
示例#3
0
        /// <summary>
        /// check whether it is time to successfully exit. If yes, current state --> EXIT; otherwise, keep the current state unchanged.
        /// </summary>
        /// <param name="len">The length of the sending buffer.</param>
        /// <returns>
        /// A bool variable indicating whether it is time to successfully exit. It is TRUE for successfully exit, FALSE for staying in the loop and continuing the file transfer.
        /// </returns>
        public static void canPutExit(int len)
        {
            client.canPutExit(len);

            state = client.tftpClientMode;
        }