Interface IFtpDataConnectionFeature
Feature for an FTP data connection.
Inherited Members
Namespace: FubarDev.FtpServer.Features
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IFtpDataConnectionFeature : IDisposable
Properties
| Improve this Doc View SourceCommand
Gets the FTP command that initiated the creation of the feature.
Declaration
FtpCommand? Command { get; }
Property Value
Type | Description |
---|---|
Nullable<FtpCommand> |
LocalEndPoint
Gets the local end point.
Declaration
IPEndPoint LocalEndPoint { get; }
Property Value
Type | Description |
---|---|
IPEndPoint |
Remarks
This value is unreliable in case of an active data connection.
Methods
| Improve this Doc View SourceGetDataConnectionAsync(TimeSpan, CancellationToken)
Gets a new FTP data connection.
Declaration
Task<IFtpDataConnection> GetDataConnectionAsync(TimeSpan timeout, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | The timeout for establishing the FTP data connection. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IFtpDataConnection> | The task. |