Options
All
  • Public
  • Public/Protected
  • All
Menu

ts-telnet2

Index

Modules

Enumerations

Classes

Interfaces

Type aliases

Functions

Type aliases

EventListener

EventListener: function

Type declaration

    • (...args: any): void
    • Parameters

      • Rest ...args: any

      Returns void

OptionMatrix

OptionMatrix<T>: object

Options enum mapped to

Type parameters

  • T

Type declaration

Functions

createConnection

  • createConnection(port: number, host: string, listener?: undefined | function): Socket
  • Create a connection, wrapping a raw TCP socket with a Telnet layer.

    Parameters

    • port: number

      The port to connect on.

    • host: string

      The hostname or IP to connect to.

    • Optional listener: undefined | function

      Optional callback.

    Returns Socket

createServer

  • createServer(port: number, host?: string): Server
  • Create a server, wrapping a raw TCP server with a Telnet layer.

    Parameters

    • port: number

      The port to bind to.

    • Default value host: string = "127.0.0.1"

      The hostname or IP to bind to.

    Returns Server

parseGMCP

  • parseGMCP(data: Buffer): IGMCP

Generated using TypeDoc