51Testing软件测试论坛
标题:
为什么加lr_message就报10048的错?
[打印本页]
作者:
kasad
时间:
2012-7-31 14:25
标题:
为什么加lr_message就报10048的错?
lrs_create_socket("socket0", "TCP", "LocalHost={NewParam}", "RemoteHost=10.1.254.238:1720", 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);
sleep(2000);
lr_message(lr_eval_string("{NewParam}"));
lrs_create_socket("socket1", "TCP", "LocalHost={NewParam}", "RemoteHost=10.1.254.238:1868", LrsLastArg);
这样的话报:Action.c(23): lrs_create_socket(socket1, TCP, ...)
Action.c(23): Error : socket1 - Address already in use. Error code : 10048.
如果我在lrs_create_socket("socket1", "TCP", "LocalHost={NewParam}", "RemoteHost=10.1.254.238:1868", LrsLastArg);之前加上lr_message(lr_eval_string("{NewParam}"));就不报错,为什么?
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2