OSCObjectSpace:
Filter:
Utopia/Classes (extension) | Relay classes

OSCObjectSpace
ExtensionExtension

Sync simple data types between Peers

Description

Sync simple data types between Peers. Unlike OSCDataSpace it supports more than just OSC data types. It functions similarly to a IdentityDictionary in its basic operation (i.e. you can use at and put)

Important Issues when using OSCObjectSpace

Class Methods

.new

(describe method here)

Arguments:

addrBook

an AddrBook where Peers are registered

acceptEvents

A Boolean indicating whether Events are permitted in this OSCObjectSpace.

oscPath

the oscPath to use when relaying

encryptor

an (optional) encryptor for sending objects

Returns:

a new OSCObjectSpace

Instance Methods

.getPairs

Get pairwise keys and values

Returns:

Return an Array with all keys and values pairwise.

.acceptEvents

Get or set a Boolean indicating whether this OSCObjectSpace accepts Events. Changing this will not purge any currently stored Events.

Returns:

.validate

Get or set a Boolean indicating whether this OSCObjectSpace validates received objects by searching for particular high risk strings (unixCmd, systemCmd, Pipe, File). Objects which do not pass validation are rejected. The default is true.

Returns:

Examples