Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_45630965
zoompipeline
提交
19727fab
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 搜索 >>
提交
19727fab
编写于
5月 03, 2014
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
all work finished! Need heavily test
上级
de8932d0
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
43 addition
and
90 deletion
+43
-90
ZoomPipeline_CtrlSvr/ZoomPipeline_CtrlSvr.pro
ZoomPipeline_CtrlSvr/ZoomPipeline_CtrlSvr.pro
+0
-20
ZoomPipeline_CtrlSvr/main.cpp
ZoomPipeline_CtrlSvr/main.cpp
+0
-11
ZoomPipeline_CtrlSvr/maindialog.cpp
ZoomPipeline_CtrlSvr/maindialog.cpp
+0
-14
ZoomPipeline_CtrlSvr/maindialog.h
ZoomPipeline_CtrlSvr/maindialog.h
+0
-22
ZoomPipeline_CtrlSvr/maindialog.ui
ZoomPipeline_CtrlSvr/maindialog.ui
+0
-20
ZoomPipeline_FuncSvr/smartlink/st_client_table.cpp
ZoomPipeline_FuncSvr/smartlink/st_client_table.cpp
+18
-0
ZoomPipeline_FuncSvr/smartlink/st_client_table.h
ZoomPipeline_FuncSvr/smartlink/st_client_table.h
+1
-1
ZoomPipeline_FuncSvr/smartlink/st_cross_svr_node.cpp
ZoomPipeline_FuncSvr/smartlink/st_cross_svr_node.cpp
+22
-0
ZoomPipeline_FuncSvr/smartlink/st_cross_svr_node.h
ZoomPipeline_FuncSvr/smartlink/st_cross_svr_node.h
+1
-0
zoomPipeline.pro
zoomPipeline.pro
+1
-2
未找到文件。
ZoomPipeline_CtrlSvr/ZoomPipeline_CtrlSvr.pro
已删除
100644 → 0
浏览文件 @
de8932d0
#-------------------------------------------------
#
#
Project
created
by
QtCreator
2014
-
02
-
22
T21
:
50
:
54
#
#-------------------------------------------------
QT
+=
core
gui
network
sql
greaterThan
(
QT_MAJOR_VERSION
,
4
)
:
QT
+=
widgets
TARGET
=
ZoomPipeline_CtrlSvr
TEMPLATE
=
app
SOURCES
+=
main
.
cpp
\
maindialog
.
cpp
HEADERS
+=
maindialog
.
h
FORMS
+=
maindialog
.
ui
ZoomPipeline_CtrlSvr/main.cpp
已删除
100644 → 0
浏览文件 @
de8932d0
#include "maindialog.h"
#include <QApplication>
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
a
(
argc
,
argv
);
MainDialog
w
;
w
.
show
();
return
a
.
exec
();
}
ZoomPipeline_CtrlSvr/maindialog.cpp
已删除
100644 → 0
浏览文件 @
de8932d0
#include "maindialog.h"
#include "ui_maindialog.h"
MainDialog
::
MainDialog
(
QWidget
*
parent
)
:
QDialog
(
parent
),
ui
(
new
Ui
::
MainDialog
)
{
ui
->
setupUi
(
this
);
}
MainDialog
::~
MainDialog
()
{
delete
ui
;
}
ZoomPipeline_CtrlSvr/maindialog.h
已删除
100644 → 0
浏览文件 @
de8932d0
#ifndef MAINDIALOG_H
#define MAINDIALOG_H
#include <QDialog>
namespace
Ui
{
class
MainDialog
;
}
class
MainDialog
:
public
QDialog
{
Q_OBJECT
public:
explicit
MainDialog
(
QWidget
*
parent
=
0
);
~
MainDialog
();
private:
Ui
::
MainDialog
*
ui
;
};
#endif // MAINDIALOG_H
ZoomPipeline_CtrlSvr/maindialog.ui
已删除
100644 → 0
浏览文件 @
de8932d0
<ui version="4.0">
<class>MainDialog</class>
<widget class="QDialog" name="MainDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainDialog</string>
</property>
</widget>
<layoutDefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>
ZoomPipeline_FuncSvr/smartlink/st_client_table.cpp
浏览文件 @
19727fab
...
...
@@ -318,6 +318,24 @@ namespace SmartLink{
m_pCluster
->
SendDataToRemoteServer
(
svr
,
array
);
}
}
bool
st_client_table
::
SendToNode
(
quint32
uuid
,
const
QByteArray
&
msg
)
{
bool
bres
=
false
;
m_hash_mutex
.
lock
();
if
(
m_hash_uuid2node
.
contains
(
uuid
))
{
st_clientNode_baseTrans
*
pAppLayer
=
qobject_cast
<
st_clientNode_baseTrans
*>
(
m_hash_uuid2node
[
uuid
]);
if
(
pAppLayer
)
{
this
->
m_pThreadEngine
->
SendDataToClient
(
pAppLayer
->
sock
(),
msg
);
bres
=
true
;
}
m_hash_mutex
.
unlock
();
}
m_hash_mutex
.
unlock
();
return
bres
;
}
//this event indicates a client disconnected.
void
st_client_table
::
on_evt_NewSvrDisconnected
(
const
QString
&
svrHandle
)
...
...
ZoomPipeline_FuncSvr/smartlink/st_client_table.h
浏览文件 @
19727fab
...
...
@@ -30,7 +30,7 @@ namespace SmartLink{
bool
regisitClientUUID
(
st_clientNode_baseTrans
*
);
st_clientNode_baseTrans
*
clientNodeFromUUID
(
quint32
);
st_clientNode_baseTrans
*
clientNodeFromSocket
(
QObject
*
);
bool
SendToNode
(
quint32
uuid
,
const
QByteArray
&
msg
);
//Heart beating and healthy
void
KickDeadClients
();
int
heartBeatingThrd
();
...
...
ZoomPipeline_FuncSvr/smartlink/st_cross_svr_node.cpp
浏览文件 @
19727fab
#include "st_cross_svr_node.h"
#include "../cluster/zp_clusterterm.h"
#include "st_client_table.h"
#include "st_message.h"
namespace
SmartLink
{
st_cross_svr_node
::
st_cross_svr_node
(
ZP_Cluster
::
zp_ClusterTerm
*
pTerm
,
QObject
*
psock
,
QObject
*
parent
)
:
ZP_Cluster
::
zp_ClusterNode
(
pTerm
,
psock
,
parent
)
{
m_currStMegSize
=
0
;
m_destin_uuid
=
0xffffffff
;
}
int
st_cross_svr_node
::
st_bytesLeft
()
{
...
...
@@ -47,6 +49,7 @@ namespace SmartLink{
{
m_currStMegSize
=
0
;
m_currStBlock
.
clear
();
m_destin_uuid
=
0xffffffff
;
}
}
return
ZP_Cluster
::
zp_ClusterNode
::
deal_user_data
(
array
);
...
...
@@ -75,6 +78,25 @@ namespace SmartLink{
}
break
;
case
0x03
:
// data transfer
{
if
(
m_destin_uuid
==
0xffffffff
)
{
if
(
m_currStMegSize
>=
sizeof
(
STCROSSSVR_MSG
::
tag_msgHearder
)
+
sizeof
(
SMARTLINK_MSG
)
-
1
)
{
STCROSSSVR_MSG
*
pMsg
=
(
STCROSSSVR_MSG
*
)
m_currStBlock
.
constData
();
SMARTLINK_MSG
*
pSmMsg
=
(
SMARTLINK_MSG
*
)
pMsg
->
payload
.
data
;
m_destin_uuid
=
pSmMsg
->
destin_id
;
}
}
if
(
m_destin_uuid
==
0xffffffff
)
return
false
;
//Transfer
if
(
false
==
m_pClientTable
->
SendToNode
(
this
->
m_destin_uuid
,
m_currStBlock
))
{
}
}
delCurrBlock
=
true
;
break
;
default:
...
...
ZoomPipeline_FuncSvr/smartlink/st_cross_svr_node.h
浏览文件 @
19727fab
...
...
@@ -25,6 +25,7 @@ namespace SmartLink{
QByteArray
m_currStBlock
;
//current Header
STCROSSSVR_MSG
::
tag_msgHearder
m_st_Header
;
quint32
m_destin_uuid
;
};
}
#endif // ST_CROSS_SVR_NODE_H
zoomPipeline.pro
浏览文件 @
19727fab
TEMPLATE
=
subdirs
SUBDIRS
+=
QTcpClientTest
\
ZoomPipeline_CtrlSvr
SUBDIRS
+=
QTcpClientTest
SUBDIRS
+=
FunctionalClientTest
SUBDIRS
+=
ZoomPipeline_FuncSvr
TRANSLATIONS
+=
.
/
ZoomPipeline_FuncSvr
/
ZoomPipeline_FuncSvr_zh_CN
.
ts
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录