Class: OSCPort

Environment: Siren
Superclass: Siren.PortModel
Category: MusicIO-OSC
Instance variables: socket address

An OSCPort represents a connection to an OSC client.

Instance Variables:
socket how am I connected?
address where do I go?

Shared Variables:
DefaultIP where's my default server?
DefaultPort where's my default server?

accessing

portNumber: newPortNum
Reset the receiver's UDP socket port number

actions

send: aMessage
Send something

initialize-release

init: t1
Set up

MetaClass: OSCPort class

instance-creation

cslHost
Answer the default port for CSL

default
Answer the default instance

localhost
Answer an OSC port on the local host

scHost
Answer the default OSC server reference

to: t1
Open a port on the given device

to: ip port: port
^an OSCPort with the given attributes

toHostName: t1
Answer an instance on the given host

toHostName: aHostName portNumber: aPort
^an OSCPort
Convenience method

toLocalhostPortNumber: aPort
^an OSCPort
Convenience method

defaults

defaultIP
Answer the class var default

defaultIP: value
Set the class var default

defaultPort
Answer the class var default

defaultPort: value
Set the class var default

defaultSCOSCPort
Answer the default port for OSC

examples

demo
OSCPort demo

demo2
OSCPort demo2

sendFreq
PSCPort sendFreq

sendStart
OSCPort sendstop

sendStop
Send a stop message