transport

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package transport defines the network transport interfaces used by the IPMI server.

The interfaces are intentionally minimal so that any packet-oriented network stack – standard Linux UDP, TinyGo, bare-metal Ethernet, Unix sockets, or a wrapper around an existing listener – can be used without modification to the core server logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketConn

type PacketConn interface {
	// ReadFrom reads a packet into buf and returns the sender's address.
	ReadFrom(buf []byte) (n int, addr net.Addr, err error)

	// WriteTo sends data to addr.
	WriteTo(data []byte, addr net.Addr) (n int, err error)

	// Close releases any resources held by the connection.
	Close() error
}

PacketConn is a generic, address-based packet transport.

It mirrors the subset of net.PacketConn that the server actually needs, so callers can wrap an existing net.PacketConn with zero overhead, or provide a completely custom implementation for embedded targets.

Directories

Path Synopsis
Package udp provides a [transport.PacketConn] backed by a standard UDP socket.
Package udp provides a [transport.PacketConn] backed by a standard UDP socket.

Jump to

Keyboard shortcuts

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