Example: lrs_receive_ex

In the following example, thelrs_receive_ex function connects to Socket 1 and reads 10 bytes of the incoming message from buf 2.

lrs_send("socket1", "buf2", 40, 0);
lrs_receive_ex("socket1", "buf2", " NumberOfBytesToRecv=10", LrsLastArg);
lrs_close_socket("socket1");