lrt_tuxputenv("WSNADDR=//10.10.28.201:6117");
data_0 = lrt_tpalloc("CARRAY", "", 10240);
lrt_strcpy(data_0,sbuf_1);
lr_log_message("We can see the data:%s.",lr_eval_string("data_0"));
lrt_display_buffer("sbuf_1", data_0, 10240, 10240);
data_1 = lrt_tpalloc("CARRAY", "", 10240);
lr_rendezvous("集合点提交");
lr_start_transaction("交易试算和费用试算报文");
tpresult_int = lrt_tpcall("GENSERVER",
data_0,
10240,
&data_1,
&olen,
0);
lr_end_transaction("交易试算和费用试算报文", LR_AUTO);
lrt_abort_on_error();
lr_log_message("We can see the data:%s.",lr_eval_string("data_1"));
lrt_tpfree(data_0);
lrt_tpfree(data_1);
该脚本作用:向某系统提交一个carry类型的数据包,然后接收并回显服务器返回信息。