public void run(){
        
        _logger.config("Connecting to kaid");
        
        while(true){
            
            String str = "";
            try {
                byte [] receiveData = new byte [1500];
                DatagramPacket receivePacket = new DatagramPacket(receiveData,receiveData.length);
                csocket.receive(receivePacket);
//                str = new String(receivePacket.getData());

                                
//                if (str!=""){
                if(receiveData.length > 0){
                    // Pass string to Manager
                    JKaiUI.getManager().process(receivePacket.getData());
                
                }
            }
            catch (Exception e) {
                System.out.println("Connection run:"+e);
                _logger.severe("Error in receiver thread: "+ e.getMessage() + ": "+ str.trim());
            }
        }
        
        
    }