public void writeTo(Socket socket, String data) {
		try {
			BufferedWriter out = new BufferedWriter(new OutputStreamWriter(
					socket.getOutputStream()));
			out.write(data + "\n");
			out.flush();
		} catch (Exception ex) {

			ex.printStackTrace();
		}
	}