tcp

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSocketNotOK = errors.New("socket is not ok")

Functions

This section is empty.

Types

type NetConn

type NetConn interface {
	net.Conn
	FD() netfd.FD
	OK() bool
}

func Conn

func Conn(fd netfd.FD, remote, local *net.TCPAddr) NetConn

func Dial

func Dial(addr string) (NetConn, error)

type NetListener

type NetListener interface {
	net.Listener
	FD() netfd.FD
	OK() bool
}

func Listen

func Listen(addr string) (NetListener, error)

func Listener

func Listener(fd netfd.FD, addr *net.TCPAddr) NetListener

type TLSConn

type TLSConn interface {
	NetConn
}

func TLS

func TLS(conn NetConn, config *lib.Config) TLSConn

Jump to

Keyboard shortcuts

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