• 大小: 95KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-07
  • 语言: 数据库
  • 标签: Qt5SQLITE3  

资源简介

Qt5开发简单的服务器,提供日志查询,时间广播功能,采用SQLITE3.

资源截图

代码片段和文件信息

#include “broadcastthread.h“

BroadcastThread::BroadcastThread(Qobject *parent) :
    Qobject(parent)
    bStop(true)
{
    timeCount = 0;
    frameCount = 0;

    datagram.resize(STD_frame_SIZE);
    datagram.fill(0xAA);
    datagram[0] = 0x1A;
    datagram[1] = 0xCF;
    datagram[2] = 0xFC;
    datagram[3] = 0x1D;
    datagram[4] = 0x57;// ‘W‘ Weinbery
    datagram[5] = 0x44;// ‘D‘ Dynamic
    datagram[6] = 0x00;//
    datagram[7] = 0x01;// Version 0x0001
    ///
    sender = new QUdpSocket(this);
    logger = new Logger(this);
    connect(this SIGNAL(ReadyWrite(QString)) logger SLOT(writeLog(QString)));
}

void BroadcastThread::setBroadcastStatus(bool Stop)
{
    bStop = Stop;
}

/// 本方法只适用于所定义的广播帧
void BroadcastThread::calcCheckSum(QByteArray &data)
{
    if(data.size() != STD_FRAM

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1859  2017-07-24 16:35  WeinberyServer-master\broadcastthread.cpp

     文件        837  2017-07-24 16:21  WeinberyServer-master\broadcastthread.h

    .......      4381  2017-06-13 06:21  WeinberyServer-master\client.cpp

    .......       727  2017-06-13 06:21  WeinberyServer-master\client.h

    .......      1869  2017-06-13 06:21  WeinberyServer-master\defination.h

    .......      1059  2017-06-13 06:21  WeinberyServer-master\global.h

    .......     67646  2017-06-13 06:21  WeinberyServer-master\images\WeinberyServer.ico

    .......      3683  2017-06-13 06:21  WeinberyServer-master\images\WeinberyServer.png

    .......       626  2017-06-13 06:21  WeinberyServer-master\logger.cpp

    .......       281  2017-06-13 06:21  WeinberyServer-master\logger.h

    .......       980  2017-06-13 06:21  WeinberyServer-master\main.cpp

    .......       254  2017-06-13 06:21  WeinberyServer-master\README.md

    .......     68324  2017-06-13 06:21  WeinberyServer-master\res.aps

    .......       103  2017-06-13 06:21  WeinberyServer-master\res.qrc

    .......        55  2017-06-13 06:21  WeinberyServer-master\res.rc

    .......      1049  2017-06-13 06:21  WeinberyServer-master\server.cpp

    .......       699  2017-06-13 06:21  WeinberyServer-master\server.h

    .......      2582  2017-06-13 06:21  WeinberyServer-master\sqlitedatabase.h

    .......      3275  2017-06-13 06:21  WeinberyServer-master\task.cpp

    .......       860  2017-06-13 06:21  WeinberyServer-master\task.h

    .......     67646  2017-06-13 06:21  WeinberyServer-master\WeinberyServer.ico

    .......      1051  2017-06-13 06:21  WeinberyServer-master\WeinberyServer.pro

     文件      23840  2017-08-03 21:39  WeinberyServer-master\WeinberyServer.pro.user

     目录          0  2017-06-13 06:21  WeinberyServer-master\images

     目录          0  2017-08-03 21:39  WeinberyServer-master

----------- ---------  ---------- -----  ----

               253686                    25


评论

共有 条评论

相关资源