Files
DbMessaging/messagingserver/client.h
2018-09-22 02:11:37 +02:00

27 lines
400 B
C++

#pragma once
#include <QObject>
class QTcpSocket;
class Server;
class Client : public QObject
{
Q_OBJECT
public:
explicit Client(QTcpSocket *socket, Server *server);
~Client();
qint64 write(const char *data, qint64 len);
qint64 write(const char *data);
qint64 write(const QByteArray &data);
private Q_SLOTS:
void readyRead();
private:
QTcpSocket *m_socket;
};