Show / Hide Table of Contents

    Class PasvListener

    The default implementation of the IPasvListener interface.

    Inheritance
    Object
    PasvListener
    Implements
    IPasvListener
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.dll
    Syntax
    public class PasvListener : IPasvListener, IDisposable

    Constructors

    | Improve this Doc View Source

    PasvListener(IPAddress, Int32, IPAddress)

    Initializes a new instance of the PasvListener class.

    Declaration
    public PasvListener(IPAddress listenAddress, int port, IPAddress externalAddress)
    Parameters
    Type Name Description
    IPAddress listenAddress

    On which address to listen.

    Int32 port

    Port to listen on, or 0 for any.

    IPAddress externalAddress

    which external address should be advertised to clients. Use null to use the listener's address.

    Exceptions
    Type Condition
    ArgumentNullException

    listenAddress is null.

    ArgumentOutOfRangeException

    port is out of range.

    Properties

    | Improve this Doc View Source

    PasvEndPoint

    Gets the Endpoint under which the listener is reachable by clients.

    Declaration
    public IPEndPoint PasvEndPoint { get; }
    Property Value
    Type Description
    IPEndPoint

    Methods

    | Improve this Doc View Source

    AcceptPasvClientAsync()

    Accept a client from a PASV command.

    Declaration
    public Task<TcpClient> AcceptPasvClientAsync()
    Returns
    Type Description
    Task<TcpClient>

    A TcpClient with which to communicate with the client.

    Exceptions
    Type Condition
    SocketException

    Network error, see SocketError.

    ObjectDisposedException

    Listener was disposed of.

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()

    Implements

    IPasvListener
    System.IDisposable
    • 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.