log.error("Receiver terminated: " + ex);
System.err.println("Receiver terminated: " + ex);
	public void run() {	    while(true) {		try {		    buf=new byte[256];		    packet=new DatagramPacket(buf, buf.length);		    sock.receive(packet);		    recv_buf=packet.getData();		    System.out.println(new String(recv_buf) + " [sender=" + packet.getAddress().getHostAddress() +                               ':' + packet.getPort() + ']');		}		catch(Exception ex) {		    log.error("Receiver terminated: " + ex);		    break;		}	    }	}