Action()
{
int rc;
char *Data;
int Size;
if (rc==0)
{
lr_output_message("Socket was successfully send");
}
else
{
lr_output_message("An error occurred while creating the socket, Error Code: %d", rc);
}
lrs_send("socket0", "buf0", LrsLastArg);
lr_output_message("Socket was successfully send");
lrs_receive("socket0", "buf1", LrsLastArg);
lr_output_message("Socket was successfully receive");
lrs_get_last_received_buffer("socket0", &Data, &Size);
lr_output_message("The result's sizie is: %s.", Size);
lrs_close_socket("socket0");
return 0;
}
数据
;WSRData 2 1
send buf0 6
"Hello Client!"
recv buf1 30
"Get your command:Hello!,长度6."
-1