Beispiel #1
0
 public static void StartRead(int SelMode)
 {
     clnt.sendReadRequest(remoteGetPath, localGetPath, (TFTPClient.Modes)SelMode);
 }
Beispiel #2
0
 public void TestGetFineWrapper()
 {
     client.sendReadRequest(remotePath, destPath, TFTPClient.Modes.Octet);
     client.Get(remotePath, destPath, TFTPClient.Modes.Octet);
     FileAssert.AreEqual(serverPath + remotePath, destPath);
 }
Beispiel #3
0
        /// <summary>
        /// Send Read Request. It creates the TFTP read request packet, send the packet. INIT --> RRQ_SENT.
        /// </summary>
        /// <param name="remoteFile">The remote file.</param>
        /// <param name="localFile">The local file.</param>
        /// <param name="tftpMode">The TFTP mode, NetAscii, Octet, Mail.</param>
        public static void sendReadRequest()
        {
            client.sendReadRequest("remote.txt", "local.txt", TFTPClient.Modes.NetAscii);

            state = client.tftpClientMode;
        }