-
大小: 35.92MB文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2023-07-11
- 語(yǔ)言: 其他
- 標(biāo)簽: QT??TCP??網(wǎng)絡(luò)協(xié)議??
資源簡(jiǎn)介
基于QT的TCP程序,包含兩個(gè)文件夾,一個(gè)是客戶端的代碼,主要使用socket類;另一個(gè)是客戶端代碼,主要是由server類。注釋詳細(xì),適合初學(xué)者
代碼片段和文件信息
/****************************************************************************
**?meta?object?code?from?reading?C++?file?‘tcpserver.h‘
**
**?Created?by:?The?Qt?meta?object?Compiler?version?67?(Qt?5.8.0)
**
**?WARNING!?All?changes?made?in?this?file?will?be?lost!
*****************************************************************************/
#include?“../../TCP_Server/tcpserver.h“
#include?
#include?tatype.h>
#if?!defined(Q_MOC_OUTPUT_REVISION)
#error?“The?header?file?‘tcpserver.h‘?doesn‘t?include?ject>.“
#elif?Q_MOC_OUTPUT_REVISION?!=?67
#error?“This?file?was?generated?using?the?moc?from?5.8.0.?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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct?qt_meta_stringdata_TCPServer_t?{
????QByteArrayData?data[7];
????char?stringdata0[114];
};
#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?27)?//?“on_listenpushButton_clicked“
QT_MOC_LITERAL(2?38?0)?//?““
QT_MOC_LITERAL(3?39?25)?//?“on_sendpushButton_clicked“
QT_MOC_LITERAL(4?65?18)?//?“server_New_Connect“
QT_MOC_LITERAL(5?84?9)?//?“read_data“
QT_MOC_LITERAL(6?94?19)?//?“socket_disconnected“
????}
????“TCPServer\0on_listenpushButton_clicked\0“
????“\0on_sendpushButton_clicked\0“
????“server_New_Connect\0read_data\0“
????“socket_disconnected“
};
#undef?QT_MOC_LITERAL
static?const?uint?qt_meta_data_TCPServer[]?=?{
?//?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?0x08?/*?Private?*/
???????3????0???40????2?0x08?/*?Private?*/
???????4????0???41????2?0x08?/*?Private?*/
???????5????0???42????2?0x08?/*?Private?*/
???????6????0???43????2?0x08?/*?Private?*/
?//?slots:?parameters
????QmetaType::Void
????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(_o);
????????Q_UNUSED(_t)
????????switch?(_id)?{
????????case?0:?_t->on_listenpushButton_clicked();?break;
????????case?1:?_t->on_sendpushButton_clicked();?break;
????????case?2:?_t->server_New_Connect();?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-05-04?10:31??TCP\
?????目錄???????????0??2018-05-14?09:55??TCP\TCP_Server\
?????目錄???????????0??2018-05-09?18:44??TCP\TCP_Server\TCPServer(發(fā)行版)\
?????目錄???????????0??2018-05-09?18:44??TCP\TCP_Server\TCPServer(發(fā)行版)\bearer\
?????文件???????90112??2017-01-19?04:59??TCP\TCP_Server\TCPServer(發(fā)行版)\bearer\qgenericbearer.dll
?????文件???????82432??2017-01-19?04:59??TCP\TCP_Server\TCPServer(發(fā)行版)\bearer\qnativewifibearer.dll
?????文件?????2106216??2010-05-26?11:41??TCP\TCP_Server\TCPServer(發(fā)行版)\D3Dcompiler_43.dll
?????目錄???????????0??2018-05-09?18:44??TCP\TCP_Server\TCPServer(發(fā)行版)\iconengines\
?????文件???????43008??2017-01-19?05:15??TCP\TCP_Server\TCPServer(發(fā)行版)\iconengines\qsvgicon.dll
?????目錄???????????0??2018-05-09?18:44??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\
?????文件???????33792??2017-01-19?05:00??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qgif.dll
?????文件???????46592??2017-01-19?05:13??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qicns.dll
?????文件???????36352??2017-01-19?04:59??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qico.dll
?????文件??????247296??2017-01-19?05:00??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qjpeg.dll
?????文件???????27136??2017-01-19?05:15??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qsvg.dll
?????文件???????28672??2017-01-19?05:13??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qtga.dll
?????文件??????448512??2017-01-19?05:14??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qtiff.dll
?????文件???????27648??2017-01-19?05:14??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qwbmp.dll
?????文件??????431616??2017-01-19?05:15??TCP\TCP_Server\TCPServer(發(fā)行版)\imageformats\qwebp.dll
?????文件???????22016??2017-01-19?04:44??TCP\TCP_Server\TCPServer(發(fā)行版)\libEGL.dll
?????文件??????120334??2015-12-29?06:25??TCP\TCP_Server\TCPServer(發(fā)行版)\libgcc_s_dw2-1.dll
?????文件?????2801664??2017-01-19?04:43??TCP\TCP_Server\TCPServer(發(fā)行版)\libGLESV2.dll
?????文件?????1540622??2015-12-29?06:25??TCP\TCP_Server\TCPServer(發(fā)行版)\libstdc++-6.dll
?????文件???????79360??2015-12-29?06:25??TCP\TCP_Server\TCPServer(發(fā)行版)\libwinpthread-1.dll
?????文件????????1472??2018-05-09?18:42??TCP\TCP_Server\TCPServer(發(fā)行版)\main.o
?????文件????????9894??2018-05-09?18:42??TCP\TCP_Server\TCPServer(發(fā)行版)\moc_predefs.h
?????文件????????4332??2018-05-09?18:42??TCP\TCP_Server\TCPServer(發(fā)行版)\moc_tcpserver.cpp
?????文件????????9761??2018-05-09?18:42??TCP\TCP_Server\TCPServer(發(fā)行版)\moc_tcpserver.o
?????文件????15995904??2016-06-14?21:08??TCP\TCP_Server\TCPServer(發(fā)行版)\opengl32sw.dll
?????目錄???????????0??2018-05-09?18:44??TCP\TCP_Server\TCPServer(發(fā)行版)\platforms\
?????文件?????1735680??2017-01-19?05:01??TCP\TCP_Server\TCPServer(發(fā)行版)\platforms\qwindows.dll
............此處省略41個(gè)文件信息
評(píng)論
共有 條評(píng)論