Example: lrs_close_socket
In the following example, the lrs_close_socket statement closes a socket after a message was sent to the server. Socket 5 was accepted via socket 4, and 256 bytes were sent via socket 5.
rc= lrs_accept_connection("socket4", "socket5");
lrs_send("socket5", "buf0", 256, 0);
lrs_close_socket("socket5");