1 /***************************************************************************
2 * Copyright (C) 2004 by Intra2net AG *
5 ***************************************************************************/
7 #include <socket_client.hxx>
9 // include generated library header
10 #include "default_client.hxx"
12 int main(int argc, char** argv)
14 libt2n::socket_client_connection sc("./socket");
15 cmd_group_default_client cc(sc);
21 }catch(libt2n::t2n_runtime_error &e){
22 throwok=(std::string(e.what())=="throw me around");
26 && ( cc.testfunc("hello") == "hello, testfunc() was here" )
27 && ( cc.testfunc_ref("hello") == "hello, testfunc() was here" )
28 && ( cc.t2(10) == 10 ) )
29 ? EXIT_SUCCESS : EXIT_FAILURE;