name

Type: String[128]

The name property of the Connection class contains the generic name of the connection (remote device) to which the object is to connect. Each subclass of the Connection class can interpret the name property as required. If subclasses of the Connection class require additional information to establish a connection, you may need to define additional properties (for example, the TCP/IP connection may require a valid port number).

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

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