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 SourceOnConnectionAborted(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. |
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 |
|
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. |
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. |