OSCObjectSpace:
Filter:
Classes (extension) | Relay classes

OSCObjectSpace : AbstractOSCDataSpace : Object
ExtensionExtension

Sync simple data types between Peers
Source: NMLRelays.sc

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)

Class Methods

OSCObjectSpace.new(addrBook, acceptEvents: false, oscPath: '/oscObjectSpace', encryptor)

(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

Inherited class methods

Instance Methods

.getPairs

Get pairwise keys and values

Returns:

Return an Array with all keys and values pairwise.

.acceptEvents

.acceptEvents = value

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

Returns:

.validate

.validate = value

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:

Inherited instance methods

Examples

Important Issues when using OSCObjectSpace