x224

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TPDU_CONNECTION_REQUEST = 0xE0
	TPDU_CONNECTION_CONFIRM = 0xD0
	TPDU_DISCONNECT_REQUEST = 0x80
	TPDU_DATA               = 0xF0
	TPDU_ERROR              = 0x70
)

Variables

This section is empty.

Functions

func Connect

func Connect(w io.Writer, pduType uint8, data []byte)

func Read

func Read(r io.Reader) []byte

func ReadConfirm

func ReadConfirm(r io.Reader) (uint8, []byte)

ReadConfirm TPDU type and data

func Write

func Write(w io.Writer, data []byte)

Types

type Header struct {
	Length  uint8
	PduType uint8
	DstRef  uint16
	SrcRef  uint16
	Flags   uint8
}

Header --- An X.224 Class 0 Connection Request transport protocol data unit (TPDU), as specified in [X224] section 13.3. https://www.itu.int/rec/T-REC-X.224-199511-I/en

func (*Header) Read

func (header *Header) Read(r io.Reader)

func (*Header) Write

func (header *Header) Write(w io.Writer)

Jump to

Keyboard shortcuts

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