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:
parent
46bea87ff6
commit
bc346422fb
@ -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;
|
||||
|
5
connectors/cdc-connector/examples/Makefile
Normal file
5
connectors/cdc-connector/examples/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all:
|
||||
c++ -I ../ ../cdc_connector.cpp main.cpp -ljansson -lcrypto -o cdc
|
||||
|
||||
clean:
|
||||
rm -rf cdc
|
@ -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()))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user