util

package
Version: v0.0.0-...-4887f56 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(addr string) net.Conn

func Pack

func Pack(message Marshallable) ([]byte, error)

func Receive

func Receive(c net.Conn) ([]byte, error)

func ReceivePoll

func ReceivePoll(c net.Conn) (*Poll, error)

func ReceiveRequest

func ReceiveRequest(c net.Conn) (*Message, error)

func Send

func Send(c net.Conn, message Marshallable) error

Types

type Marshallable

type Marshallable interface {
	MarshalTo(dAtA []byte) (int, error)
	Size() int
	String() string
}

XXX NO COPY PASTA

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL