大家好,欢迎来到IT知识分享网。Action()
{
char *ReturnBuffer;
int Size;
lrs_create_socket(“socket0”, “TCP”, “LocalHost=9001”,
“Backlog=0”, LrsLastArg);
lr_think_time(8);
lrs_accept_connection(“socket0”, “socket3”);
lrs_receive(“socket3”, “buf0”, LrsLastArg);
lrs_get_received_buffer(“socket3”,0,110, NULL);
ReturnBuffer=lrs_get_user_buffer(“socket3”);
Size=lrs_get_user_buffer_size(“socket3”);
lr_output_message(“ReturnBuffer=%s Size=%d.”,ReturnBuffer,Size);
lrs_send(“socket3”, “buf1”, LrsLastArg);
//lrs_send(“socket3”, “buf2”, LrsLastArg);
lrs_close_socket(“socket3”);
return 0;
}
;WSRData 2 1
recv buf0 13
“Hello Client!”
send buf1 38
“20Get your command:Hello Client!,长度13.”
send buf2 30
“Get your command:Hello!,长度6.”
-1
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/25050.html