This function initializes the library. It must be called before calling any other API function of this library. This version of the initialization function gives the Management Console developer the option of managing sockets from the application layer. It does this by providing the redirection library callbacks to Open/Close/Receive/Send functions used to manage sockets.
Function Header
IMRResult IMR_InitEx(
IMRVersion *version,
char *ini_file
SocketsCallbacks* socketsCallbacks
);
Function Parameters
|
Field |
Input/Output |
Value or Description |
|
version |
Output |
A pointer to a structure that will be filled with the library’s version. This parameter may be NULL if no version information is desired. |
|
ini_file |
Input |
A NULL-terminated string specifying the name of an INI file, which can be either absolute or relative to the directory from which the application is run. This parameter may be NULL, in which case the library will use its default settings. |
|
socketsCallbacks |
Input |
Pointer to structure containing definition of the callback functions |
Function Return Status
For a complete list of possible error codes, see Error Codes.
|
Status |
Value or Description |
|
IMR_RES_OK |
The command finished successfully. |
|
IMR_RES_ALREADY_INITIALIZED |
The library has already been initialized. |
|
Copyright © 2006-2012, Intel Corporation. All rights reserved. |