port

Type: Integer

The port property of the TcpIpConnection class contains the target service port when using the open or openAsynch method or it defines the listen port when using the listen or listenAsynch method.

The code fragment in the following example shows the use of the port property.

// Creates a normal TCP/IP connection, sets the name to the current
// computer name, and sets the listen port to 7895.
create tcp;
self.tcp.name := app.computerName;
self.tcp.port := 7895;