Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_45630965
zoompipeline
提交
80af38bc
zoompipeline
项目概览
weixin_45630965
/
zoompipeline
与 Fork 源项目一致
Fork自
colorEagleStdio / zoompipeline
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
zoompipeline
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
80af38bc
编写于
5月 06, 2014
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve some ui features
上级
244fa456
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
7 deletion
+12
-7
FunctionalClientTest/maindialog.cpp
FunctionalClientTest/maindialog.cpp
+5
-4
QTcpClientTest/qtcpclienttest.cpp
QTcpClientTest/qtcpclienttest.cpp
+6
-2
ZoomPipeline_FuncSvr/smartlink/st_clientnode_basetrans.cpp
ZoomPipeline_FuncSvr/smartlink/st_clientnode_basetrans.cpp
+1
-1
未找到文件。
FunctionalClientTest/maindialog.cpp
浏览文件 @
80af38bc
...
...
@@ -31,10 +31,10 @@ MainDialog::MainDialog(QWidget *parent) :
QSettings
settings
(
"goldenhawking club"
,
"FunctionalClientTest"
,
this
);
ui
->
lineEdit_ip
->
setText
(
settings
.
value
(
"settings/ip"
,
"localhost"
).
toString
());
ui
->
lineEdit_Port
->
setText
(
settings
.
value
(
"settings/port"
,
"23456"
).
toString
());
ui
->
lineEdit_username
->
setText
(
settings
.
value
(
"settings/client2svr_username"
,
"
client00
1"
).
toString
());
ui
->
lineEdit_password
->
setText
(
settings
.
value
(
"settings/client2svr_password"
,
"
client00
1"
).
toString
());
ui
->
lineEdit_username
->
setText
(
settings
.
value
(
"settings/client2svr_username"
,
"
11
1"
).
toString
());
ui
->
lineEdit_password
->
setText
(
settings
.
value
(
"settings/client2svr_password"
,
"
11
1"
).
toString
());
ui
->
plainTextEdit_box_userids
->
setPlainText
(
settings
.
value
(
"settings/box2svr_uploadid"
,
"0,"
).
toString
());
ui
->
lineEdit_client_uuid
->
setText
(
settings
.
value
(
"settings/client_uuid"
,
"
2147483648
"
).
toString
());
ui
->
lineEdit_client_uuid
->
setText
(
settings
.
value
(
"settings/client_uuid"
,
"
112
"
).
toString
());
}
MainDialog
::~
MainDialog
()
...
...
@@ -57,6 +57,7 @@ void MainDialog::on_client_connected()
{
displayMessage
(
QString
(
"client %1 connected."
).
arg
((
quintptr
)
pSock
));
ui
->
pushButton_connect
->
setEnabled
(
false
);
}
}
...
...
@@ -162,7 +163,7 @@ void MainDialog::on_pushButton_clientLogin_clicked()
int
nMaxLenPassword
=
strStdPassword
.
length
();
quint16
nMsgLen
=
sizeof
(
EXAMPLE_MSG_APP
::
tag_app_layer_header
)
+
sizeof
(
stMsg_ClientLoginReq
)
+
nMaxLenPassword
+
1
;
+
sizeof
(
stMsg_ClientLoginReq
)
+
nMaxLenPassword
;
QByteArray
array
(
sizeof
(
EXAMPLE_TRANS_MSG
)
+
nMsgLen
-
1
,
0
);
char
*
ptr
=
array
.
data
();
EXAMPLE_TRANS_MSG
*
pMsg
=
(
EXAMPLE_TRANS_MSG
*
)
ptr
;
...
...
QTcpClientTest/qtcpclienttest.cpp
浏览文件 @
80af38bc
...
...
@@ -56,7 +56,12 @@ void QTcpClientTest::on_client_connected()
if
(
pSock
)
{
displayMessage
(
QString
(
"client %1 connected."
).
arg
((
quintptr
)
pSock
));
QByteArray
array
(
sizeof
(
EXAMPLE_HEARTBEATING
),
0
);
char
*
ptr
=
array
.
data
();
EXAMPLE_HEARTBEATING
*
pMsg
=
(
EXAMPLE_HEARTBEATING
*
)
ptr
;
pMsg
->
Mark
=
0xBEBE
;
pMsg
->
tmStamp
=
0
;
(
pSock
)
->
SendData
(
array
);
}
}
...
...
@@ -112,7 +117,6 @@ void QTcpClientTest::timerEvent(QTimerEvent * evt)
EXAMPLE_HEARTBEATING
*
pMsg
=
(
EXAMPLE_HEARTBEATING
*
)
ptr
;
pMsg
->
Mark
=
0xBEBE
;
pMsg
->
tmStamp
=
0
;
//3/10 possibility to send a data block to server
(
pSock
)
->
SendData
(
array
);
}
}
...
...
ZoomPipeline_FuncSvr/smartlink/st_clientnode_basetrans.cpp
浏览文件 @
80af38bc
...
...
@@ -37,7 +37,7 @@ namespace ExampleServer{
//judge whether id is valid.
bool
st_clientNode_baseTrans
::
bIsValidUserId
(
quint32
id
)
{
return
id
>=
(
unsigned
int
)
0x00000002
&&
id
<=
(
unsigned
int
)
0x
7FFFFFFF
;
return
id
>=
(
unsigned
int
)
0x00000002
&&
id
<=
(
unsigned
int
)
0x
FFFFFFFE
;
}
//The main functional method, will run in thread pool
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录