public void sendTaggedData(int tag, int flags, byte[] bytes, SendCallback cb) { try { sender.enqueue(new SendEntry(tag, flags, bytes, this, cb)); } catch (InterruptedException e) { throw new RuntimeException(e); } }