echo

package
v0.0.0-...-6337d12 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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

Jump to

Keyboard shortcuts

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