Skip to content

Instantly share code, notes, and snippets.

#include "protocol_socket.h"
#include <QHostAddress>
ProtocolSocket::ProtocolSocket(QObject *parent)
: QTcpSocket(parent),m_state(0)
{
connect(this, SIGNAL(readyRead()),
this, SLOT(readyRead()));
setObjectName("protocolSocket");