public static void GetExit() { clnt.canGetExit(rcvBuffer.Length); }
public void TestGetExitFalse() { client.canGetExit(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. /// </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; }