Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
每个模拟客户端调用一次;用于指定模拟客户端信息。
public 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 用于区别此模拟客户端与相同 MLReplay 实例中其它模拟客户端的模拟客户端号(顺序为 1)。
numSimulatedClients 此 MLReplay 实例中的模拟客户端总数。
remoteID 必须设置为此模拟客户端远程 ID 的输出参数,该参数必须为跨所有 mlreplay 实例的唯一值。
username 必须设置为此模拟客户端 MobiLink 用户名的输出参数。
password 必须设置为 MobiLink 用户口令的输出参数。
authenticationParameters 输出参数,必须设置为此模拟客户端的一组验证参数。
numAuthenticationParameters 输出参数,设置为 authenticationParameters 中返回的验证参数的数目。
ldt 设置为用户的 LDT 的输出参数。ldt 的格式必须为 yyyy-MM-dd hh:mm:ss.SSS。
namesAndValues 用于自定义重放行为的一组定义的名称和值。
如果 username、password、authenticationParameters 或 ldt 为空,则 MLReplay 使用记录的协议中对应的值。如果 remoteID 为空,则 MLReplay 将远程 ID 替换为模拟客户端的 GUID。
成功时返回 true,错误时返回 false,即取消重放会话。