babel 发表于 2009-2-6 12:14:16

请大家看下这段Winsock日志

Action.c(32): lrs_receive(socket1, buf3)
Action.c(32): Mismatch (expected 114 bytes, 8 bytes actually received)
Action.c(34): lrs_save_param(socket1, buf3, param3, 48, 20)
Action.c(36): param3:\x00H系统管理员\x00\xfd

Action.c(32)已提示实际只收到了8字节,那么Action.c(34)我是从48字节开始取值,怎么还能取到正确的值呢?
注:正常情况下即Action.c(32)收到了114字节,Action.c(36)这样显示是正确的

aman_cao 发表于 2009-2-9 10:35:14

If the buffer size does not match (smaller or larger), lrs_receive rereads the incoming data carried by the socket, until the receive_timeout. By default the receive_timeout is 10 seconds。

babel 发表于 2009-2-9 11:06:29

不是设置超时时间的问题,在脚本回放时我做了些操作,使回放时实际只能收到8字节。我现在就有些不明白的是,Action.c(32)已提示实际只收到了8字节,那么Action.c(34)我是从48字节开始取值,怎么还能取到正确的值呢?
页: [1]
查看完整版本: 请大家看下这段Winsock日志