From 26a6b739a38e928d005ac689e693a4d4dd7dc3ea Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 19 Aug 2008 07:50:47 +0000 Subject: Made the netcom object global, for socket reuse. --- client/pracro.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/pracro.cc') diff --git a/client/pracro.cc b/client/pracro.cc index 051fe2b..fdb0d7d 100644 --- a/client/pracro.cc +++ b/client/pracro.cc @@ -30,7 +30,9 @@ #include #include #include + #include "macro.h" +#include "netcom.h" #define VERSION "1.0" @@ -136,6 +138,8 @@ int main(int argc, char *argv[]) port = settings.value("port").toInt(); settings.endGroup(); + Global::netcom = new NetCom(host, port, user, cpr); + new_macro(course, macro); //app.setQuitOnLastWindowClosed(false); @@ -143,5 +147,7 @@ int main(int argc, char *argv[]) cleanup_macros(); + delete Global::netcom; + return ret; } -- cgit v1.2.3