Classes | External Control > OSC > Matchers

OSCFuncBothMessageMatcher : AbstractMessageMatcher : Object

Matches incoming messages to responder funcs based on receive port and sender address

Description

This is used by OSCMessageDispatcher and OSCMessagePatternDispatcher to match incoming OSC messages to instances of OSCFunc or OSCdef using receive port and sender address. This class is private, and generally users should not need to address instances directly.

Class Methods

OSCFuncBothMessageMatcher.new(addr, recvPort, func)

Make a new instance.

Arguments:

addr

The NetAddr to attempt to match.

recvPort

The receive port to attempt to match, in the form of an Integer.

func

The Function to evaluate if a match is found.

Returns:

An OSCFuncBothMessageMatcher.

Inherited class methods

Instance Methods

.value(msg, time, testAddr, testRecvPort)

Check to see if a message matches, and evaluate func if it does.

Arguments:

msg

The OSC message as an Array in the form [OSCAddress, other args].

time

A Float indicating the time the incoming message was sent.

testAddr

A NetAddr indicating the source of the message.

testRecvPort

An Integer indicating the port on which the message was received.

Inherited instance methods