Code example for Socket

Methods: getPort

0
	 * @return the path. 
	 */ 
	public String getHost() {
		String host = getHeader("host");
		if (host == null) {
			host = IPUtil.getIPAddress() + ":" + socket.getPort();
		} 
		return host;
	} 
 
	/** 
	 * Get the protocol associated with this request. 
	 * @return the protocol. 
	 */ 
	public String getProtocol() {
		return protocol;
	} 
 
	/** 
	 * Get the path associated with this request. 
	 * @return the path.