The mi_client() function
The mi_client() function dynamically determines whether a module is running in the database server or as a client application.
Syntax
mi_integer mi_client()| Valid in client LIBMI application? | Valid in user-defined routine? |
|---|---|
| Yes | Yes |
Usage
The mi_client() function
tells a module
which implementation of the it
is using, as follows:
- C UDRs use the server-side implementation of the .
- Client LIBMI applications use the client-side implementation of the .
This function is useful in code that runs in both the server-side and client-side implementations of the .
Return values
- 0
- The module is running as a C UDR.
- 1
- The module is running as a client LIBMI application.
- MI_ERROR
- The function was not successful.