sent

package
v0.0.0-...-0dc16ad Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMsg

func SendMsg(conn net.Conn, protoID uint16, base proto.Message) error

func Unpack

func Unpack(conn net.Conn) (*s2s.Message, error)

func UnpackData

func UnpackData(conn net.Conn, msg *s2s.Message) (*s2s.Message, error)

todo client 拆包,包过大时,分段拆包,参见server拆包

func UnpackHead

func UnpackHead(conn net.Conn) (msg *s2s.Message, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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