Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
用于指定模拟客户端信息;每个模拟客户端调用一次。
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 的格式必须为 yyyy-MM-dd hh:mm:ss.SSS。
namesAndValues 用于自定义重放行为的一组定义的名称和值。
如果 username、password、authenticationParameters 或 ldt 为空,则 mlreplay 使用记录的协议中对应的值。如果 remoteID 为空,则 mlreplay 将远程 ID 替换为模拟客户端的 GUID。
生成后,此回调包含注释掉的代码,可在使用通用用户名、口令和远程 ID 进行重放会话时实现此代码。此代码会分别创建 user_simulated client number 用户名、pwd_simulated client number 口令和 rid_simulated client number 远程 ID。
成功时返回 true,错误时返回 false,即取消重放会话。