xmodem

package module
v0.0.0-...-de27715 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACK = byte(0x06)

ACK is the acknowledge code

View Source
var CAN = byte(0x18)

CAN is the cancel code

View Source
var EOT = byte(0x04)

EOT is the Ent of Transmission code

View Source
var ETB = byte(0x17)

ETB is the End of transmission Block code

View Source
var NAK = byte(0x15)

NAK is the non-acknowledge code

View Source
var STX = byte(0x02)

STX is the XMODEM-1k header start code

Functions

func Receive

func Receive(connection net.Conn) ([]byte, error)

Receive takes a connection that has been already established and is waiting for an XMODEM ACK (or 'C') command to begin XMODEM transmission. Will return the byte array that is recieved via XMODEM. Uses XMODEM-CRC

Types

This section is empty.

Jump to

Keyboard shortcuts

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