コード例 #1
0
ファイル: Substrate.java プロジェクト: Kleagleguo/kleagle
 /**
  * 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
ファイル: Substrate.java プロジェクト: Kleagleguo/kleagle
 /** Wait for Substrate to stop. */
 public void join() throws Exception {
   sndr.join();
   rcvr.join();
 }
コード例 #3
0
ファイル: Substrate.java プロジェクト: Kleagleguo/kleagle
 /**
  * Retrieve the next packet from the substrate.
  *
  * @return the next incoming packet
  */
 public Packet receive() {
   return rcvr.receive();
 }
コード例 #4
0
ファイル: Substrate.java プロジェクト: Kleagleguo/kleagle
 /** Start Substrate running. */
 public void start() {
   sndr.start();
   rcvr.start();
 }