Exemplo n.º 1
0
 public void run() {
   // We might not get an error, since it is not sure if an
   // interface exists with this intfIndex as index!
   InterfacePdu up2;
   while (context != null) {
     try {
       up2 = new InterfacePdu(context, this, intfIndex);
       Thread.sleep(interval);
     } catch (InterruptedException exc) {;
     } catch (java.io.IOException exc) {
       System.out.println("run(): IOException " + exc.getMessage());
     } catch (PduException exc) {
       System.out.println("run(): PduException " + exc.getMessage());
     }
   }
 }
Exemplo n.º 2
0
 public void start() {
   Thread me = new Thread(this);
   me.setPriority(Thread.MIN_PRIORITY);
   me.start();
 }