Beispiel #1
0
 /**
  * Test for the presence of incoming packets.
  *
  * @return true if there are packets available to be received.
  */
 public boolean incoming() {
   return rcvr.incoming();
 }
Beispiel #2
0
 /** Wait for Substrate to stop. */
 public void join() throws Exception {
   sndr.join();
   rcvr.join();
 }
Beispiel #3
0
 /**
  * Retrieve the next packet from the substrate.
  *
  * @return the next incoming packet
  */
 public Packet receive() {
   return rcvr.receive();
 }
Beispiel #4
0
 /** Start Substrate running. */
 public void start() {
   sndr.start();
   rcvr.start();
 }