echo

package
v0.0.0-...-cbe29f7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 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 EchoPacket

type EchoPacket struct {
	// contains filtered or unexported fields
}

func NewEchoPacket

func NewEchoPacket(buff []byte, hasLengthField bool) *EchoPacket

func (*EchoPacket) GetBody

func (this *EchoPacket) GetBody() []byte

func (*EchoPacket) GetLength

func (this *EchoPacket) GetLength() uint32

func (*EchoPacket) Serialize

func (this *EchoPacket) Serialize() []byte

type EchoProtocol

type EchoProtocol struct {
}

func (*EchoProtocol) ReadPacket

func (this *EchoProtocol) ReadPacket(conn *net.TCPConn) (gotcp.Packet, error)

Directories

Path Synopsis
comm
通讯协议处理,主要处理封包和解包的过程
通讯协议处理,主要处理封包和解包的过程

Jump to

Keyboard shortcuts

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