录制c/s程序,lr没响应了
sql2000数据库,c语言写的客户端,主要是从服务器上下载图像到客户机,同时读取数据库里面的一些和图像有关的信息。选的是ftp、winsockets、my sql协议,录制完后vug没有响应了,怎么回事?谢谢还有请问,录制c/s程序,最主要的是那方面? 不是没响应,是太慢了,差不多要30分钟。录制的脚本如下Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_send("socket0", "buf8", LrsLastArg);
lrs_receive("socket0", "buf9", LrsLastArg);
lrs_send("socket0", "buf10", LrsLastArg);
lrs_receive("socket0", "buf11", LrsLastArg);
lrs_send("socket0", "buf12", LrsLastArg);
lrs_receive("socket0", "buf13", LrsLastArg);
lrs_send("socket0", "buf14", LrsLastArg);
lrs_receive("socket0", "buf15", LrsLastArg);
lrs_send("socket0", "buf16", LrsLastArg);
lrs_receive("socket0", "buf17", LrsLastArg);
lrs_send("socket0", "buf18", LrsLastArg);
lrs_receive("socket0", "buf19", LrsLastArg);
lrs_send("socket0", "buf20", LrsLastArg);
lrs_receive("socket0", "buf21", LrsLastArg);
lrs_send("socket0", "buf22", LrsLastArg);
lrs_receive("socket0", "buf23", LrsLastArg);
lrs_send("socket0", "buf24", LrsLastArg);
lrs_receive("socket0", "buf25", LrsLastArg);
lrs_send("socket0", "buf26", LrsLastArg);
lrs_receive("socket0", "buf27", LrsLastArg);
lrs_send("socket0", "buf28", LrsLastArg);
lrs_receive("socket0", "buf29", LrsLastArg);
lrs_send("socket0", "buf30", LrsLastArg);
lrs_receive("socket0", "buf31", LrsLastArg);
lrs_send("socket0", "buf32", LrsLastArg);
lrs_receive("socket0", "buf33", LrsLastArg);
lrs_send("socket0", "buf34", LrsLastArg);
lrs_receive("socket0", "buf35", LrsLastArg);
lrs_send("socket0", "buf36", LrsLastArg);
lrs_receive("socket0", "buf37", LrsLastArg);
lrs_send("socket0", "buf38", LrsLastArg);
lrs_receive("socket0", "buf39", LrsLastArg);
lrs_send("socket0", "buf40", LrsLastArg);
lrs_receive("socket0", "buf41", LrsLastArg);
lrs_send("socket0", "buf42", LrsLastArg);
lrs_receive("socket0", "buf43", LrsLastArg);
lrs_send("socket0", "buf44", LrsLastArg);
lrs_receive("socket0", "buf45", LrsLastArg);
lrs_send("socket0", "buf46", LrsLastArg);
lrs_receive("socket0", "buf47", LrsLastArg);
lrs_send("socket0", "buf48", LrsLastArg);
lrs_receive("socket0", "buf49", LrsLastArg);
lrs_send("socket0", "buf50", LrsLastArg);
lrs_receive("socket0", "buf51", LrsLastArg);
lrs_send("socket0", "buf52", LrsLastArg);
lrs_receive("socket0", "buf53", LrsLastArg);
lrs_send("socket0", "buf54", LrsLastArg);
lrs_receive("socket0", "buf55", LrsLastArg);
lrs_send("socket0", "buf56", LrsLastArg);
lrs_receive("socket0", "buf57", LrsLastArg);
lrs_send("socket0", "buf58", LrsLastArg);
lrs_receive("socket0", "buf59", LrsLastArg);
lrs_send("socket0", "buf60", LrsLastArg);
lrs_receive("socket0", "buf61", LrsLastArg);
lrs_send("socket0", "buf62", LrsLastArg);
lrs_receive("socket0", "buf63", LrsLastArg);
lrs_send("socket0", "buf64", LrsLastArg);
lrs_receive("socket0", "buf65", LrsLastArg);
lrs_send("socket0", "buf66", LrsLastArg);
lrs_receive("socket0", "buf67", LrsLastArg);
lrs_send("socket0", "buf68", LrsLastArg);
lrs_receive("socket0", "buf69", LrsLastArg);
lrs_close_socket("socket0");
lr_think_time(9);
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket1", "buf70", LrsLastArg);
lrs_receive("socket1", "buf71", LrsLastArg);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket2", "buf72", LrsLastArg);
lrs_receive("socket2", "buf73", LrsLastArg);
lrs_create_socket("socket3", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket3", "buf74", LrsLastArg);
lrs_close_socket("socket2");
lrs_receive("socket3", "buf75", LrsLastArg);
lrs_close_socket("socket3");
lrs_create_socket("socket4", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket4", "buf76", LrsLastArg);
lrs_receive("socket4", "buf77", LrsLastArg);
lr_think_time(4);
lrs_close_socket("socket4");
lrs_create_socket("socket5", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket5", "buf78", LrsLastArg);
lrs_receive("socket5", "buf79", LrsLastArg);
lrs_close_socket("socket5");
lrs_create_socket("socket6", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket6", "buf80", LrsLastArg);
lrs_receive("socket6", "buf81", LrsLastArg);
lr_think_time(4);
lrs_close_socket("socket6");
lrs_create_socket("socket7", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket7", "buf82", LrsLastArg);
lrs_receive("socket7", "buf83", LrsLastArg);
lrs_close_socket("socket7");
lrs_create_socket("socket8", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket8", "buf84", LrsLastArg);
lrs_receive("socket8", "buf85", LrsLastArg);
lrs_close_socket("socket8");
lrs_create_socket("socket9", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket9", "buf86", LrsLastArg);
lrs_receive("socket9", "buf87", LrsLastArg);
lrs_close_socket("socket9");
lrs_create_socket("socket10", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket10", "buf88", LrsLastArg);
lrs_receive("socket10", "buf89", LrsLastArg);
lrs_close_socket("socket10");
lrs_create_socket("socket11", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket11", "buf90", LrsLastArg);
lrs_receive("socket11", "buf91", LrsLastArg);
lrs_close_socket("socket11");
lrs_create_socket("socket12", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket12", "buf92", LrsLastArg);
lrs_receive("socket12", "buf93", LrsLastArg);
lrs_close_socket("socket12");
lrs_create_socket("socket13", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket13", "buf94", LrsLastArg);
lrs_receive("socket13", "buf95", LrsLastArg);
lrs_close_socket("socket13");
lrs_create_socket("socket14", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket14", "buf96", LrsLastArg);
lrs_receive("socket14", "buf97", LrsLastArg);
lrs_close_socket("socket14");
lrs_create_socket("socket15", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket15", "buf98", LrsLastArg);
lrs_receive("socket15", "buf99", LrsLastArg);
lrs_close_socket("socket15");
lrs_create_socket("socket16", "TCP", "LocalHost=0", "RemoteHost=TESTSOFT:8489", LrsLastArg);
lrs_send("socket16", "buf100", LrsLastArg);
lrs_receive("socket16", "buf101", LrsLastArg);
lrs_close_socket("socket16");
return 0;
}
是不是我协议选的不对阿
页:
[1]