資源簡介
知識一個小demo,沒有華麗的頁面,主要還是學習socket套接字的使用
代碼片段和文件信息
/****************************************************************************
**?meta?object?code?from?reading?C++?file?‘tcpclient.h‘
**
**?Created?by:?The?Qt?meta?object?Compiler?version?67?(Qt?5.6.3)
**
**?WARNING!?All?changes?made?in?this?file?will?be?lost!
*****************************************************************************/
#include?“../../TcpClient/tcpclient.h“
#include?
#include?tatype.h>
#if?!defined(Q_MOC_OUTPUT_REVISION)
#error?“The?header?file?‘tcpclient.h‘?doesn‘t?include?ject>.“
#elif?Q_MOC_OUTPUT_REVISION?!=?67
#error?“This?file?was?generated?using?the?moc?from?5.6.3.?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_TcpClient_t?{
????QByteArrayData?data[7];
????char?stringdata0[74];
};
#define?QT_MOC_LITERAL(idx?ofs?len)?\
????Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len?\
????qptrdiff(offsetof(qt_meta_stringdata_TcpClient_t?stringdata0)?+?ofs?\
????????-?idx?*?sizeof(QByteArrayData))?\
????)
static?const?qt_meta_stringdata_TcpClient_t?qt_meta_stringdata_TcpClient?=?{
????{
QT_MOC_LITERAL(0?0?9)?//?“TcpClient“
QT_MOC_LITERAL(1?10?9)?//?“slotEnter“
QT_MOC_LITERAL(2?20?0)?//?““
QT_MOC_LITERAL(3?21?13)?//?“slotConnected“
QT_MOC_LITERAL(4?35?16)?//?“slotDisconnected“
QT_MOC_LITERAL(5?52?12)?//?“dataReceived“
QT_MOC_LITERAL(6?65?8)?//?“slotSend“
????}
????“TcpClient\0slotEnter\0\0slotConnected\0“
????“slotDisconnected\0dataReceived\0slotSend“
};
#undef?QT_MOC_LITERAL
static?const?uint?qt_meta_data_TcpClient[]?=?{
?//?content:
???????7???????//?revision
???????0???????//?classname
???????0????0?//?classinfo
???????5???14?//?methods
???????0????0?//?properties
???????0????0?//?enums/sets
???????0????0?//?constructors
???????0???????//?flags
???????0???????//?signalCount
?//?slots:?name?argc?parameters?tag?flags
???????1????0???39????2?0x0a?/*?Public?*/
???????3????0???40????2?0x0a?/*?Public?*/
???????4????0???41????2?0x0a?/*?Public?*/
???????5????0???42????2?0x0a?/*?Public?*/
???????6????0???43????2?0x0a?/*?Public?*/
?//?slots:?parameters
????QmetaType::Void
????QmetaType::Void
????QmetaType::Void
????QmetaType::Void
????QmetaType::Void
???????0????????//?eod
};
void?TcpClient::qt_static_metacall(Qobject?*_o?Qmetaobject::Call?_c?int?_id?void?**_a)
{
????if?(_c?==?Qmetaobject::InvokemetaMethod)?{
????????TcpClient?*_t?=?static_cast(_o);
????????Q_UNUSED(_t)
????????switch?(_id)?{
????????case?0:?_t->slotEnter();?break;
????????case?1:?_t->slotConnected();?break;
????????case?2:?_t->slotDisconnected();?break;
????????case?3:?_t->dataReceived();?break;
????????case?4:?_t->slotSend();?break;
????????default:?;
????????}
????}
????Q_UNUSED(_a);
}
const?Qmetaobject?TcpClient::s
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-11-30?09:44??TCP\
?????目錄???????????0??2020-11-30?15:45??TCP\TcpClient\
?????文件?????????372??2020-11-30?09:44??TCP\TcpClient\TcpClient.pro
?????文件???????23924??2020-11-30?15:45??TCP\TcpClient\TcpClient.pro.user
?????文件?????????181??2020-11-30?09:21??TCP\TcpClient\main.cpp
?????文件????????4265??2020-11-30?10:30??TCP\TcpClient\tcpclient.cpp
?????文件?????????995??2020-11-30?10:23??TCP\TcpClient\tcpclient.h
?????目錄???????????0??2020-11-30?15:45??TCP\TcpServer\
?????文件?????????458??2020-11-28?10:37??TCP\TcpServer\TcpServer.pro
?????文件???????23924??2020-11-30?15:45??TCP\TcpServer\TcpServer.pro.user
?????文件?????????181??2020-11-28?09:03??TCP\TcpServer\main.cpp
?????文件????????1839??2020-11-28?11:00??TCP\TcpServer\server.cpp
?????文件?????????636??2020-11-28?10:44??TCP\TcpServer\server.h
?????文件?????????747??2020-11-30?11:06??TCP\TcpServer\tcpclientsocket.cpp
?????文件?????????467??2020-11-28?10:59??TCP\TcpServer\tcpclientsocket.h
?????文件????????1270??2020-11-28?10:44??TCP\TcpServer\tcpserver.cpp
?????文件?????????662??2020-11-28?10:44??TCP\TcpServer\tcpserver.h
?????目錄???????????0??2020-11-30?09:44??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\
?????文件???????19499??2020-11-30?09:45??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\Makefile
?????文件???????35752??2020-11-30?09:45??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\Makefile.Debug
?????文件???????35819??2020-11-30?09:45??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\Makefile.Release
?????目錄???????????0??2020-11-30?10:31??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\debug\
?????文件?????1349003??2020-11-30?10:31??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\debug\TcpClient.exe
?????文件??????471189??2020-11-30?10:23??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\debug\main.o
?????文件????????4112??2020-11-30?10:24??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\debug\moc_tcpclient.cpp
?????文件??????424610??2020-11-30?10:24??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\debug\moc_tcpclient.o
?????文件??????459059??2020-11-30?10:30??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\debug\tcpclient.o
?????目錄???????????0??2020-12-01?14:13??TCP\build-TcpClient-Desktop_Qt_5_6_3_MinGW_32bit-Debug\release\
?????目錄???????????0??2020-11-28?10:31??TCP\build-TcpServer-Desktop_Qt_5_6_3_MinGW_32bit-Debug\
?????文件???????19499??2020-11-28?10:37??TCP\build-TcpServer-Desktop_Qt_5_6_3_MinGW_32bit-Debug\Makefile
?????文件???????54711??2020-11-28?10:37??TCP\build-TcpServer-Desktop_Qt_5_6_3_MinGW_32bit-Debug\Makefile.Debug
............此處省略14個文件信息
評論
共有 條評論