pchan

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsDartCallback

func AsDartCallback(op Op) dgo.DartCallback

Types

type Manager

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

func NewManager

func NewManager(n uint8) Manager

func (*Manager) GetLids

func (m *Manager) GetLids(finished bool, chid uint8, result *[]dgo.CallableDartCallback) (samePort bool)

func (*Manager) Handle

func (m *Manager) Handle(op pcop.Op) (result bool)

For op == CHAN_LISTEN, result == true if the listener was successfully registered; for op == META_DETACHED, result is always true; for other values of op, result is meaningless.

func (*Manager) Recycle

func (m *Manager) Recycle()

type Op

type Op = pcop.Op

type OpKind

type OpKind = pcop.OpKind

Jump to

Keyboard shortcuts

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