net

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const StdioScheme = "stdio"

Variables

View Source
var Listeners = &registry.Registry[ListenFunc]{}

Functions

func DialURL

func DialURL(addr string, transportParams url.Values) (net.Conn, error)

func IsStdioAddr added in v0.0.4

func IsStdioAddr(addr string) bool

func ListenURL

func ListenURL(addr string, transportParams url.Values) (net.Listener, error)

func NewStdioConn added in v0.0.4

func NewStdioConn() stdnet.Conn

func SetBacklogSize

func SetBacklogSize(backlog int) error

Types

type DialFunc

type DialFunc func(addr string, transportParams url.Values) (net.Conn, error)

type ListenFunc

type ListenFunc func(addr string, transportParams url.Values) (net.Listener, error)

type PrimedDialerFunc

type PrimedDialerFunc func() (net.Conn, error)

func CreateDialer

func CreateDialer(addr string, transportParams url.Values) (PrimedDialerFunc, error)

type TransportDialFunc

type TransportDialFunc func(host string, transportParams url.Values) (net.Conn, error)

type TransportListenFunc

type TransportListenFunc func(host string, transportParams url.Values) (net.Listener, error)

Jump to

Keyboard shortcuts

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