This action will force synchronization from 广州灵派科技有限公司/Encoder, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#ifndef GROUPRPC_H#define GROUPRPC_H#include <QObject>#include <QUdpSocket>#include <QJsonDocument>#include <QMap>#include <QList>class GroupRequest : public QObject{Q_OBJECTpublic:friend class GroupRPC;explicit GroupRequest(QObject *parent = 0);uint seq;QVariant ret;private:static uint nextSeq;signals:void respond();public slots:};class GroupRPC : public QObject{Q_OBJECTpublic:explicit GroupRPC(QObject *parent = 0);bool init(int p=5432);void updateNet();void addMethod(QString name, QObject* obj, const char* method);QVariant call(QString method,QString to,QVariant data=QVariant(),bool noRespond=false);void setGroupId(int gid);int getGroupId();QHostAddress getFromIp();QHostAddress getLocalIp();QString getFromMac();QString getLoaclMac();private:QVariant callbak(QVariantMap msg);void send(QVariantMap &msg);private:QMap<QString,QObject*> objectMap;QMap<QString, const char*> methodMap;QList<GroupRequest*> requestList;QString localMac;QHostAddress localIp;QUdpSocket socket;QHostAddress fromIp;QString fromMac;int timeout;int port;int groupId;signals:public slots:void onRead();};#endif // GROUPRPC_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。