This project is read-only.

Active mode FTP C#

Aug 15, 2014 at 3:39 PM
I cannot find any information about setting up active mode FTP connection in C# AlexPilotti.FTPS. Is there such a possibility? If there is, then what is the way to implement it in code?
Need an answer ASAP
Aug 15, 2014 at 3:52 PM
Oh, I am sorry for being an idiot and not noticing the obvious right under my nose :)
One of the several overrides for FTPSClient.Connect(...) has a last parameter of type enum EDataConnectionMode.
public string Connect(string hostname, int port, NetworkCredential credential, ESSLSupportMode sslSupportMode, RemoteCertificateValidationCallback userValidateServerCertificate, X509Certificate x509ClientCert, int sslMinKeyExchangeAlgStrength, int sslMinCipherAlgStrength, int sslMinHashAlgStrength, int? timeout, bool useCtrlEndPointAddressForData, EDataConnectionMode dataConnectionMode);
Marked as answer by LavaGasKitty on 8/15/2014 at 7:52 AM