void setConnectionParms(
LPCTSTR hostname, LPCTSTR servicename )
;
void setConnectionParms(
LPCTSTR hostname, int port )
;
void setConnectionParms(
LPCTSTR hostname, int port, LPCTSTR username, LPCTSTR password )
;
void setConnectionParms(
String hostname, int port )
;
void setConnectionParms(
String hostname, int port, String username, String password )
;
The name of the host running the DataHub.
The name of the port on which to connect.
The connection port number.
The name of a user.
A password for that user.
This method sets the connection parameters to be used by the openConnection method. The port may be specified as either a string or directly by its number. The string may represent the port number, which is simply converted to an integer, or the symbolic port servicename. If a servicename is specified, then a lookup is performed immediately, and the resulting port number may be verified by following with a call to getPort.
The expanded syntax allows for setting the user name and password. See setUsername for more details.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.