public void Reinitialize()
Represents FTP REIN command.
This is identical to the state immediately after the connection is opened. A USER command may be issued to login.
The REIN command is unsupported by many FTP servers and not supported correctly by most FTP proxies. Its usage is not recommended. Use Disconnect/Connect instead.
Shows how to use Reinitialize method to Terminates the user and flushes all state information on the server.
using System; using System.Collections.Generic; using System.Text; using ComponentPro.Net; using ComponentPro.IO; ... // Create a new class instance. Ftp client = new Ftp(); // Connect to the FTP server. client.Connect("myserver"); // Authenticate. client.Authenticate("test", "test"); // ... // Terminates the user and flushes all state information on the server. // The connection is left open. client.Reinitialize(); // ... // Disconnect. client.Disconnect();