setUsername
setUsername — stores a user name and password for this connection.
void setUsername( | username, | |
password); |
LPCTSTR username;LPCTSTR password;public void setUsername( | username, | |
password); |
String username;String password;usernameThe name of a user.
passwordA password for that user.
This method stores a user name and password for this connection, to be
transmitted by a subsequent call to sendLogin. When a subsequent successful
connection is made to the DataHub instance, sendLogin will be
called prior to the onConnectionSuccess callback. The .Net and
Java implementations of setUsername will disconnect from
the DataHub instance if the connection is currently active. The C++ implementation
will not. If either of the username or password parameters is
"" or NULL, then no username or
password will be sent on the next successful connection.