send: client send part.
This commit is contained in:
@@ -21,15 +21,22 @@ public:
|
||||
bool Connect(const QString& ip, quint16 port);
|
||||
void Disconnect();
|
||||
|
||||
private:
|
||||
void onReadyRead();
|
||||
void onDisconnected();
|
||||
|
||||
private:
|
||||
void UseFrame(QSharedPointer<FrameBuffer> frame);
|
||||
bool Send(QSharedPointer<FrameBuffer> frame);
|
||||
bool Send(const char* data, qint64 len);
|
||||
|
||||
public:
|
||||
QTcpSocket* socket_;
|
||||
QMutex conMutex_;
|
||||
// QSharedPointer<ClientUserInterface> cf;
|
||||
QString remoteID_;
|
||||
QTcpSocket* socket_;
|
||||
QByteArray recvBuffer_;
|
||||
|
||||
std::function<void(const QString& path)> pathCall_;
|
||||
|
||||
QString remoteID_;
|
||||
QByteArray recvBuffer_;
|
||||
};
|
||||
|
||||
#endif // CLIENTCORE_H
|
||||
Reference in New Issue
Block a user