Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKMIPServer::initialize ( P6KMIPFLAGS  flags,
P6UINT32  listenPort,
P6UINT32  compatibility,
p6IKeystore pCerts,
KMIP_SERVER_REQ  pFn,
P6VOID pContext 
)
pure virtual

Sets up the component to run properly.

Other configuration settings can be found in the p6kmip.conf file: [p6kmip-gen] logDir = "/var/log/KMIP/logs" errorStream = "kmipclient-errors.txt" uri = "/kmip"

[p6kmip-server-gen] listenPort = 65524 maxBufSize = 20000 initialBufCount = 5 growBufBy = 5

Key: "logDir" is the absolute path to an existing, writable directory, where the client can write KMIP messages and other log information. "errorStream" is a file name in the logDir where the XML tools can write error and warnings.

Parameters
flags[ in ] Set perferences for the new object. These preferences are fixed during the lifetime of the object.
listenPort[ in ] if set to zero this parameter is ignored and the port number is taken from the p6config.h file

compatibility [ in ] A bit mask to enable functions that enhance interoperation (e.g., KMIP_CMP_DESPARITY). Bit mask values are defined at the end of the p6kmip.h file.

Parameters
pCerts[ in ] Pointer to a P6R keystore that contains certificates required by the SSL protocol for connections to a KMIP server. The passed in keystore must be openned via the p6IKeystoreInit interface before it is passed into this function. If the flags parameter does not contain the flag P6KMIPFLG_SERVER_TLS, then this parameter should be NULL since SSL is not in use.
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eAlreadyInitializedOnly one successful call to this function is allowed.
P6R::eInvalidVersionThe pVersion parameter must be set to either "1.0" or "1.1" if not NULL.