Class TelnetConnection
A telnet client over TCP: IAC negotiation, terminal type, and window size (NAWS). Everything else is refused politely.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public sealed class TelnetConnection : TcpConnection, ITerminalConnectionInheritance: System.Object -> DarkEffekt.Terminal.TcpConnection
Implements:
DarkEffekt.Terminal.ITerminalConnection
Properties
Section titled “Properties”TerminalType
Section titled “TerminalType”public string TerminalType { get; set; }Methods
Section titled “Methods”HandleIncoming(byte[], int)
Section titled “HandleIncoming(byte[], int)”Processes n bytes read from the wire. The base class raises DataReceived directly.
protected override void HandleIncoming(byte[] buffer, int n)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Byte[] |
buffer |
System.Int32 |
n |
Send(byte[], int, int)
Section titled “Send(byte[], int, int)”Queues bytes for the far end. Never blocks on the network.
public override void Send(byte[] data, int offset, int count)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Byte[] |
data |
System.Int32 |
offset |
System.Int32 |
count |
NotifyResize(int, int)
Section titled “NotifyResize(int, int)”The terminal grid changed size. Connections that can pass this on do.
public override void NotifyResize(int cols, int rows)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
cols |
System.Int32 |
rows |