utils

package
v0.0.0-...-2bf1368 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transfer

type Transfer struct {
	//分析它应该有哪些字段
	Conn net.Conn
	Buf  [8096]byte //这时传输时,使用缓冲
}

这里将这些方法关联到结构体中

func (*Transfer) ReadPkg

func (this *Transfer) ReadPkg() (mes message.Message, err error)

func (*Transfer) WritePkg

func (this *Transfer) WritePkg(data []byte) (err error)

Jump to

Keyboard shortcuts

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