ANSI C UA Server SDK  1.5.1.313
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
UaServerSession

Data Structures

struct  UaServer_PublicSession
 Public Session. More...
 

Functions

OpcUa_UInt32 UaServer_Session_GetSecureChannelId (UaServer_PublicSession *a_pSession)
 Get the id of the current secure channel that is used for the given session. More...
 
OpcUa_StatusCode UaServer_Session_GetClientName (UaServer_PublicSession *a_pSession, OpcUa_String *a_pClientName)
 Get the ClientName of the session. More...
 
OpcUa_DateTime UaServer_Session_GetLastClientContact (UaServer_PublicSession *a_pSession)
 Get the timestamp of the last time the client used the session. More...
 
OpcUa_Boolean UaServer_Session_IsEncrypted (UaServer_PublicSession *a_pSession)
 Checks if the session is encrypted. More...
 
OpcUa_Boolean UaServer_Session_IsSigned (UaServer_PublicSession *a_pSession)
 Checks if the session is signed. More...
 
OpcUa_StatusCode UaServer_Session_SetCurrentClientUserId (UaServer_PublicSession *a_pSession, OpcUa_String *a_pClientUserId)
 Set the current ClientUserId of the session. More...
 
const UaBase_TurboList * UaServer_Session_GetContinuationPoints (UaServer_PublicSession *a_pSession)
 Get the list of currently active browse continuation points. More...
 
OpcUa_UInt32 UaServer_Session_GetFileHandle (UaServer_PublicSession *a_pSession)
 Get a session-unique file handle. More...
 

Detailed Description

Function Documentation

OpcUa_StatusCode UaServer_Session_GetClientName ( UaServer_PublicSession *  a_pSession,
OpcUa_String *  a_pClientName 
)

Get the ClientName of the session.

This function was introduced in version 1.2.1.

Parameters
a_pSessiona pointer to the actual session.
a_pClientNamethe name of the client of the current session will be stored here.
Returns
OpcUa_Good on success.
const UaBase_TurboList* UaServer_Session_GetContinuationPoints ( UaServer_PublicSession *  a_pSession)

Get the list of currently active browse continuation points.

This function was introduced in version 1.3.1.

Deprecated:
Do not modify the list returned by this function; instead use the thread safe functions UaServer_ContinuationPointInfo_AddToList and UaServer_ContinuationPointInfo_RemoveFromList.
Parameters
a_pSessionA pointer to the session.
Returns
The list of currently active browse continuation points.
OpcUa_UInt32 UaServer_Session_GetFileHandle ( UaServer_PublicSession *  a_pSession)

Get a session-unique file handle.

Parameters
a_pSessionA pointer to the session.
Returns
A session-unique file handle.
OpcUa_DateTime UaServer_Session_GetLastClientContact ( UaServer_PublicSession *  a_pSession)

Get the timestamp of the last time the client used the session.

This function was introduced in version 1.2.1.

Parameters
a_pSessionA pointer to the session.
Returns
The timestamp of last usage.
OpcUa_UInt32 UaServer_Session_GetSecureChannelId ( UaServer_PublicSession *  a_pSession)

Get the id of the current secure channel that is used for the given session.

Parameters
a_pSessiona pointer to the actual session.
Returns
the Id of the current secure channel.
OpcUa_Boolean UaServer_Session_IsEncrypted ( UaServer_PublicSession *  a_pSession)

Checks if the session is encrypted.

This function was introduced in version 1.3.0.

Parameters
a_pSessionA pointer to the session.
Returns
OpcUa_True if the SecureChannel is used with Sign&Encrypt.
OpcUa_Boolean UaServer_Session_IsSigned ( UaServer_PublicSession *  a_pSession)

Checks if the session is signed.

This function was introduced in version 1.3.0.

Parameters
a_pSessionA pointer to the session.
Returns
OpcUa_True if the SecureChannel is used with Sign or Sign&Encrypt.
OpcUa_StatusCode UaServer_Session_SetCurrentClientUserId ( UaServer_PublicSession *  a_pSession,
OpcUa_String *  a_pClientUserId 
)

Set the current ClientUserId of the session.

This function is to be used only by authentication modules.

Parameters
a_pSessionA pointer to the session.
a_pClientUserIdThe new ClientUserId to set.
Returns
OpcUa_Good on success.