Class TelnetInputParser<T>
Filters the TELNET commands usually sent before an ABOR command.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.dll
Syntax
public abstract class TelnetInputParser<T>
Type Parameters
Name | Description |
---|---|
T | The return type of a Collect(ReadOnlySpan<Byte>) operation. |
Methods
| Improve this Doc View SourceCollect(ReadOnlySpan<Byte>)
Collects data and handles the Synch
and Interrupt Process
TELNET commands.
Declaration
public IReadOnlyList<T> Collect(ReadOnlySpan<byte> data)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<Byte> | data | The data buffer. |
Returns
Type | Description |
---|---|
IReadOnlyList<T> | The list of items found inside the collected data. |
DataReceived(ReadOnlySpan<Byte>)
Collects all non-TELNET data.
Declaration
protected abstract IEnumerable<T> DataReceived(ReadOnlySpan<byte> data)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<Byte> | data | The data buffer. |
Returns
Type | Description |
---|---|
IEnumerable<T> | The collected items. |
InterruptProcess()
Handles the Interrupt Process
command.
Declaration
protected virtual IEnumerable<T> InterruptProcess()
Returns
Type | Description |
---|---|
IEnumerable<T> | The collected items. |
Synch()
Handles the Synch
command.
Declaration
protected virtual IEnumerable<T> Synch()
Returns
Type | Description |
---|---|
IEnumerable<T> | The collected items. |