bundle

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BundleFlagNetworkMainnet = 0x0001
	BundleFlagNetworkTestnet = 0x0002
	BundleFlagCarrierLibP2P  = 0x0010
	BundleFlagCompressed     = 0x0100
	BundleFlagBroadcasted    = 0x0200
	BundleFlagHandshaking    = 0x0400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Flags     int
	Initiator peer.ID
	Message   message.Message
}

func NewBundle

func NewBundle(initiator peer.ID, msg message.Message) *Bundle

func (*Bundle) BasicCheck added in v0.15.0

func (b *Bundle) BasicCheck() error

func (*Bundle) CompressIt

func (b *Bundle) CompressIt()

func (*Bundle) Decode

func (b *Bundle) Decode(r io.Reader) (int, error)

func (*Bundle) Encode

func (b *Bundle) Encode() ([]byte, error)

func (*Bundle) String added in v0.15.0

func (b *Bundle) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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