Client:
Filter:
Classes (extension) | Networking

Client
ExtensionExtension

represents a remote sclang application
Location: NOT INSTALLED!

Description

Client and LocalClient together represent a sender / receiver pair for sclang side OSC messages. Using SynthDef-like global function definitions, ClientFunc, an sclang application can evaluate code on a remote sclang app.

For examples, see LocalClient.

Class Methods

.named

dictionary of all named instances of Client

.new

returns a new instance and stores it in global dictionary all. the port is set to defaultPort, which is hardcoded presently. if no address is passed in, localhost is used.

Inherited class methods

Instance Methods

.send

evaluates a client function that is stored at that key

.password

get and set password for interpreter access

.cmdName

set the cmdName under which the client sends (default: '/client') this cmdName must be the same as the LocalClient receiver cmdName.

.interpret

if the remote client has the same password, it interprets the string

.verbose

get set flag whether to post info

.defaultAddr

.defaultPort

the default (local) address and port to use

.name

the client's name (a Symbol)

.addr

Arguments:

address

the client's NetAddress

Inherited instance methods