Getnextauthenticationkey method, Getsessioncontrolobjectid method, Syntax – Echelon OpenLDV User Manual

Page 179: Returns

Advertising
background image

OpenLDV Programmer’s Guide

171

GetNextAuthenticationKey Method

Applies to: Session Control Object
This method obtains the next xDriver authentication key.

Syntax

C++

STDMETHOD(GetNextAuthenticationKey)(BSTR * authKey)

Visual Basic Function GetNextAuthenticationKey() As String

Table 56. GetNextAuthenticationKey Parameters

Parameter

Description

authKey

String variable that stores the return data.

Returns

The next authentication key for the RNI, as a 32-character hexadecimal string

representing a 128-bit MD5 authentication key.

GetSessionControlObjectID Method

Applies to: Session Control Object
This method obtains the SCO ID. The SCO ID can be used as a key to store

information related to an xDriver session in external memory. You could allocate

a block of memory for these fields, and tag that block of memory with the SCO

ID. You would then program your lookup extension component to find and

retrieve this memory block using the SCO ID.

Syntax

C++

STDMETHOD(GetSessionControlObjectID)(long * nSCOID)

Visual Basic Function GetSessionControlObjectID() As Integer

Table 57. GetSessionControlObjectID Parameters

Parameter

Description

nSCOID

Variable (Long) that stores the SCO ID.

Returns

32-bit Session Control Object ID as Long.

Advertising