public final void send(byte[] data,boolean useMAC) throws InterruptedException {
  if (useSenderThread) {
    if (!useMAC) {
      Logger.println("(ServerConnection.send) Not sending defaultMAC " + System.identityHashCode(data));
      noMACs.add(System.identityHashCode(data));
    }
    if (!outQueue.offer(data)) {
      Logger.println("(ServerConnection.send) out queue for " + remoteId + " full (message discarded).");
    }
  }
 else {
    sendLock.lock();
    sendBytes(data,useMAC);
    sendLock.unlock();
  }
}

public final void send ( byte [ ] data , boolean useMAC ) throws InterruptedException { if ( useSenderThread ) { if ( ! useMAC ) { Logger . println ( "(ServerConnection.send) Not sending defaultMAC " + System . identityHashCode ( data ) ) ; noMACs . add ( System . identityHashCode ( data ) ) ; } if ( ! outQueue . offer ( data ) ) { Logger . println ( "(ServerConnection.send) out queue for " + remoteId + " full (message discarded)." ) ; } } else { sendLock . lock ( ) ; sendBytes ( data , useMAC ) ; sendLock . unlock ( ) ; } }
used to send packets to the remote server .
