tcp

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuffer

func GetBuffer(size int) []byte

GetBuffer gets a buffer from pool, size should in range: [1, 65536], otherwise, this function will call make([]byte, size) directly.

func PutBuffer

func PutBuffer(buf []byte)

PutBuffer puts a buffer into pool.

Types

type DefaultTcpDialer

type DefaultTcpDialer struct {
}

func (DefaultTcpDialer) Dial

func (tcpd DefaultTcpDialer) Dial(nework, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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