net

package
v0.0.0-...-c8733ce Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func DialURL

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

func ListenURL

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

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