ipc

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ipc provides the local, same-user-only transport between stagent processes: Unix domain sockets on Linux/macOS and named pipes on Windows. Nothing here ever listens on TCP.

Index

Constants

This section is empty.

Variables

View Source
var ErrInUse = errors.New("ipc: address already served by a live process")

ErrInUse is returned by Listen when another live process already serves the address (e.g. a second daemon racing the first).

Functions

func Dial

func Dial(addr string, timeout time.Duration) (net.Conn, error)

Dial connects to addr.

func Listen

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

Listen serves addr (a socket path). A stale socket file left by a crashed process is removed; a live one yields ErrInUse. The socket is chmod 0600 and every accepted connection is checked to come from the same UID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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