option

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package option implements several RFC855 Telnet Option Specifications, including:

RFC857  Telnet Echo Option
RFC858  Telnet Suppress Go Ahead Option
RFC1091 Telnet Terminal-Type Option

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

type Echo struct {
	Us, Him bool
}

Echo is the RFC857 Telnet Echo Option.

func (Echo) Byte

func (Echo) Byte() byte

func (Echo) LetHim

func (e Echo) LetHim() bool

func (Echo) LetUs

func (e Echo) LetUs() bool

func (Echo) Params

func (Echo) Params(tn *telnet.Ctx, params []byte)

func (*Echo) SetHim

func (e *Echo) SetHim(tn *telnet.Ctx, enabled bool)

func (*Echo) SetUs

func (e *Echo) SetUs(tn *telnet.Ctx, enabled bool)

func (Echo) String

func (Echo) String() string

type SGA

type SGA struct{}

SGA is the RFC858 Telnet Suppress Go Ahead Option.

func (SGA) Byte

func (SGA) Byte() byte

func (SGA) LetHim

func (SGA) LetHim() bool

func (SGA) LetUs

func (SGA) LetUs() bool

func (SGA) Params

func (SGA) Params(tn *telnet.Ctx, params []byte)

func (SGA) SetHim

func (SGA) SetHim(tn *telnet.Ctx, enabled bool)

func (SGA) SetUs

func (SGA) SetUs(tn *telnet.Ctx, enabled bool)

func (SGA) String

func (SGA) String() string

type Term

type Term struct {
	Him string
}

Term is the RFC1091 Telnet Terminal-Type Option.

func (Term) Byte

func (Term) Byte() byte

func (Term) LetHim

func (Term) LetHim() bool

func (Term) LetUs

func (Term) LetUs() bool

func (*Term) Params

func (t *Term) Params(tn *telnet.Ctx, params []byte)

func (Term) SetHim

func (t Term) SetHim(tn *telnet.Ctx, enabled bool)

func (Term) SetUs

func (Term) SetUs(tn *telnet.Ctx, enabled bool)

func (Term) String

func (Term) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL