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