public boolean isConnected() {
		return (getConnectState().equals(ConnectState.CONNECTED));
	}
	
	
/**
 * The following isHealthy() looks like good code, but not sure if I need it yet.	
 */
	
//	/**
//	 * TODO:  ask Martin whether there is a better way to implement a health check.
//	 * @return
//	 */
//	public boolean isHealthy() {
//		boolean ynHealthy = false; //assume that connection is bad.
//	  m_controlThread.sendMessage("[out-network");
//	  String networkTracePortStr = m_controlThread.getMessage();
//	  int networkTracePort = -1;
//	  try {
//		  networkTracePort = Integer.parseInt(networkTracePortStr);
//		  if (networkTracePort > 0) {
//			  ynHealthy = true;
//		  }
//	  } catch (Exception e) {
//		  ynHealthy = false;
//	  }
//	  return ynHealthy;
//	}

	//TODO ?
//	/**
//	 * 
//	 * @return Returns null if IP was not available at time of call, probably b/c the connection was not complate.
//	 * @throws Exception
//	 */
//	public HostPort getHostPortIfConnected() {
//		HostPort rc = null;
//		if (m_remoteAddress!=null) {
//			rc = new HostPort();
//			rc.hostNameOrIpAddress = getIp();
//			rc.port = this.port;
//			rc.setIp(getIp());
//		}
//		return rc;
//	}