Example: lrs_cleanup

In the following example lrs_cleanup terminates the WinSock session.

int LR_FUNC vuser_end(LR_PARAM p) {
    int rc = lrs_cleanup(); 
    if (rc != 0)
        lr_output_message("Winsocket resources not freed. error %d", rc);
    return 0;
}