Internet Direct (Indy)
Home
PreviousUpNext
TIdURI.Port Property

Represents the port portion of a URI.

Pascal
property Port: string;

Port is a String property that represents the port to use for the identifer specified in URI. For example, a URI with the value "http://www.nevrona.com:80/indy/index.html" would result in Port property containing the value "80". 

Often the Port property is not used because most URI's use a default port which is indicated by the protocol, as in "http://www.nevrona.com/indy/index.html". The HTTP protocol uses port 80 by default. 

However, this value should be checked since port can be overridden by a port specified in the URI.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.