o << "class " << groupClass(group) << "_client : public libt2n::command_client\n"
<< "{\n"
<< "public:\n"
- << groupClass(group) << "_client(libt2n::client_connection &_c,\n"
+ << groupClass(group) << "_client(libt2n::client_connection *_c,\n"
<< " long long _command_timeout_usec=command_timeout_usec_default,\n"
<< " long long _hello_timeout_usec=hello_timeout_usec_default)\n"
<< " : libt2n::command_client(_c,_command_timeout_usec,_hello_timeout_usec)\n"
// if you want to connect to a tcp/ip server you pass the port and server name to the constructor
libt2n::socket_client_connection sc("./socket");
// this generated class has a method for each of our exported procedures
- cmd_group_t2nexample_client cc(sc);
+ cmd_group_t2nexample_client cc(&sc);
bool throwok=false;
+#include <signal.h>
+
#include <socket_server.hxx>
#include <command_server.hxx> // for group_command_server
/*
- Copyright (C) 2006
- intra2net.com
+ Copyright (C) 2006
+ intra2net.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
int main(int argc, char** argv)
{
libt2n::socket_client_connection sc("./socket");
- cmd_group_default_client cc(sc);
+ cmd_group_default_client cc(&sc);
bool throwok=false;
try
/*
- Copyright (C) 2006
- intra2net.com
+ Copyright (C) 2006
+ intra2net.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{
libt2n::socket_client_connection sc("./socket");
libt2n::socket_client_connection sc_other("./socket_other");
- cmd_group_default_client cc(sc);
- cmd_group_other_client cc_other(sc_other);
+ cmd_group_default_client cc(&sc);
+ cmd_group_other_client cc_other(&sc_other);
bool throwok=false;
try
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <signal.h>
+
#include <socket_server.hxx>
#include <command_server.hxx>