示例#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();
 }
示例#2
0
 /** Wait for Substrate to stop. */
 public void join() throws Exception {
   sndr.join();
   rcvr.join();
 }
示例#3
0
 /**
  * Retrieve the next packet from the substrate.
  *
  * @return the next incoming packet
  */
 public Packet receive() {
   return rcvr.receive();
 }
示例#4
0
 /** Start Substrate running. */
 public void start() {
   sndr.start();
   rcvr.start();
 }