smc_terminate_recording

Description

Cancels a recording session on a Historical Server connection.

Syntax

SMC_RETURN_CODE smc_terminate_playback(
 SMC_CONNECT_ID clientId,
 SMC_SESSION_ID sessionId
SMC_HS_SESS_DELETE_OPT						deleteOption,
 )

Parameters

clientId

identifies the Monitor connection.

sessionId

identifies the recording session to cancel.

deleteOption

specifies whether Historical Server should delete the data files, if any, associated with the session. The choices are SMC_HS_DELETE_FILES and SMC_HS_RETAIN_FILES.

This parameter is ignored if the session has not been initiated or if it has not started recording.

Returns

Return value

Indicates

SMC_RET_SUCCESS

Function succeeded.

SMC_RET_FAILURE

Function failed.

SMC_RET_INVALID_CONNECT

Monitor connection does not exist.

Examples

Example 1

This example assumes that:

Usage


Valid server modes

Mode

Availability

SMC_SERVER_M_LIVE

No

SMC_SERVER_M_HISTORICAL

Yes


Errors

Error

Indicates

SMC_RET_INVALID_SVR_MODE

Invalid server mode.

SMC_RET_INTERNAL_ERROR

Internal error.

See also

smc_create_recording_session, smc_initiate_recording