tcp

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

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

Message is a general tcp message format.

func NewMessage

func NewMessage(cap int) *Message

NewMessage create a Message with capacity.

func (*Message) Read

func (m *Message) Read(conn net.Conn) error

Read read from conn.

func (*Message) Reset

func (m *Message) Reset()

Reset clean the Message.

func (*Message) Write

func (m *Message) Write(conn net.Conn) error

Write write to conn.

Jump to

Keyboard shortcuts

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