tcp

package
v0.0.0-...-41c7706 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultTcpBufferSize = 1024

Variables

This section is empty.

Functions

func ListenInterruptableViaTcp4

func ListenInterruptableViaTcp4(ctx context.Context, handler func(*net.Conn), port uint)

func ListenViaTcp4

func ListenViaTcp4(handler func(*net.Conn), port uint)

func ReadFuncTcp4

func ReadFuncTcp4(conn *net.Conn) ([]byte, error)

func RequestViaTcp4

func RequestViaTcp4(address string, port uint, handler func(*net.Conn, uint, []byte), method uint, data []byte)

func WriteFuncTcp4

func WriteFuncTcp4(conn *net.Conn, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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