public void broadCast(Messages msg, String data, Set<Node> list) {
		for (Node toNode : list) {
			try {
				DatagramSocket dtgrSocket = new DatagramSocket();
				byte[] buffer = (msg + "," + data).getBytes();
				DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
				packet.setPort(toNode.getPort());
				packet.setAddress(InetAddress.getByName(toNode.getIp()));
				dtgrSocket.send(packet);
				dtgrSocket.close();
				Arrays.fill(buffer, (byte) 0);
			} catch (SocketException e) {
				e.printStackTrace();
			} catch (UnknownHostException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}