Skip to content

Class TelnetConnection

A telnet client over TCP: IAC negotiation, terminal type, and window size (NAWS). Everything else is refused politely.

Declaration
public sealed class TelnetConnection : TcpConnection, ITerminalConnection

Inheritance: System.Object -> DarkEffekt.Terminal.TcpConnection

Implements:
DarkEffekt.Terminal.ITerminalConnection

Declaration
public string TerminalType { get; set; }

Processes n bytes read from the wire. The base class raises DataReceived directly.

Declaration
protected override void HandleIncoming(byte[] buffer, int n)
Type Name
System.Byte[] buffer
System.Int32 n

Queues bytes for the far end. Never blocks on the network.

Declaration
public override void Send(byte[] data, int offset, int count)
Type Name
System.Byte[] data
System.Int32 offset
System.Int32 count

The terminal grid changed size. Connections that can pass this on do.

Declaration
public override void NotifyResize(int cols, int rows)
Type Name
System.Int32 cols
System.Int32 rows