QT TCP/IP 服务器

  • N7_626418
    了解作者
  • 801.8KB
    文件大小
  • 文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-11 04:40
    上传日期
服务器实现简单的互相发送接收数据
tcpserver.tar.gz
  • tcpserver
  • build-tcpserver-Desktop-Debug
  • tcpserver
    750KB
  • main.o
    421.9KB
  • Makefile
    73.1KB
  • moc_tcpserver.o
    434.2KB
  • ui_tcpserver.h
    4.8KB
  • moc_tcpserver.cpp
    3.8KB
  • tcpserver.o
    494.2KB
  • tcpserver.pro.user
    18.3KB
  • tcpserver.pro
    367B
  • tcpserver.pro.user.3d984dc
    18.4KB
  • tcpserver.h
    498B
  • main.cpp
    170B
  • tcpserver.cpp
    1.3KB
  • tcpserver.ui
    2.9KB
内容介绍
/**************************************************************************** ** Meta object code from reading C++ file 'tcpserver.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "../tcpserver.h" #include <QtCore/qbytearray.h> #include <QtCore/qmetatype.h> #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'tcpserver.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 67 #error "This file was generated using the moc from 5.5.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE struct qt_meta_stringdata_tcpserver_t { QByteArrayData data[6]; char stringdata0[71]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_tcpserver_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_tcpserver_t qt_meta_stringdata_tcpserver = { { QT_MOC_LITERAL(0, 0, 9), // "tcpserver" QT_MOC_LITERAL(1, 10, 11), // "sendMessage" QT_MOC_LITERAL(2, 22, 0), // "" QT_MOC_LITERAL(3, 23, 14), // "receiveMessage" QT_MOC_LITERAL(4, 38, 10), // "successful" QT_MOC_LITERAL(5, 49, 21) // "on_pushButton_clicked" }, "tcpserver\0sendMessage\0\0receiveMessage\0" "successful\0on_pushButton_clicked" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_tcpserver[] = { // content: 7, // revision 0, // classname 0, 0, // classinfo 4, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: name, argc, parameters, tag, flags 1, 0, 34, 2, 0x08 /* Private */, 3, 0, 35, 2, 0x08 /* Private */, 4, 0, 36, 2, 0x08 /* Private */, 5, 0, 37, 2, 0x08 /* Private */, // slots: parameters QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, 0 // eod }; void tcpserver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { tcpserver *_t = static_cast<tcpserver *>(_o); Q_UNUSED(_t) switch (_id) { case 0: _t->sendMessage(); break; case 1: _t->receiveMessage(); break; case 2: _t->successful(); break; case 3: _t->on_pushButton_clicked(); break; default: ; } } Q_UNUSED(_a); } const QMetaObject tcpserver::staticMetaObject = { { &QMainWindow::staticMetaObject, qt_meta_stringdata_tcpserver.data, qt_meta_data_tcpserver, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} }; const QMetaObject *tcpserver::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *tcpserver::qt_metacast(const char *_clname) { if (!_clname) return Q_NULLPTR; if (!strcmp(_clname, qt_meta_stringdata_tcpserver.stringdata0)) return static_cast<void*>(const_cast< tcpserver*>(this)); return QMainWindow::qt_metacast(_clname); } int tcpserver::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 4) qt_static_metacall(this, _c, _id, _a); _id -= 4; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 4) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 4; } return _id; } QT_END_MOC_NAMESPACE
评论
    相关推荐