ippusbbridge

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package ippusbbridge provides functions for interacting with ippusb_bridge. ippusb_bridge provides support for connecting to IPP-over-USB printers and forwarding arbitrary protocols (IPP, eSCL, etc.) to those printers via HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContactPrinterEndpoint

func ContactPrinterEndpoint(ctx context.Context, devInfo usbprinter.DevInfo, url string) error

ContactPrinterEndpoint sends an HTTP request for url through the ippusb_bridge socket that matches devInfo. Returns nil if a response is received regardless of the HTTP status code or body contents.

func Kill

func Kill(ctx context.Context, devInfo usbprinter.DevInfo) error

Kill searches the process tree to kill the ippusb_bridge process. It also removes the ippusb_bridge and ippusb_bridge keepalive sockets.

func SocketPath

func SocketPath(devInfo usbprinter.DevInfo) string

SocketPath returns the path to ippusb_bridge's main socket.

func WaitForSocket

func WaitForSocket(ctx context.Context, devInfo usbprinter.DevInfo) error

WaitForSocket waits for the ippusb_bridge socket that should match devInfo to appear in the filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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