Share this page

# Example: lrs_set_socket_options

In the following example, lrs_set_socket_options sets the LRS_NO_DELAY option for socket1.

    int opt_value;

    lrs_create_socket("socket1", "TCP", "RemoteHost=tears.abc.co.il:23", LrsLastArg);

    /* Since opt_value was declared as an int type, it must be cast. */

    lrs_set_socket_options("socket1", LRS_NO_DELAY, (char*)(&opt_value));

    lrs_send("socket1", "buf2", LrsLastArg);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: