Search Results for

    Interface IAMNetIoServiceEventListener

    Receives low-level connection events before or around SSH session creation.

    Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
    Assembly: ApacheMinaSSHD.NET.Wrapper.dll
    Syntax
    public interface IAMNetIoServiceEventListener

    Methods

    | Edit this page View Source

    OnConnectionAborted(ISshServiceConnection)

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

    Declaration
    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
    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
    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
    void OnOutboundConnectionEstablished(ISshServiceConnection context)
    Parameters
    Type Name Description
    ISshServiceConnection context

    Connection metadata for the outbound connection.

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