socket

package
v0.0.0-...-d9922dd Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDeadLineDuration = 180 * time.Second

Variables

This section is empty.

Functions

func Transfer

func Transfer(client net.Conn, server net.Conn, closeConn bool) error

func TransferDynamic

func TransferDynamic(client net.Conn, serverConnFactory ConnFactoryFunc, closeConn bool) error

func TransferThenClose

func TransferThenClose(client net.Conn, server net.Conn) error

Types

type ConnFactoryFunc

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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