more complex test
[libt2n] / example-codegen / client.cpp
... / ...
CommitLineData
1/***************************************************************************
2 * Copyright (C) 2004 by Intra2net AG *
3 * info@intra2net.com *
4 * *
5 ***************************************************************************/
6
7#include <socket_client.hxx>
8
9// include library header
10#include "codegen_client.hxx"
11
12int main(int argc, char** argv)
13{
14 libt2n::socket_client_connection sc("./socket");
15 cmd_group_default_client cc(sc);
16
17 return ( ( cc.testfunc("hello") == "hello, testfunc() was here" )
18 && ( cc.testfunc_ref("hello") == "hello, testfunc() was here" )
19 && ( cc.t2(10) == 10 )
20 && ( cc.t3(10, 20, "hello", std::pair<int, float>(10,20)) ) )
21 ? EXIT_SUCCESS : EXIT_FAILURE;
22}