diff -r 0f44b7360c8d -r 925b7ee746e3 front_processing/extern/TUIO_JAVA/src/com/illposed/osc/OSCPort.java --- a/front_processing/extern/TUIO_JAVA/src/com/illposed/osc/OSCPort.java Thu Mar 22 18:15:53 2012 +0100 +++ b/front_processing/extern/TUIO_JAVA/src/com/illposed/osc/OSCPort.java Fri Mar 23 16:24:36 2012 +0100 @@ -1,51 +1,51 @@ -/** - * @author cramakrishnan - * - * Copyright (C) 2004, C. Ramakrishnan / Illposed Software - * All rights reserved. - * - * See license.txt (or license.rtf) for license information. - * - * - * OSCPort is an abstract superclass. To send OSC messages, use OSCPortOut. - * To listen for OSC messages, use OSCPortIn. - * - */ - -package com.illposed.osc; - -import java.net.*; -import java.io.IOException; - -public abstract class OSCPort { - - protected DatagramSocket socket; - protected int port; - - /** - * The port that the SuperCollider synth engine ususally listens too - */ - public static final int defaultSCOSCPort = 57110; - - /** - * The port that the SuperCollider language engine ususally listens too - */ - public static final int defaultSCLangOSCPort = 57120; - - /** - * @see java.lang.Object#finalize() - */ - protected void finalize() throws Throwable { - super.finalize(); - socket.close(); - } - - /** - * Close the socket and free-up resources. It's recommended that clients call - * this when they are done with the port. - */ - public void close() { - socket.close(); - } - -} +/** + * @author cramakrishnan + * + * Copyright (C) 2004, C. Ramakrishnan / Illposed Software + * All rights reserved. + * + * See license.txt (or license.rtf) for license information. + * + * + * OSCPort is an abstract superclass. To send OSC messages, use OSCPortOut. + * To listen for OSC messages, use OSCPortIn. + * + */ + +package com.illposed.osc; + +import java.net.*; +import java.io.IOException; + +public abstract class OSCPort { + + protected DatagramSocket socket; + protected int port; + + /** + * The port that the SuperCollider synth engine ususally listens too + */ + public static final int defaultSCOSCPort = 57110; + + /** + * The port that the SuperCollider language engine ususally listens too + */ + public static final int defaultSCLangOSCPort = 57120; + + /** + * @see java.lang.Object#finalize() + */ + protected void finalize() throws Throwable { + super.finalize(); + socket.close(); + } + + /** + * Close the socket and free-up resources. It's recommended that clients call + * this when they are done with the port. + */ + public void close() { + socket.close(); + } + +}