vscphlp_quitReceiveLoop

int vscphlp_quitReceiveLoop( long handle )
int vscphlp_quitReceiveLoop( handle )

Parameters

handle

Handle for the communication channel obtained from a call to vscphlp_newsession.

Return Value

Return VSCP_ERROR_SUCCESS on success, VSCP_ERROR_ERROR on failure. If the connection is closed VSCP_ERROR_CONNECTION is returned. VSCP_ERROR_PARAMETER is returned if called while in a receive loop.

Description

Quit the receive loop.

Example

// Quit receiveloop
if ( VSCP_ERROR_SUCCESS == (rv = vscphlp_quitReceiveLoop( handle2 ) ) ) {
    printf( "Command success: vscphlp_quitReceiveLoop on channel 2\n" );
}
else {
    printf("Command error: vscphlp_quitReceiveLoop on channel 2  Error code=%d\n", rv);
}

mmm

if VSCP_ERROR_SUCCESS == pyvscphlp_quitReceiveLoop(h1):
        print "Successfully left receive loop"
    else:
        print "failed to leave receive loop"

See Also

vscphlp_enterReceiveLoop
vscphlp_blockingReceiveEvent
vscphlp_blockingReceiveEventEx


Very Simple Control Protocol
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""