routines

package
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidConnectionType connection object is invalid
	ErrInvalidConnectionType = errors.New("connection object is invalid")
)

Functions

func GetMessageBuffer

func GetMessageBuffer(c io.Closer) ([]byte, error)

GetMessageBuffer read message from connection

func WriteMessage

func WriteMessage(conn io.Closer, msg packet.Provider) error

WriteMessage write message into connection

func WriteMessageBuffer

func WriteMessageBuffer(c io.Closer, b []byte) error

WriteMessageBuffer write buffered message into connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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