Table of Contents

Class AsyncFtpClientSocks4Proxy

Namespace
FluentFTP.Proxy.AsyncProxy
Assembly
FluentFTP.dll

A FTP client with a SOCKS4 proxy implementation.

public class AsyncFtpClientSocks4Proxy : AsyncFtpClientProxy, IInternalFtpClient, IAsyncFtpClient, IDisposable, IAsyncDisposable, IBaseFtpClient
Inheritance
AsyncFtpClientSocks4Proxy
Implements
Inherited Members
Extension Methods

Constructors

AsyncFtpClientSocks4Proxy(FtpProxyProfile)

Setup a SOCKS4 proxy

public AsyncFtpClientSocks4Proxy(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 cancellationToken)

Parameters

stream FtpSocketStream
host string
port int
ipVersions FtpIpVersion
cancellationToken CancellationToken

Returns

Task

ConnectAsync(FtpSocketStream, CancellationToken)

protected override Task ConnectAsync(FtpSocketStream stream, CancellationToken cancellationToken)

Parameters

stream FtpSocketStream
cancellationToken CancellationToken

Returns

Task

Create()

Creates a new instance of this class. Useful in FTP proxy classes.

protected override BaseFtpClient Create()

Returns

BaseFtpClient

HandshakeAsync(CancellationToken)

Called during ConnectAsync(FtpSocketStream, CancellationToken). Typically extended by FTP proxies.

protected override Task HandshakeAsync(CancellationToken token = default)

Parameters

token CancellationToken

Returns

Task