ZK Command Server Test Tools

Freedom Services 2.0 Archive Validated

Contents

  1. Server Tool
  2. Client Tool

1 - Server Tool

The server tool, called zkcs-server, is a simple server that can handle 10 commands (0 to 9) and simply returns the same command it receives. The server tool can be used to test the different configuration options (please refer to zkcs Configuration for more details on zkcs server configuration) and make sure internal mechanism (signals, TCP communication, etc) of zkcs library works fine.

2 - Client Tool

The client tool, called zkcs-client is used to send/receive commands from/to the zkcs server test tools. It loops from 0 to 9 and send commands with the loop count as the command Id. The available options are listed in the following table.
Option name Option Parameter Description
Help NA List the available options.
Hostname String Name of the host to connect to.
Port Number Port to connect to.
Delay Seconds Wait the specified amount of time between each command.
AuthKey String Specifies the key to use for packet authentication (in MAC)

Note that the client tool was designed before the zkSocket and therefore as its own communication functions (see zkClientIO.c and .h). So it can not be used to test zkSocket utilities (at least for the client side). This should eventually be changed.