Extract common write block

This commit is contained in:
craig.p.drummond
2013-12-05 20:02:33 +00:00
parent d4e775cd16
commit fea11cd7f6
2 changed files with 55 additions and 45 deletions

View File

@@ -27,6 +27,7 @@
#include <QTcpServer>
class QHostAddress;
class QTcpSocket;
class HttpSocket : public QTcpServer
{
@@ -48,6 +49,9 @@ private Q_SLOTS:
void readClient();
void discardClient();
private:
bool write(QTcpSocket *socket, char *buffer, qint32 bytesRead, bool &stop);
private:
QString cfgInterface;
QString ifaceAddress;