oscutil

package
v4.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalArgument

func UnmarshalArgument(msg *osc.Message, argIndex int, value interface{}) error

UnmarshalArgument tries to parse a given value from the osc message arguments at given index

func UnmarshalArguments

func UnmarshalArguments(msg *osc.Message, values ...interface{}) error

UnmarshalArguments tries to match the given variables to osc message arguments

Types

type RegexpDispatcher

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

RegexpDispatcher is a dispatcher for OSC packets. It handles the dispatching of received OSC packets to Handlers for their given address.

func NewRegexpDispatcher

func NewRegexpDispatcher() *RegexpDispatcher

NewRegexpDispatcher returns an RegexpDispatcher.

func (*RegexpDispatcher) AddMsgHandler

func (s *RegexpDispatcher) AddMsgHandler(addr string, handler osc.MethodFunc) error

AddMsgHandler adds a new message handler for the given OSC address.

func (*RegexpDispatcher) Dispatch

func (s *RegexpDispatcher) Dispatch(packet osc.Packet, a net.Addr)

Dispatch dispatches OSC packets. Implements the Dispatcher interface.

Jump to

Keyboard shortcuts

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