-public static class PandaDriver extends Thread{
- int lastSeen;
- void start(){super.start();}
- void run(){
- while(true){
- if(queue.size()>0) {
- for(int i=0; i<queue.size(); i++){
- this.sendNow(queue.get(queue.size()-1));
- queue.clear();
- }
- } else {
- try{sleep(1);} catch(Exception e){}
- }
- }
- }
-
- //UDP udp; // define the UDP object
-