Class AMNetScpCommandFactory
Configures SCP command support for an AMNetSshServer.
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Factories
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetScpCommandFactory
Constructors
| Edit this page View SourceAMNetScpCommandFactory()
Creates an SCP command factory with default file handling.
Declaration
public AMNetScpCommandFactory()
AMNetScpCommandFactory(IAMNetScpFileOpener)
Creates an SCP command factory with an application file policy hook.
Declaration
public AMNetScpCommandFactory(IAMNetScpFileOpener fileOpener)
Parameters
| Type | Name | Description |
|---|---|---|
| IAMNetScpFileOpener | fileOpener | The SCP file policy hook. |
Properties
| Edit this page View SourceReceiveBufferSize
Gets or sets the incoming SCP receive buffer size in bytes.
Declaration
public int ReceiveBufferSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SendBufferSize
Gets or sets the outgoing SCP send buffer size in bytes.
Declaration
public int SendBufferSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceaddEventListener(IAMNetScpTransferEventListener)
Registers an SCP transfer event listener.
Declaration
public bool addEventListener(IAMNetScpTransferEventListener eventListener)
Parameters
| Type | Name | Description |
|---|---|---|
| IAMNetScpTransferEventListener | eventListener | The listener to add. |
Returns
| Type | Description |
|---|---|
| bool |
|
removeEventListener(IAMNetScpTransferEventListener)
Removes a previously registered SCP transfer event listener.
Declaration
public bool removeEventListener(IAMNetScpTransferEventListener eventListener)
Parameters
| Type | Name | Description |
|---|---|---|
| IAMNetScpTransferEventListener | eventListener | The listener to remove. |
Returns
| Type | Description |
|---|---|
| bool |
|
setFileOpener(IAMNetScpFileOpener)
Sets the SCP file policy hook used for path resolution, filtering, and stream events.
Declaration
public void setFileOpener(IAMNetScpFileOpener fileOpener)
Parameters
| Type | Name | Description |
|---|---|---|
| IAMNetScpFileOpener | fileOpener | The SCP file policy hook. |