protocol

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package protocol defines USB/IP protocol values shared by the application ports and wire adapter without making the application depend on an adapter.

Index

Constants

View Source
const (
	ImportStatusNA      uint32 = 1
	ImportStatusDevBusy uint32 = 2
	ImportStatusDevErr  uint32 = 3
	ImportStatusNoDev   uint32 = 4
)

OP_REP_IMPORT status values from the Linux USB/IP protocol.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpCode

type OpCode uint16

OpCode is a USB/IP handshake opcode transmitted in the eight-byte OP header.

const (
	OpReqDevlist OpCode = 0x8005
	OpRepDevlist OpCode = 0x0005
	OpReqImport  OpCode = 0x8003
	OpRepImport  OpCode = 0x0003
)

USB/IP handshake opcodes.

Jump to

Keyboard shortcuts

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