public boolean sendMessage(byte[] message) {
		try {
			to_peer.write(message);
			lastMessageSent = System.nanoTime();
			to_peer.flush();
			if(errorCount > 0)
				errorCount--;
		} catch (IOException e) {
			System.err.println("Error sending message: " + message.toString() +
					"/nto peer located at: " + ip);
			errorCount++;
			if(errorCount > 3)
				pulse = false;
			return false;
		}
		return true;
	}