Update of /home/kde/kdegames/atlantik/libatlantikclient In directory office:/tmp/cvs-serv20945/libatlantikclient Modified Files: atlantik_network.cpp atlantik_network.h Log Message: KExtendedSocket instead of QSocket Index: atlantik_network.cpp =================================================================== RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- atlantik_network.cpp 2002/04/23 17:02:56 1.26 +++ atlantik_network.cpp 2002/04/28 22:58:27 1.27 @@ -25,6 +25,9 @@ #include #include +#define USE_KDE 1 + +#include "atlantik_network.h" #include "atlantik_network.moc" //#include "atlantik.h" @@ -214,13 +217,14 @@ while(canReadLine()) processMsg(readLine()); #else - char *tmp = NULL; + char *tmp = new char[1024 * 32]; while(canReadLine()) { kdDebug() << "canReadLine!" << endl; readLine(tmp, 1024 * 32); processMsg(tmp); } + delete[] tmp; #endif // Maximum message size. Messages won't get bigger than 32k anyway, so @@ -735,6 +739,7 @@ connectToHost(host, port); #else setAddress(host, port); + enableRead(true); connect(); #endif } Index: atlantik_network.h =================================================================== RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- atlantik_network.h 2002/04/23 17:02:56 1.14 +++ atlantik_network.h 2002/04/28 22:58:27 1.15 @@ -20,6 +20,8 @@ #include #include +#define USE_KDE 1 + #ifndef USE_KDE #include #else @@ -35,9 +37,9 @@ class Auction; //#ifndef USE_KDE -class AtlantikNetwork : public QSocket +//class AtlantikNetwork : public QSocket //#else -//class AtlantikNetwork : public KExtendedSocket +class AtlantikNetwork : public KExtendedSocket //#endif { Q_OBJECT _______________________________________________ atlantik-devel mailing list atlantik-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/atlantik-devel