ymodem

package
v0.0.0-...-db30983 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2015 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const ACK byte = 0x06
View Source
const EOT byte = 0x04
View Source
const LONG_PACKET_PAYLOAD_LEN = 1024
View Source
const NAK byte = 0x15
View Source
const POLL byte = 0x43
View Source
const SHORT_PACKET_PAYLOAD_LEN = 128
View Source
const SOH byte = 0x01
View Source
const STX byte = 0x02

Variables

View Source
var InvalidPacket = errors.New("invalid packet")

Functions

func CRC16

func CRC16(data []byte) uint16

func CRC16Constant

func CRC16Constant(data []byte, length int) uint16

func ModemReceive

func ModemReceive(c io.ReadWriter) (string, []byte, error)

func ModemSend

func ModemSend(c io.ReadWriter, data []byte, filename string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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