Used to specify the simulated client information; called once per simulated client.
bool _callback IdentifySimulatedClient(
asa_uint32 simulatedClientNum,
asa_uint32 numSimulatedClients,
char ** remoteID,
char ** username,
char ** password,
char *** authenticationParameters,
asa_uint16 * numAuthenticationParameters,
char ** ldt,
const MLReplayNamesAndValues * namesAndValues
)
simulatedClientNum The simulated client number (ordinal 1) used to distinguish this simulated client from other simulated clients in the same mlreplay instance.
numSimulatedClients The total number of simulated clients in this mlreplay instance.
remoteID An output parameter that must be set to the remote ID of this simulated client, which must be a unique value across all mlreplay instances.
username An output parameter that must be set to the MobiLink username for this simulated client.
password An output parameter that must be set to the password for the MobiLink user.
authenticationParameters An output parameter that must be set to an array of authentication parameters for this simulated client.
numAuthenticationParameters An output parameter set to the number of authentication parameters returned in authenticationParameters.
ldt An output parameter set to the last download time for the user. The format of ldt must be yyyy-MM-dd hh:mm:ss.SSS.
namesAndValues The set of defined names and values used to customize replay behavior.
If the username, password, authenticationParameters, or ldt are null, then mlreplay uses the corresponding values in the recorded protocol. If remoteID is null, mlreplay replaces the remote ID with a GUID for the simulated client.
When generated, this callback contains commented out code that you can implement when using a generic username, password, and remote ID for a replay session. The code creates a username, password, and remote ID of user_simulated client number, pwd_simulated client number, and rid_simulated client number, respectively.
True on success, false on error, which cancels the replay session.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |