Class SimplePasvAddressResolver
The default implementation of the SimplePasvAddressResolver.
Implements
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.dll
Syntax
public class SimplePasvAddressResolver : IPasvAddressResolver
Remarks
The address family number gets ignored by this resolver. We always use the same address family as the local end point.
Constructors
| Improve this Doc View SourceSimplePasvAddressResolver(IOptions<SimplePasvOptions>)
Initializes a new instance of the SimplePasvAddressResolver class.
Declaration
public SimplePasvAddressResolver(IOptions<SimplePasvOptions> options)
Parameters
Type | Name | Description |
---|---|---|
IOptions<SimplePasvOptions> | options | The options. |
Methods
| Improve this Doc View SourceGetOptionsAsync(IFtpConnection, Nullable<AddressFamily>, CancellationToken)
Get the PASV
/EPSV
options.
Declaration
public 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. |