Code examples are included for reference as part of a test utility. The source code for the utility is used to build both a static and dynamically linked verion of the kinetic-c-client library.
* 'kinetic-c-util' builds/links against installed Kinetic C static library (.a)
* 'kinetic-c-util.x.y.z' builds/links against installed Kinetic C dynamic library (.so)
The project Makefile can be used as a reference for developing a Makefile for building for a new custom Kinetic C client.
The following examples are provided for development reference and as utilities to aid development. In order to execute a given example, you must first do:
In order to execute a given example, after building it, you must first do:
> cd build/artifacts/release
> cd bin
You can then execute `kinetic-c-client-util` with a valid example name, optionally preceeded with any of the optional arguments.
**Options**
Options
-------
*`--host [HostName/IP]` or `-h [HostName/IP]` - Set the Kinetic Device host
*`--tls` - Use the TLS port to execute the specified operation(s)
**Operations**
Operations
----------
*`kinetic-c-client [--host|-h hostname|123.253.253.23] noop put get`
*`kinetic-c-client-util noop`
* Execute a NoOp (ping) operation to verify the Kinetic Device is ready
*`kinetic-c-client-util put`
* Execute a Put operation to store a key/value
* Execute a Put operation to store a key/value entry
*`kinetic-c-client-util get`
* Execute a Get operation to retrieve a key/value
* Execute a Get operation to retrieve a key/value entry
*`kinetic-c-client-util delete`
* Execute a Delete operation to destroy a key/value entry