de.jreality.toolsystem.util
Class OSCPool
java.lang.Object
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
OSCPool
public OSCPool()
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