trans

package
v0.0.0-...-23d3adf Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpTrans

type TcpTrans interface {
	NewTcpListener(proto, addr string) (*net.TCPListener, error)
	NewListener(proto, addr string, config TcpTransConfig) (net.Listener, error)
	PrepareAcceptedConn(conn net.Conn, config TcpTransConfig) error
}

func NewTcpTrans

func NewTcpTrans() TcpTrans

type TcpTransConfig

type TcpTransConfig struct {
	UseReuseport       bool
	MaxListenerBacklog int
}

Jump to

Keyboard shortcuts

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