X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fclient.cpp;fp=example-codegen%2Fclient.cpp;h=f3f11763238754f22872a0ea7156dfff7ac3f6a1;hp=0000000000000000000000000000000000000000;hb=86c1c2e9dcdced7022bc2b979a4b580946802410;hpb=4cae8ac9fc4d6b81a012ceedb24456c1742b120b diff --git a/example-codegen/client.cpp b/example-codegen/client.cpp new file mode 100644 index 0000000..f3f1176 --- /dev/null +++ b/example-codegen/client.cpp @@ -0,0 +1,18 @@ +/*************************************************************************** + * Copyright (C) 2004 by Intra2net AG * + * info@intra2net.com * + * * + ***************************************************************************/ + +#include + +// include library header +#include "codegen_client.hxx" + +int main(int argc, char** argv) +{ + libt2n::socket_client_connection sc("./socket"); + cmd_group_example_client cc(sc); + + return (cc.testfunc("hello")=="hello, testfunc() was here") ? EXIT_SUCCESS : EXIT_FAILURE; +}