コード例 #1
0
ファイル: Adapter.cs プロジェクト: jboomer/mbt-tftp-client
 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;
        }