Installing in HTTP mode

This section explains how to install KAV SDK in HTTP Mode.

To install KAV SDK in HTTP Mode:

  1. Extract KAV SDK package contents.
  2. Copy the license key file.
  3. Build KAV HTTPD and the sample HTTP client binaries.
  4. Configure ports and protocols.

Extracting package contents

KAV HTTPD can work from any directory. Simply extract KAV SDK distribution kit contents.

The following example demonstrates extracting KAV HTTPD package contents to /opt/kavhttpd and then copying the startup script to /etc/init.d directory.

Example:

user@computer:/media/share# mkdir opt/kavhttpd

user@computer:/media/share# tar -xvzf KAV_SDK_L3-Linux-Release.tar.gz -C /opt/kavhttpd --strip 1

user@computer:/media/share# cp /opt/kavhttpd/etc/init.d/kavhttpd /etc/init.d

Copying the license key file

KAV HTTPD will not start without valid key file. Contact your TAM to get a license key file package.

By default, KAV HTTPD binary will look for the license key file in its directory. Copy the license key file to ./bin/ directory. You can change this directory by editing KAV HTTPD configuration file.

Building binaries for KAV HTTPD and the sample HTTP client

KAV HTTPD and the sample HTTP client are distributed as a source code. You can find it in ./http_service directory. To use KAV HTTPD and the sample HTTP client, you need to compile this source code into binaries.

To compile HAV HTTPD the sample HTTP client:

  1. Navigate to ./http_service directory.
  2. Run make. Binaries will be compiled into ./bin directory.

The following example demonstrates building the binaries:

Example:

user@computer:/opt/kavhttpd/bin# cd ./http_service/

user@computer:/opt/kavhttpd/kavsdk/http_service# make

g++ -ggdb -O2 scanobject.cpp service.cpp http.cpp session.cpp socket.cpp thread_manager.cpp sdk_wrapper.cpp http_parser.cpp xml_parser.cpp options.cpp logger.cpp watchdog.cpp kav_client.cpp -I . -I ../include -L ../lib -lkave8 -lpthread -lrt -lexpat -o ../bin/service

g++ -ggdb -O2 socket.cpp client.cpp thread_manager.cpp logger.cpp kav_client.cpp -I . -I ../include -lpthread -lrt -lexpat -o ../bin/cl

Configuring ports and protocols

Allow outgoing connections from the local computer to the remote SSL (TCP 443) port. The local computer is a computer where your launch KAV HTTPD.

Page top