GetServerInfo Function

Example

The GetServerInfo function retrieves the end-user's selection of server and port to which to connect. Use this function to set a TRPCBroker component's Server and ListenerPort properties to reflect the end-user's choice before connecting to the server.

If there is more than one server/port to choose from, GetServerInfo displays an application window that allows users to select a service to connect to:

Syntax:

function GetServerInfo(var Server, Port: string): integer;

The unit is RpcConf1.

The GetServerInfo function handles the following scenarios: