|
Action()
{
lr_start_transaction("sendGPS");
lrs_set_connect_timeout(5,0);
lrs_create_socket("socket0","TCP","LocalHost=0","RemoteHost=125.35.86.74:3802",LrsLastArg);
lrs_set_send_timeout(5, 0);
for(i=1;i<5;i++)
{
lr_think_time(1);
lrs_send("socket0", "buf0", LrsLastArg);
}
lr_end_transaction("sendGPS", LR_AUTO);
return 0;
}
循环到第4次提示error10053
sent buffer如下
=================================SENT BUFFER=================================
"01859112334111117116791028297110103101345884114117101443411111810111483112"
"10110110034587097108115101443410311211568101118105991016711110010134583448"
"48493444341081111101031051161171001013458494954465153545544341089711610511"
"61171001013458515746565756555444341151121011011003458484649534434116105109"
"10134583449494648564649483249545852545848553444341129711611411110873100345"
"85451525256535753494851484848484848484434119971081071011147310034585712593"
============================================================
buff的内容是从json串转成byte数组,然后在数组前两位加上字符的长度
弄了两天不知道怎么解决,求高人指点了谢谢 |
|