void send(String data) {
		if (socket == null) {
			println("Cannot operate with a null socket");
			return;
		}

		PrintStream output;
		try {
			output = new PrintStream(socket.getOutputStream());
			output.println(data);
		} catch (IOException e) {
			println("An exception has occured while sending to the socket");
		}
	}