Open topic with navigation
Disconnects a client from an RTMP server.
|Example||Alphabetical Listing of Flex Functions (FLEX)|
int flex_rtmp_disconnect( const char *stepname, "ConnectionID=<connection identifier>", LAST );
This function returns LR_PASS (0) on success or LR_FAIL (1) on failure. Note that LR_PASS and LR_FAIL generally indicate whether the function call completed without an exception, and not that the test step succeeded.
All input string arguments (char type) except the step name can be parameterized using standard parameterization.
|stepname||A descriptive, unique name for this step. Use any text.Mandatory.|
|ConnectionID||The unique name of the connection on which this function operates. Do not change the recorded ID. Mandatory.|
|LAST||The delimiter marking the end of the argument list.|
The flex_rtmp_disconnect function disconnects a client from an RTMP server.
Make sure the flex_rtmp_connect function has been added to the script before calling the flex_rtmp_disconnect function.
Connections remain open between script iterations unless the flex_rtmp_disconnect function is invoked. When reusing existing connections, certain operations (such as the opening of a socket and RTMP handshake operations) are bypassed. Consider whether the time for performing these connection operations should be included for load testing purposes, and, if so, add the flex_rtmp_disconnect function to the script.