public int getTimeout() {
		if (socket != null)
			try {
				return socket.getSoTimeout();
			} catch (IOException exc) {
				exc.printStackTrace();
				return -1;
			}
			else 
				return timeout;
	}