wraptype::set_connection(std::auto_ptr<libt2n::ConnectionWrapper>
(new libt2n::ReconnectSocketWrapper("./socket")));
- std::string result;
-
// execute a function via t2n. The wrapper will open a connection to the server if none
// exists or try to reconnect if the existing one doesn't answer
std::cout << t2n_exec(&cmd_group_t2nexample_client::testfunc)("hello") << endl;