pipe

package
v0.0.0-...-0b3c072 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const IdSize = 2

Variables

This section is empty.

Functions

func CreatePipes

func CreatePipes(info info.Info, keepaliveInterval, writeTimeout *time.Duration, boards []string, dataChan chan<- packet.Packet, onConnectionChange func(string, bool), config Config, readers map[uint16]common.ReaderFrom, trace zerolog.Logger) map[string]*Pipe

Types

type Config

type Config struct {
	TcpClientTag    string
	TcpServerTag    string
	Mtu             uint
	KeepAliveProbes int
}

type Pipe

type Pipe struct {
	// contains filtered or unexported fields
}

func (*Pipe) Close

func (pipe *Pipe) Close(reconnect bool) error

func (*Pipe) Laddr

func (pipe *Pipe) Laddr() string

func (*Pipe) Raddr

func (pipe *Pipe) Raddr() string

func (*Pipe) SendFault

func (pipe *Pipe) SendFault(from string, payload []byte)

func (*Pipe) Write

func (pipe *Pipe) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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