SuperCollider CLASSES

OSCFuncRecvPortMessageMatcher

Matches incoming messages to responder funcs based on receive port

Description

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

Class Methods

*new (recvPort, func)

Make a new instance.

Arguments:

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 OSCFuncRecvPortMessageMatcher.

Inherited class methods

Instance Methods

-value (msg, time, addr, 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.

addr

A NetAddr indicating the source of the message.

testRecvPort

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

Inherited instance methods