QTfrontend/newnetclient.cpp
changeset 1668 ceee3f20c784
parent 1665 ab712cca3f5f
child 1671 bb12cb688f75
equal deleted inserted replaced
1667:f9f8613fdfbf 1668:ceee3f20c784
   139   RawSendNet(str.toUtf8());
   139   RawSendNet(str.toUtf8());
   140 }
   140 }
   141 
   141 
   142 void HWNewNet::RawSendNet(const QByteArray & buf)
   142 void HWNewNet::RawSendNet(const QByteArray & buf)
   143 {
   143 {
   144 	qDebug() << "Client: " << QString(buf).split("\n");
   144 	//qDebug() << "Client: " << QString(buf).split("\n");
   145 	NetSocket.write(buf);
   145 	NetSocket.write(buf);
   146 	NetSocket.write("\n\n", 2);
   146 	NetSocket.write("\n\n", 2);
   147 }
   147 }
   148 
   148 
   149 void HWNewNet::ClientRead()
   149 void HWNewNet::ClientRead()
   189 		}
   189 		}
   190 }
   190 }
   191 
   191 
   192 void HWNewNet::ParseCmd(const QStringList & lst)
   192 void HWNewNet::ParseCmd(const QStringList & lst)
   193 {
   193 {
   194 	qDebug() << "Server: " << lst;
   194 	//qDebug() << "Server: " << lst;
   195 
   195 
   196 	if(!lst.size())
   196 	if(!lst.size())
   197 	{
   197 	{
   198 		qWarning("Net client: Bad message");
   198 		qWarning("Net client: Bad message");
   199 		return;
   199 		return;