1 Star 0 Fork 16

weinkym/qipmsg

forked from caowai/qipmsg 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ipmsgtcpsession.h 767 Bytes
一键复制 编辑 原始数据 按行查看 历史
caowai 提交于 2019-01-09 13:36 . init version
#ifndef IPMSGTCPSESSION_H
#define IPMSGTCPSESSION_H
#include <QMainWindow>
#include <QObject>
#include <QWidget>
#include <QHostAddress>
#include <QNetworkInterface>
#include <QTcpServer>
#include <QDataStream>
class IpMsgTcpSession : public QObject
{
Q_OBJECT
public:
explicit IpMsgTcpSession(QObject *parent = nullptr);
signals:
public slots:
private:
//Incoming. Outgoing
qint32 tcpDir;
QHostAddress destHost;
uint16_t destPort;
QByteArray fileName;
QByteArray destFileName;
//Connecting, Connected,CloseByRemote,Error,Disconnected
qint32 sessionStatus;
//Wait,Receiving,Sending
qint32 dataStatus;
//0 - 100
qint32 filePersent;
QTcpServer tcpServer;
};
#endif // IPMSGTCPSESSION_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/weinkym/qipmsg.git
[email protected]:weinkym/qipmsg.git
weinkym
qipmsg
qipmsg
master

搜索帮助