client-c
0.8.1
|
Copyright 2014-2016 CyberVision, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
To build the Kaa C SDK, do the following:
Specific build options are described in README and in the official online documentation.
If you use GNU Compiler, add the linker flag -lkaac to link against a dynamic library or -lkaac_s to link against a static library.
Before building a user application with the Kaa library, the developer must implement the following functions in the user-space code:
Next, the kaa_context_t
instance should be created:
To communicate with Kaa servers, at least one transport channel must be added for both Bootstrap server and Operations server.
You may use the reference implementation (kaa_tcp_channel_create) or provide your own channel (for more details see kaa_transport_channel_interface_t
):
NOTE: To use the log collection feature, go through additional initialization steps.
To finish the Kaa C SDK initialization, execute the following command:
For more information about functions supported by the Kaa C SDK, see our Programming guide:
To better familiarize yourself with Kaa C SDK, you may look at our demo application.
Find the demo source code in the 'example' directory located in the root of the Kaa project.