trace

package
v0.0.0-...-403537e Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: BSD-2-Clause Imports: 11 Imported by: 0

README

IEEE 1284 definitions

import "github.com/OpenPrinting/go-mfp/proto/trace"

This package writes detailed protocol traces

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer writes a protocol trace

func NewWriter

func NewWriter(ctx context.Context, name string) (*Writer, error)

NewWriter creates a new trace writer

func (*Writer) Close

func (writer *Writer) Close()

Close closes the Writer

func (*Writer) IPPRequest

func (writer *Writer) IPPRequest(seqnum uint64,
	query *transport.ServerQuery, msg *goipp.Message, body io.Reader)

IPPRequest is the [ipp.Sniffer.Request] callback.

func (*Writer) IPPResponse

func (writer *Writer) IPPResponse(seqnum uint64,
	query *transport.ServerQuery, msg *goipp.Message, body io.Reader)

IPPResponse is the [ipp.Sniffer.Response] callback.

func (*Writer) Send

func (writer *Writer) Send(name string, data []byte)

Send writes a new record (a file) into the writer archive.

Jump to

Keyboard shortcuts

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