getServiceName

getServiceName — retrieves the port service name connection parameter (C++ only).

Syntax

For C++:

CString getServiceName(void);

Returns

A string containing the currently set port service name.

Description

This method retrieves the port service name string set by the setConnectionParms command, or an empty string if it has never been set. If setConnectionParms was used to set the port directly (as an integer), then the servicename will not have been set. The value is not affected by openConnection or the status of the connection.