tcp

package
v0.0.0-...-d4bbc0e Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadData

func ReadData(conn *net.TCPConn) ([]byte, error)

func SendData

func SendData(conn *net.TCPConn, data []byte) error

Types

type DataPkg

type DataPkg struct {
	Len  uint32
	Data []byte
}

func (*DataPkg) Marshal

func (d *DataPkg) Marshal() []byte

Jump to

Keyboard shortcuts

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