Search Results for

    Class AMNetIoServiceEventListener

    Default low-level connection listener that logs connection events.

    Inheritance
    object
    AMNetIoServiceEventListener
    Implements
    IAMNetIoServiceEventListener
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
    Assembly: ApacheMinaSSHD.NET.Wrapper.dll
    Syntax
    public class AMNetIoServiceEventListener : IAMNetIoServiceEventListener

    Constructors

    | Edit this page View Source

    AMNetIoServiceEventListener()

    Creates a default low-level connection listener.

    Declaration
    public AMNetIoServiceEventListener()

    Methods

    | Edit this page View Source

    OnConnectionAborted(ISshServiceConnection)

    Called if an accepted connection is closed before it's fully established.

    Declaration
    public virtual void OnConnectionAborted(ISshServiceConnection context)
    Parameters
    Type Name Description
    ISshServiceConnection context

    Connection metadata and the failure exception.

    | Edit this page View Source

    OnConnectionAccepted(ISshServiceConnection)

    Called when a new client connects. Return false to block or disconnect the connection immediately.

    Declaration
    public virtual bool OnConnectionAccepted(ISshServiceConnection context)
    Parameters
    Type Name Description
    ISshServiceConnection context

    Connection metadata for the accepted connection.

    Returns
    Type Description
    bool

    true to allow the connection; otherwise false.

    | Edit this page View Source

    OnOutboundConnectionAborted(ISshServiceConnection)

    Only relevant if an outbound connection attempt fails.

    Declaration
    public virtual void OnOutboundConnectionAborted(ISshServiceConnection context)
    Parameters
    Type Name Description
    ISshServiceConnection context

    Connection metadata and the failure exception.

    | Edit this page View Source

    OnOutboundConnectionEstablished(ISshServiceConnection)

    Only relevant if your server makes outbound connections (Forwarding).

    Declaration
    public virtual void OnOutboundConnectionEstablished(ISshServiceConnection context)
    Parameters
    Type Name Description
    ISshServiceConnection context

    Connection metadata for the outbound connection.

    Implements

    IAMNetIoServiceEventListener
    • Edit this page
    • View Source
    In this article
    Back to top Porta SFTP ServerGitHubApacheMinaSSHD.NET Generated by DocFX