log.error(e);
System.err.println(e);
    static void receiverLoop(DatagramSocket sock) {	DatagramPacket packet;	byte[]         buf;	while(true) {	    buf=new byte[256];	    packet=new DatagramPacket(buf, buf.length);	    try {		sock.receive(packet);		System.out.println("Receive packet from " + packet.getAddress().getHostAddress() +                           ':' + packet.getPort() + ": " + new String(packet.getData()));	    }	    catch(Exception e) {		log.error(e);		break;	    }	}    }