com.illposed.osc
Class OSCPort

java.lang.Object
  extended bycom.illposed.osc.OSCPort
Direct Known Subclasses:
OSCPortIn, OSCPortOut

public abstract class OSCPort
extends java.lang.Object

OSCPort is an abstract superclass. To send OSC messages, use @see OSCPortOut. To listen for OSC messages, use @see OSCPortIn.

Copyright (C) 2003-2006, C. Ramakrishnan / Illposed Software. All rights reserved.

See license.txt (or license.rtf) for license information.

Version:
1.0
Author:
Chandrasekhar Ramakrishnan

Field Summary
protected  int port
           
protected  java.net.DatagramSocket socket
           
 
Constructor Summary
OSCPort()
           
 
Method Summary
 void close()
          Close the socket and free-up resources.
static int defaultSCLangOSCPort()
          The port that the SuperCollider language engine ususally listens to — 57120.
static int defaultSCOSCPort()
          The port that the SuperCollider synth engine ususally listens to — 57110.
protected  void finalize()
          Close the socket if this hasn't already happened.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

protected java.net.DatagramSocket socket

port

protected int port
Constructor Detail

OSCPort

public OSCPort()
Method Detail

defaultSCOSCPort

public static int defaultSCOSCPort()
The port that the SuperCollider synth engine ususally listens to — 57110.


defaultSCLangOSCPort

public static int defaultSCLangOSCPort()
The port that the SuperCollider language engine ususally listens to — 57120.


finalize

protected void finalize()
                 throws java.lang.Throwable
Close the socket if this hasn't already happened.

Throws:
java.lang.Throwable
See Also:
Object.finalize()

close

public void close()
Close the socket and free-up resources. It's recommended that clients call this when they are done with the port.