Interface IPasvAddressResolver
Interface to get the options for the PASV/EPSV commands.
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IPasvAddressResolver
Methods
| Improve this Doc View SourceGetOptionsAsync(IFtpConnection, Nullable<AddressFamily>, CancellationToken)
Get the PASV/EPSV options.
Declaration
Task<PasvListenerOptions> GetOptionsAsync(IFtpConnection connection, AddressFamily? addressFamily, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IFtpConnection | connection | The FTP connection. |
| Nullable<AddressFamily> | addressFamily | The address family for the address to be selected. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<PasvListenerOptions> | The task returning the options. |