protocol

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package protocol defines the Windows HID proxy wire protocol.

Index

Constants

View Source
const NamedPipePath = "\\\\.\\pipe\\ctaphid"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command byte
const (
	CommandEnumerate Command = iota + 1
	CommandStart
	CommandDevicesChanged
)

type Message

type Message struct {
	Command Command
	Data    []byte
}

func NewMessage

func NewMessage(cmd Command, data any) (Message, error)

func ParseMessage

func ParseMessage(reader io.Reader) (Message, error)

func (*Message) WriteTo

func (m *Message) WriteTo(w io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

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