Share this page

# Example: lrs_set_send_buffer

In the following example, the lrs_set_send_buffer function sets the buffer containing the data for socket2. Note that 10 bytes from Buffer are sent on the socket, and not the buffer referenced by "buf21".

    /* Set the buffer value. */

    char *Buffer;

    int Size;

    lrs_receive("socket2", "buf20", LrsLastArg);

    lrs_get_last_received_buffer("socket2", &Buffer, &Size);

    /* Make modifications on the last received buffer. */

    . . .

    lrs_set_send_buffer("socket2", Buffer, 10 );

    lrs_send("socket2","buf21", LrsLastArg );

    lrs_free_buffer(Buffer);

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: