Class PortCommandHandler
Implements the PORT
and EPRT
commands.
Inherited Members
Namespace: FubarDev.FtpServer.CommandHandlers
Assembly: FubarDev.FtpServer.Commands.dll
Syntax
[FtpCommandHandler("PORT", false, true)]
[FtpCommandHandler("EPRT", false, true)]
[FtpFeatureText("EPRT")]
public class PortCommandHandler : FtpCommandHandler, IFtpCommandHandler, IFtpCommandBase, IFeatureHost
Constructors
| Improve this Doc View SourcePortCommandHandler(ActiveDataConnectionFeatureFactory, IOptions<PortCommandOptions>)
Initializes a new instance of the PortCommandHandler class.
Declaration
public PortCommandHandler(ActiveDataConnectionFeatureFactory dataConnectionFeatureFactory, IOptions<PortCommandOptions> options)
Parameters
Type | Name | Description |
---|---|---|
ActiveDataConnectionFeatureFactory | dataConnectionFeatureFactory | The factory to create a data connection feature for active connections. |
IOptions<PortCommandOptions> | options | The options for this command. |
Methods
| Improve this Doc View SourceProcess(FtpCommand, CancellationToken)
Declaration
public override Task<IFtpResponse? > Process(FtpCommand command, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FtpCommand | command | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Nullable<IFtpResponse>> |