Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

SetConnHandle

Group

Model selection

Description

The specified handle must have been obtained from GetConnHandle or NewConnHandle

This specifies the connection to which subsequent RT-LAB API calls refer, until changed again by SetConnHandle or NewConnHandle. This lets a thread handle multiple connections, switching from one to the other without disconnecting.

Required Control

None

Usage

RtlabApi.SetConnHandle(handle)

Input

  • handle: handle of a connection.

Output

None

Exception

  • EOK: Success.

  • ENOMEM: Memory allocation error.

  • E2BIG: Too many open connections for this process.

Examples

See multi_models

Related Items

NewConnHandle, GetConnHandle, DeleteConnHandle.

Modules

import RtlabApi

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323