![]() |
Contains various functions which are handy for MLPI connection testing and information.
MLPIRESULT mlpiApiDelay | ( | const MLPIHANDLE | connection, |
const ULONG | delayMilliseconds | ||
) |
This function does a simple delay on the server side. All this function performs is a blocking delay on the server side in the given amount of milliseconds. Use it during development or debugging of your application to simulate high traffic on your network. This way, you can test the behavior of your client application when MLPI communication slows down. The delay has no impact on the performance of the device.
[in] | connection | Handle for multiple connections. |
[in] | delayMilliseconds | Delay in milliseconds to block. |
MLPIRESULT mlpiApiGetClientCoreVersion | ( | MlpiVersion * | versionInfo | ) |
This function returns the version info of the MLPI client library.
[out] | versionInfo | Pointer to struct receiving the version info. |
MLPIRESULT mlpiApiGetServerCoreVersion | ( | const MLPIHANDLE | connection, |
MlpiVersion * | versionInfo | ||
) |
This function returns the version info of the MLPI server library.
[in] | connection | Handle for multiple connections. |
[out] | versionInfo | Pointer to struct receiving the version info. |
MLPIRESULT mlpiApiSetNameOfConnection | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | name | ||
) |
Using this function, you can assign a short descriptive name to your connection. It is not necessary to give your connection a name, but the name might be useful for debugging and maintaining your connections.
[in] | connection | Handle for multiple connections. |
[in] | name | User-defined name of connection. |
MLPIRESULT mlpiApiSetLabelOfConnection | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | label | ||
) |
Using this function, you can assign a long descriptive label to your connection. It is not necessary to set the connection label, but the label might be useful for debugging and maintaining your connections.
[in] | connection | Handle for multiple connections. |
[in] | label | User-defined label of connection. |
MLPIRESULT mlpiApiGetOwnConnectionDescription | ( | const MLPIHANDLE | connection, |
MlpiConnectionDescription * | description | ||
) |
This function will return information about the own connection.
[in] | connection | Handle for multiple connections. |
[out] | description | Pointer to struct receiving the connection descriptions. |
MLPIRESULT mlpiApiGetAllConnectionDescription | ( | const MLPIHANDLE | connection, |
MlpiConnectionDescription * | description, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function will return information about all established connections of the device.
[in] | connection | Handle for multiple connections. |
[out] | description | Pointer to struct receiving the connection descriptions. |
[in] | numElements | Number of MlpiConnectionDescription elements available in 'description' to read. |
[out] | numElementsRet | Number of elements used. |
MLPIRESULT mlpiApiCloseConnectionByUid | ( | const MLPIHANDLE | connection, |
const ULLONG | uid | ||
) |
This function closes a connection selected by the unique identifier (uid) of a connection. You can determine the uid by using the function mlpiApiGetOwnConnectionDescription.
[in] | connection | Handle for multiple connections. |
[in] | uid | Unique identifier of connection. |
MLPIRESULT mlpiApiCloseConnectionsByUser | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | user | ||
) |
This function closes one or multiple connections selected by the user.
[in] | connection | Handle for multiple connections. |
[in] | user | Login user name of connection. |
MLPIRESULT mlpiApiCloseConnectionsByUri | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | uri | ||
) |
This function closes one or multiple connections selected by a combination of the uniform resource identifier (uri) and the placeholder '*'.
[in] | connection | Handle for multiple connections. |
[in] | uri | URI of connection (e.g. "mlpi.tcp://'IP-address':'port'"). |
MLPIRESULT mlpiApiUserAccountControlReload | ( | const MLPIHANDLE | connection | ) |
This function provides the reloading of all currently loaded account manifests know as 'accounts.xml'.
[in] | connection | Handle for multiple connections. |
MLPIRESULT mlpiApiUserAccountControlLoadAccounts | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | path | ||
) |
This function provides the loading of the accounts of an additional account manifest.
[in] | connection | Handle for multiple connections. |
[in] | path | Path to the additional account manifest. |
MLPIRESULT mlpiApiUserAccountControlUnloadAccounts | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | path | ||
) |
This function provides the unloading of the accounts of an additional account manifest.
[in] | connection | Handle for multiple connections. |
[in] | path | Path to the additional account manifest. |
MLPIRESULT mlpiApiGetOwnPermissions | ( | const MLPIHANDLE | connection, |
WCHAR16 * | permissions, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function provides the reading of own permissions based on account manifest 'accounts.xml'.
[in] | connection | Handle for multiple connections. |
[out] | permissions | String where the permissions will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'permissions' to read. |
[out] | numElementsRet | Number of WCHAR16 elements in complete 'permissions'. |
MLPIRESULT mlpiApiGetAccounts | ( | const MLPIHANDLE | connection, |
WCHAR16 * | accounts, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function provides the reading of all available accounts based on account manifest 'accounts.xml'.
[in] | connection | Handle for multiple connections. |
[out] | accounts | String where the accounts will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'accounts' to read. |
[out] | numElementsRet | Number of WCHAR16 elements in complete 'accounts'. |
MLPIRESULT mlpiApiGetAccountPermissions | ( | const MLPIHANDLE | connection, |
const WCHAR16 * | account, | ||
WCHAR16 * | permissions, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function provides the reading of the permissions of an account based on account manifest 'accounts.xml'.
[in] | connection | Handle for multiple connections. |
[in] | account | String that identifies the account for which permissions were read. Set to NULL to get your own permissions. |
[out] | permissions | String where the permissions will be stored. |
[in] | numElements | Number of WCHAR16 elements available in 'permissions' to read. |
[out] | numElementsRet | Number of WCHAR16 elements in complete 'permissions'. |
MLPIRESULT mlpiApiGetLibrarySupport | ( | const MLPIHANDLE | connection, |
MlpiLibrary * | library, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function provides names and IDs of supported libraries.
[in] | connection | Handle for multiple connections. |
[out] | library | Struct where names and IDs of supported libraries will be stored. |
[in] | numElements | Number of MlpiLibrary elements available in 'library' to read. |
[out] | numElementsRet | Number of MlpiLibrary elements in complete 'library'. |