Show / Hide Table of Contents

    Class MultiBindingTcpListener

    Allows binding to a host name, which in turn may resolve to multiple IP addresses.

    Inheritance
    Object
    MultiBindingTcpListener
    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 MultiBindingTcpListener

    Constructors

    | Improve this Doc View Source

    MultiBindingTcpListener(Nullable<String>, Int32, Nullable<ILogger>)

    Initializes a new instance of the MultiBindingTcpListener class.

    Declaration
    public MultiBindingTcpListener(string? address, int port, ILogger? logger = default(ILogger? ))
    Parameters
    Type Name Description
    Nullable<String> address

    The address/host name to bind to.

    Int32 port

    The listener port.

    Nullable<ILogger> logger

    The logger.

    Properties

    | Improve this Doc View Source

    Port

    Gets the port this listener is bound to.

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

    Methods

    | Improve this Doc View Source

    StartAccepting()

    Start the asynchronous acception for all listeners.

    Declaration
    public void StartAccepting()
    | Improve this Doc View Source

    StartAsync()

    Start all listeners.

    Declaration
    public Task StartAsync()
    Returns
    Type Description
    Task

    the task.

    | Improve this Doc View Source

    Stop()

    Stops all listeners.

    Declaration
    public void Stop()
    | Improve this Doc View Source

    WaitAnyTcpClientAsync(CancellationToken)

    Wait for any client on all listeners.

    Declaration
    public Task<TcpClient> WaitAnyTcpClientAsync(CancellationToken token)
    Parameters
    Type Name Description
    CancellationToken token

    Cancellation token.

    Returns
    Type Description
    Task<TcpClient>

    The new TCP client.

    • 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.