serflash

package
v0.0.0-...-cbf50d0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Iac  = 255
	Will = 251
	Sb   = 250
	Se   = 240

	ComPortOpt = 44
	SetControl = 5
)

Variables

This section is empty.

Functions

func Check

func Check(e error)

func UseTelnet

func UseTelnet(s io.ReadWriter) io.ReadWriter

Types

type Conn

type Conn struct {
	Lines chan string

	*bufio.Reader
	io.Writer
	// contains filtered or unexported fields
}

Conn is a buffered reader, unbuffered writer, and DTR/RTS controllable.

func New

func New(rw io.ReadWriter, debug, wait bool) *Conn

New creates a connection for uploading and terminal session use.

func (*Conn) Identify

func (c *Conn) Identify() (int, string, []byte)

func (*Conn) Program

func (c *Conn) Program(startAddress int, data []byte) chan int

Jump to

Keyboard shortcuts

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