uds

package
v0.0.0-...-afa323b Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 3

Documentation

Overview

Package uds contains helpers for testing external UDS functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBoundUDSTree

func CreateBoundUDSTree(baseDir string) (string, func(), error)

CreateBoundUDSTree creates a local tree of bound unix domain sockets that are ready to accept connections.

These are created at locations:

  • /stream/echo
  • /stream/nonlistening
  • /seqpacket/echo
  • /seqpacket/nonlistening
  • /dgram/null

func CreateFifoTree

func CreateFifoTree(baseDir string) (string, func(), error)

CreateFifoTree creates a local tree of fifo files for use in testing:

  • /in
  • /out

func CreateSocketConnectors

func CreateSocketConnectors(baseDir string) (string, func(), error)

CreateSocketConnectors creates goroutines that will attempt to connect to sockets at the following locations, and turn into an echo client once connected:

  • /stream/created-in-sandbox{-epoll}
  • /seqpacket/created-in-sandbox{-epoll}

Types

This section is empty.

Jump to

Keyboard shortcuts

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