Show / Hide Table of Contents

    Interface IFtpServer

    The interface that must be implemented by the FTP server.

    Inherited Members
    IPausableFtpService.Status
    IPausableFtpService.PauseAsync(CancellationToken)
    IPausableFtpService.ContinueAsync(CancellationToken)
    IFtpService.StartAsync(CancellationToken)
    IFtpService.StopAsync(CancellationToken)
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public interface IFtpServer : IPausableFtpService, IFtpService

    Properties

    | Improve this Doc View Source

    MaxActiveConnections

    Gets the max allows active connections.

    Declaration
    int MaxActiveConnections { get; }
    Property Value
    Type Description
    Int32
    Remarks

    This will cause connections to be refused if count is exceeded. 0 (default) means no control over connection count.

    | Improve this Doc View Source

    Port

    Gets the port on which the FTP server is listening for incoming connections.

    Declaration
    int Port { get; }
    Property Value
    Type Description
    Int32
    Remarks

    This value is only final after the ListenerStarted event was raised.

    | Improve this Doc View Source

    Ready

    Gets a value indicating whether server ready to receive incoming connections.

    Declaration
    bool Ready { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    ServerAddress

    Gets the public IP address (required for PASV and EPSV).

    Declaration
    string? ServerAddress { get; }
    Property Value
    Type Description
    Nullable<String>
    | Improve this Doc View Source

    Statistics

    Gets the FTP server statistics.

    Declaration
    IFtpServerStatistics Statistics { get; }
    Property Value
    Type Description
    IFtpServerStatistics

    Methods

    | Improve this Doc View Source

    Start()

    Starts the FTP server in the background.

    Declaration
    [Obsolete("User IFtpServerHost.StartAsync instead.")]
    void Start()
    | Improve this Doc View Source

    Stop()

    Stops the FTP server.

    Declaration
    [Obsolete("User IFtpServerHost.StopAsync instead.")]
    void Stop()
    Remarks

    The FTP server cannot be started again after it was stopped.

    Events

    | Improve this Doc View Source

    ConfigureConnection

    This event is raised when the connection is ready to be configured.

    Declaration
    event EventHandler<ConnectionEventArgs> ConfigureConnection
    Event Type
    Type Description
    EventHandler<ConnectionEventArgs>
    | Improve this Doc View Source

    ListenerStarted

    This event is raised when the listener was started.

    Declaration
    event EventHandler<ListenerStartedEventArgs> ListenerStarted
    Event Type
    Type Description
    EventHandler<ListenerStartedEventArgs>
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.