smc_initiate_recording

Description

Completes the definition of a recording session against Historical Server, that is, an SMC_SERVER_M_HISTORICAL connection only.

Syntax

SMC_RETURN_CODE smc_initiate_recording
 (SMC_CONNECT_ID   clientId)

Parameters

clientId

identifies the connection.

Returns

Return value

Indicates

SMC_RET_SUCCESS

Function succeeded.

SMC_RET_FAILURE

Function failed.

SMC_RET_INVALID_CONNECT

Connection does not exist.

Examples

Example 1

The following 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_alarm_ex, smc_create_filter, smc_create_view, smc_create_recording_session, smc_terminate_recording_session