@Override
    public void terminate() throws InterruptedException
    {
        if( thread == null )
            throw new IllegalStateException( "Kernel not initialized." );

        try {
            thread.close();
            writer.shutdown();
            thread = null;
            
            // Need to let any caller waiting for a read() wakeup 
            wakeupReader();       
        } catch( IOException e ) {
            throw new KernelException( "Error closing host connection:" + address, e );
        }
    }
A Kernel implementation using UDP packets.

 @version   $Revision$
 @author    Paul Speed
jme3-networking/src/main/java/com/jme3/network/kernel/udp/UdpKernel.java