netutil

package
v0.0.0-...-c39e8e5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: AGPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinConn

func JoinConn(ctx context.Context, c1, c2 net.Conn) error

JoinConn joins two net.Conn's. It exits if on any kind of read/write error and will close both connections.

func WrapKeepAlive

func WrapKeepAlive(ln net.Listener) net.Listener

WrapKeepAlive wraps the listener. If the listener is a TCP listener, it sets keep alive to 3 minute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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