mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update qqt server example
This commit is contained in:
parent
9499ab57f8
commit
c271628777
@ -1,4 +1,4 @@
|
||||
#include "mainwindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
MainWindow::MainWindow ( QWidget* parent ) :
|
||||
|
@ -11,7 +11,7 @@ QDebug& operator << ( QDebug& dbg, const QQtClient2Message& msg )
|
||||
|
||||
QQtProtocolManager* QQtServer2ConnectionInstance ( QObject* parent )
|
||||
{
|
||||
static QQtProtocolManager* m0 = 0;
|
||||
static QQtProtocolManager* m0 = NULL;
|
||||
if ( !m0 )
|
||||
{
|
||||
//创建Protocol管理者
|
||||
@ -21,7 +21,7 @@ QQtProtocolManager* QQtServer2ConnectionInstance ( QObject* parent )
|
||||
//初始化Protocol管理者完成。
|
||||
}
|
||||
|
||||
static QQtTcpServer* s0 = 0;
|
||||
static QQtTcpServer* s0 = NULL;
|
||||
if ( !s0 )
|
||||
{
|
||||
//新建服务器
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "qqttcpserver.h"
|
||||
#include "qqttcpserver.h"
|
||||
#include "qqtnetwork.h"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user