??????socket????????????????????????????winsocket??websocket??LR?????????Э?顣
?????????LR???socketЭ?????????????????????????????????????????????£?
lrs_create_socket("socket0"?? "TCP"?? "RemoteHost=1.2.3.4:12345"??  LrsLastArg);
lrs_send("socket0"?? "buf0"?? LrsLastArg);
lrs_receive("socket0"?? "buf1"?? LrsLastArg);
???????????socket0???????????????buf0??LR???????????????????????????????????buf1???????????????
????????????????????buf1?е???????????????Щ???????????ж??????????????л???????????????????ú???lrs_get_last_received_buffer?????£?
????lrs_get_last_received_buffer("socket0"?? &ActualBuffer?? &NumberOfBytes);
??????????lrs_receive??????????????????????У????ActualBuffer?????????LR??????????????飩??????????????????????NumberOfBytes?У???
????????????????????????????????????????????ActualBuffer[0]????????????????????????????ActualBuffer??????棬???????lrs_free_buffer??
???????????????????????????????????????????????????char???鴦?????????????????????
????????????
vuser_init.c
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
return 0;
}
Action.c