edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

SSLFTPClientClearControlChannel Method

Clears the control channel, setting it back to plain text.

Definition

Namespace: EnterpriseDT.Net.Ftp.Ssl
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public void ClearControlChannel()

Remarks

After this command is issued, the server will continue the control connection in plaintext, expecting the next command from the client to be in plaintext. This command is often used in conjunction with firewalls, which need to be able to inspect the control channel to open data channel ports in the firewall. This can only be done if the control channel is not encrypted.

The server will not accept any more PBSZ or PROT commands. All subsequent data transfers must be protected with the current PROT settings.

If things appear to hang here, set the ServerCompatibility property to SecureFTPCompatibilityFlags.SSLDisableControlWaitOnShutdownSSL

See Also