hbmcast

package
v1.0.0-alpha1.0...-2e0dbe4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package hbmcast implement a hb multicast driver

Index

Constants

This section is empty.

Variables

View Source
var (

	// MaxMessages is the maximum number of messages from a source
	MaxMessages = 10

	// MaxFragments is the maximum number of fragments when Tx split the message
	// into fragments.
	MaxFragments = 200

	// MaxChunkSize is the maximum size of chunk in a fragment
	MaxChunkSize = 50 * 1024

	// MaxDatagramSize is the maximum size of a datagram to read
	MaxDatagramSize = 60 * 1024
)

Functions

func New

func New() hbcfg.Confer

Types

type T

type T struct {
	hbcfg.T
}

T is the multicast heartbeat

The maximum size of messages that this heartbeat is able to send and receive depends on var Max... values

The maximum size of hb message to send is MaxFragments * MaxChunkSize: 10M

The maximum size of hb message to receive is MaxFragments * MaxDatagramSize: 12M

The maximum total data size from a source is MaxMessages * MaxFragments * MaxDatagramSize: 100M

func (*T) Configure

func (t *T) Configure(ctx context.Context)

Configure implements the Configure function of Confer interface for T

Jump to

Keyboard shortcuts

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