Add minimal CDC client

Added a minimal CDC client application that uses the CDC connector
library. This is mainly intended for manual testing so it is built using
the accompanying Makefile instead of being a part of the CMake system.
This commit is contained in:
Markus Mäkelä 2019-01-04 10:43:43 +02:00
parent 46bea87ff6
commit bc346422fb
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19
3 changed files with 7 additions and 2 deletions

View File

@ -32,7 +32,7 @@ namespace CDC
// The error strings returned by the getError library. These can be used to
// check for the most common errors (which right now is only the timeout).
const char* TIMEOUT = "Request timed out";
static const char* TIMEOUT = "Request timed out";
// The typedef for the Row type
class Row;

View File

@ -0,0 +1,5 @@
all:
c++ -I ../ ../cdc_connector.cpp main.cpp -ljansson -lcrypto -o cdc
clean:
rm -rf cdc

View File

@ -26,7 +26,7 @@ int main(int argc, char** argv)
if (conn.connect(argv[5]))
{
CDC::Row row;
CDC::SRow row;
while ((row = conn.read()))
{