Class AsyncFtpClientSocks5Proxy
- Namespace
- FluentFTP.Proxy.AsyncProxy
- Assembly
- FluentFTP.dll
A FTP client with a SOCKS5 proxy implementation.
public class AsyncFtpClientSocks5Proxy : AsyncFtpClientProxy, IInternalFtpClient, IAsyncFtpClient, IDisposable, IAsyncDisposable, IBaseFtpClient
- Inheritance
-
AsyncFtpClientSocks5Proxy
- Implements
- Inherited Members
- Extension Methods
Constructors
AsyncFtpClientSocks5Proxy(FtpProxyProfile)
Setup a SOCKS5 proxy
public AsyncFtpClientSocks5Proxy(FtpProxyProfile proxy)
Parameters
proxy
FtpProxyProfile
Methods
ConnectAsync(FtpSocketStream, string, int, FtpIpVersion, CancellationToken)
protected override Task ConnectAsync(FtpSocketStream stream, string host, int port, FtpIpVersion ipVersions, CancellationToken token)
Parameters
stream
FtpSocketStreamhost
stringport
intipVersions
FtpIpVersiontoken
CancellationToken
Returns
ConnectAsync(FtpSocketStream, CancellationToken)
protected override Task ConnectAsync(FtpSocketStream stream, CancellationToken cancellationToken)
Parameters
stream
FtpSocketStreamcancellationToken
CancellationToken
Returns
Create()
Creates a new instance of this class. Useful in FTP proxy classes.
protected override BaseFtpClient Create()