ipc

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(addr string) (net.Conn, error)

Dial connects to the given addr using the platform-appropriate transport.

func Listen

func Listen(addr string) (net.Listener, error)

Listen returns a net.Listener appropriate for the current platform. addr: on Unix, a filesystem path (e.g. /tmp/insyra.sock) on Windows, a named pipe path (e.g. \\.\\pipe\\mypipe)

func ReadMessage

func ReadMessage(r io.Reader) ([]byte, error)

ReadMessage reads a single length-prefixed message (uint32 little-endian) and returns the payload bytes.

func WriteMessage

func WriteMessage(w io.Writer, b []byte) error

WriteMessage writes a single length-prefixed message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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