receiver

package
v0.0.0-...-fdd8d4b Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

type Receiver struct {
	sync.Mutex
	*common.BaseSubProc
	// contains filtered or unexported fields
}

Receiver reads data from network stream and parses it into Packets, which is comprehensible to Terminal

func New

func New(src io.Reader) *Receiver

New telnet data receiver

func (*Receiver) Output

func (r *Receiver) Output() <-chan packet.Packet

Output packet processed by received

func (*Receiver) Run

func (r *Receiver) Run(ctx context.Context)

Run the receiver loop to read and process data from incoming stream. Any processed packets are input into Receiver.ChPacket, and errors into Receiver.ChErr

Jump to

Keyboard shortcuts

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