de.jreality.toolsystem.util
Class OSCPool

java.lang.Object
  extended by de.jreality.toolsystem.util.OSCPool

public class OSCPool
extends Object

Simple class for managing a pool of OSC clients and servers, so that many OSC tools may share the same OSC connection. Pretty straightforward, except that users of this class should not call stop() on any of the clients/servers received from this class; just rely on the garbage collector to clean things up if necessary. Depends on the NetUtil OSC library http://www.sciss.de/netutil/.

Author:
brinkman

Constructor Summary
OSCPool()
           
 
Method Summary
static OSCClient getTCPClient(InetSocketAddress addr)
           
static OSCServer getTCPServer(int port)
           
static OSCClient getUDPClient(InetSocketAddress addr)
           
static OSCServer getUDPServer(int port)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSCPool

public OSCPool()
Method Detail

getUDPClient

public static OSCClient getUDPClient(InetSocketAddress addr)
                              throws IOException
Throws:
IOException

getTCPClient

public static OSCClient getTCPClient(InetSocketAddress addr)
                              throws IOException
Throws:
IOException

getUDPServer

public static OSCServer getUDPServer(int port)
                              throws IOException
Throws:
IOException

getTCPServer

public static OSCServer getTCPServer(int port)
                              throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException