Пример #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();
 }