goPack

package
v0.0.0-...-da30360 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAGIC      = uint32(Packet_MAGIC_Number)
	SHIFT      = uint32(Packet_SHIFT_TYPE)
	SHIFT_SEND = uint32(Packet_SHIFT_SEND)
	MASK_SEND  = uint32(Packet_MASK_SEND)
	MASK_DEST  = uint32(Packet_MASK_DEST)
)

Variables

This section is empty.

Functions

func GetSender

func GetSender(p *Packet) string

func PackAny

func PackAny(m proto.Message) (*any.Any, error)

func Prepare

func Prepare(id uint32, t_ Packet_Type, s_, d_ Packet_Section) (p *Packet)

func ReverseTo

func ReverseTo(p *Packet, t Packet_Type) *Packet

func UnpackAny

func UnpackAny(b *any.Any, m proto.Message) error

TODO check message url

Types

This section is empty.

Jump to

Keyboard shortcuts

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