Extract common write block
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user