@Override
    public void send( int channel, Message message )
    {
        if( log.isLoggable(Level.FINER) ) {
            log.log(Level.FINER, "send({0}, {1})", new Object[]{channel, message});
        }
        if( channel >= 0 ) {
            // Make sure we aren't still connecting.  Channels
            // won't be valid until we are fully connected since
            // we receive the channel list from the server.
            // The default channels don't require the connection
            // to be fully up before sending.  
            waitForConnected();
        }
    
        if( channel < CHANNEL_DEFAULT_RELIABLE || channel + CH_FIRST >= channels.size() ) {
            throw new IllegalArgumentException( "Channel is undefined:" + channel );
        }
        send(channel + CH_FIRST, message, true);
    }
A default implementation of the Client interface that delegates
 its network connectivity to a kernel.Connector.

 @version   $Revision$
 @author    Paul Speed
jme3-networking/src/main/java/com/jme3/network/base/DefaultClient.java