iotools

package
v0.0.0-...-212a885 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

* @Author: Wangjun * @Date: 2021-05-15 22:43:19 * @LastEditTime: 2021-08-09 17:13:43 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\iotools\iotools.go * hnxr

Index

Constants

View Source
const PacketHeadLength = 2

PacketHeadLength 包头的长度

Variables

This section is empty.

Functions

func Recv

func Recv(r io.Reader) (data []byte, err error)

Recv 接收 在原始的tcp数据留上加上2字节报文头 最高位为1表示要解压缩

func Send

func Send(w io.Writer, data []byte) (n int, err error)

Send 发送

Types

This section is empty.

Jump to

Keyboard shortcuts

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