|
2#
楼主 |
发表于 2008-3-27 15:28:45
|
只看该作者
Action:
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Thu Mar 27 11:56:49
*********************************************************************/
#include "lrs.h"
Action()
{
lr_start_transaction("send_talk");
lrs_send("socket3", "buf45", LrsLastArg);
lrs_receive("socket3", "buf46", LrsLastArg);
lrs_send("socket3", "buf47", LrsLastArg);
lr_end_transaction("send_talk", LR_AUTO);
lr_start_transaction("recv_talk");
lrs_set_receive_option(EndMarker, EndMarker_None);
lrs_receive("socket3", "buf48", LrsLastArg);
lrs_save_param("socket3", "buf48", "recv_msg", 757, 5);
lr_output_message("the message that i received is ====: %s", lr_eval_string("<recv_msg>"));
lrs_set_receive_option(EndMarker, EndMarker_None);
lrs_receive("socket3", "buf50", LrsLastArg);
lr_end_transaction("recv_talk", LR_AUTO);
return 0;
} |
|