Example #1
0
 /**
  * Calls the receiver callback. We do not serialize access to this method, and it may be called
  * concurrently by several Connection handler threads. Therefore the receiver needs to be
  * reentrant.
  */
 public void receive(Address sender, byte[] data, int offset, int length) {
   receiver.receive(sender, data, offset, length);
 }
Example #2
0
 /**
  * Retrieve the next packet from the substrate.
  *
  * @return the next incoming packet
  */
 public Packet receive() {
   return rcvr.receive();
 }