Class AMNetIoServiceEventListener
Default low-level connection listener that logs connection events.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetIoServiceEventListener : IAMNetIoServiceEventListener
Constructors
| Edit this page View SourceAMNetIoServiceEventListener()
Creates a default low-level connection listener.
Declaration
public AMNetIoServiceEventListener()
Methods
| Edit this page View SourceOnConnectionAborted(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. |
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 |
|
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. |
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. |