send: client send part.

This commit is contained in:
2025-06-14 23:44:13 +08:00
parent 3f74ca3b1b
commit 72df3216a5
2 changed files with 60 additions and 5 deletions

View File

@@ -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