x224

package
v0.0.0-...-7cc2f1d Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSmallConnectionConfirmLength = errors.New("small connection confirm length")
	ErrWrongDataLength              = errors.New("wrong data length")
	ErrWrongConnectionConfirmCode   = errors.New("wrong connection confirm code")
)

Functions

This section is empty.

Types

type ConnectionConfirm

type ConnectionConfirm struct {
	LI          uint8
	CCCDT       uint8
	DSTREF      uint16
	SRCREF      uint16
	ClassOption uint8
}

func (*ConnectionConfirm) Deserialize

func (pdu *ConnectionConfirm) Deserialize(wire io.Reader) error

type ConnectionRequest

type ConnectionRequest struct {
	CRCDT        uint8
	DSTREF       uint16
	SRCREF       uint16
	ClassOption  uint8
	VariablePart []byte // unsupported
	UserData     []byte
	// contains filtered or unexported fields
}

func (*ConnectionRequest) Serialize

func (pdu *ConnectionRequest) Serialize() []byte

type Data

type Data struct {
	LI       uint8
	DTROA    uint8
	NREOT    uint8
	UserData []byte
}

func (*Data) Deserialize

func (pdu *Data) Deserialize(wire io.Reader) error

func (*Data) Serialize

func (pdu *Data) Serialize() []byte

type Protocol

type Protocol struct {
	// contains filtered or unexported fields
}

func New

func New(tpktConn *tpkt.Protocol) *Protocol

func (*Protocol) Connect

func (p *Protocol) Connect(userData []byte) (io.Reader, error)

func (*Protocol) Receive

func (p *Protocol) Receive() (io.Reader, error)

func (*Protocol) Send

func (p *Protocol) Send(userData []byte) error

Jump to

Keyboard shortcuts

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