Help us shape the future of Go! Take the 2026 Go Developer Survey

socket

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package socket provides borrowed-descriptor fixtures for input contracts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitRead

func AwaitRead(t *testing.T, producer *os.File, done <-chan error) error

AwaitRead waits for cancellation and releases the owned peer on watchdog expiry.

func Flags

func Flags(t *testing.T, file *os.File) int

Flags reads descriptor flags without changing caller ownership.

func Pair

func Pair(t *testing.T, blocking bool) (*os.File, *os.File)

Pair creates a socket pair with the requested borrowed-input descriptor mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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