examples/

directory
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

Directories

Path Synopsis
Example client demonstrates attaching a remote USB/IP device via pkg/usbip.Importer and detaching it cleanly after a brief hold.
Example client demonstrates attaching a remote USB/IP device via pkg/usbip.Importer and detaching it cleanly after a brief hold.
Example events demonstrates iterating over the v1-compatible Importer.Watch and Exporter.WatchSessions event-only sequences.
Example events demonstrates iterating over the v1-compatible Importer.Watch and Exporter.WatchSessions event-only sequences.
Example reconnect demonstrates AttachOptions.AutoReconnect with a custom backoff and an OnReconnect callback.
Example reconnect demonstrates AttachOptions.AutoReconnect with a custom backoff and an OnReconnect callback.
Example server demonstrates embedding pkg/usbip.Exporter in a custom process: listen on TCP, bind a local device for export, then serve the USB/IP accept loop until SIGINT/SIGTERM.
Example server demonstrates embedding pkg/usbip.Exporter in a custom process: listen on TCP, bind a local device for export, then serve the USB/IP accept loop until SIGINT/SIGTERM.

Jump to

Keyboard shortcuts

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