equal
deleted
inserted
replaced
151 RawSendNet(str.toUtf8()); |
151 RawSendNet(str.toUtf8()); |
152 } |
152 } |
153 |
153 |
154 void HWNewNet::RawSendNet(const QByteArray & buf) |
154 void HWNewNet::RawSendNet(const QByteArray & buf) |
155 { |
155 { |
156 //qDebug() << "Client: " << QString(buf).split("\n"); |
156 qDebug() << "Client: " << QString(buf).split("\n"); |
157 NetSocket.write(buf); |
157 NetSocket.write(buf); |
158 NetSocket.write("\n\n", 2); |
158 NetSocket.write("\n\n", 2); |
159 } |
159 } |
160 |
160 |
161 void HWNewNet::ClientRead() |
161 void HWNewNet::ClientRead() |
200 } |
200 } |
201 } |
201 } |
202 |
202 |
203 void HWNewNet::ParseCmd(const QStringList & lst) |
203 void HWNewNet::ParseCmd(const QStringList & lst) |
204 { |
204 { |
205 //qDebug() << "Server: " << lst; |
205 qDebug() << "Server: " << lst; |
206 |
206 |
207 if(!lst.size()) |
207 if(!lst.size()) |
208 { |
208 { |
209 qWarning("Net client: Bad message"); |
209 qWarning("Net client: Bad message"); |
210 return; |
210 return; |