public static void PutExit() { clnt.canPutExit(sndBuffer.Length); }
public void TestPutExitFalse() { client.canPutExit(520); Assert.AreNotEqual(TFTPClient.FSM_Modes.EXIT, client.tftpClientMode); }
/// <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; }