OSCPort { public void close() throws IOException { channel.close(); } protected  OSCPort(final SocketAddress local, final SocketAddress remote); static int defaultSCOSCPort(); static int defaultSCLangOSCPort(); static InetAddress generateWildcard(final SocketAddress address); static int extractFamily(final SocketAddress address); void connect(); void disconnect(); boolean isConnected(); SocketAddress getLocalAddress(); SocketAddress getRemoteAddress(); void close(); static final int DEFAULT_SC_OSC_PORT; static final int DEFAULT_SC_LANG_OSC_PORT; }
@Test public void testReceivingBroadcast() throws Exception { sender.close(); Thread.sleep(WAIT_FOR_SOCKET_CLOSE); InetAddress broadcastAddress = InetAddress.getByName("255.255.255.255"); sender = new OSCPortOut(broadcastAddress); testReceiving(); }