--- a/QTfrontend/net/tcpBase.cpp Mon Jun 04 08:11:47 2012 -0400
+++ b/QTfrontend/net/tcpBase.cpp Mon Jun 04 21:32:30 2012 +0400
@@ -26,8 +26,8 @@
#include "hwconsts.h"
-QList<TCPBase*> srvsList;
-QPointer<QTcpServer> TCPBase::IPCServer(0);
+//QList<TCPBase*> srvsList;
+//QPointer<QTcpServer> TCPBase::IPCServer(0);
TCPBase::~TCPBase()
{
@@ -35,7 +35,7 @@
TCPBase::TCPBase(bool demoMode) :
m_isDemoMode(demoMode),
- IPCSocket(0)
+ IPCSocket(0), IPCServer(0)
{
if(!IPCServer)
{
@@ -67,7 +67,7 @@
SendToClientFirst();
}
-void TCPBase::RealStart()
+void TCPBase::/*Real*/Start()
{
connect(IPCServer, SIGNAL(newConnection()), this, SLOT(NewConnection()));
IPCSocket = 0;
@@ -88,8 +88,8 @@
disconnect(IPCSocket, SIGNAL(readyRead()), this, SLOT(ClientRead()));
onClientDisconnect();
- if(srvsList.size()==1) srvsList.pop_front();
- emit isReadyNow();
+ /* if(srvsList.size()==1) srvsList.pop_front();
+ emit isReadyNow();*/
IPCSocket->deleteLater();
deleteLater();
}
@@ -109,13 +109,13 @@
.arg(error) + bindir->absolutePath() + "/hwengine)");
}
+/*
void TCPBase::tcpServerReady()
{
disconnect(srvsList.takeFirst(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady()));
RealStart();
}
-
void TCPBase::Start()
{
if(srvsList.isEmpty())
@@ -130,7 +130,7 @@
}
RealStart();
-}
+}*/
void TCPBase::onClientRead()
{