示例#1
0
 public static void GetExit()
 {
     clnt.canGetExit(rcvBuffer.Length);
 }
示例#2
0
 public void TestGetExitFalse()
 {
     client.canGetExit(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.
        /// </summary>
        /// <param name="len">The length of receving 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 canGetExit(int len)
        {
            client.canGetExit(len);

            state = client.tftpClientMode;
        }