コード例 #1
0
 public void sendMessage(byte[] msg) throws Exception {
   m_SendQueue.put(msg);
 }
コード例 #2
0
 public byte[] receiveMessage() throws Exception {
   return (byte[]) m_ReceiveQueue.take();
 } // receiveMessage
コード例 #3
0
 protected boolean hasResponse() {
   return !m_ReceiveQueue.isEmpty();
 }