Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
XEngine
XEngine Storage
提交
57eb1701
X
XEngine Storage
项目概览
XEngine
/
XEngine Storage
10 个月 前同步成功
通知
0
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
XEngine Storage
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
57eb1701
编写于
2月 08, 2023
作者:
xengine-qyt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
improved:Session_UPStroage_Insert function parament
上级
47f3cbdb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
21 deletion
+10
-21
XEngine_Source/StorageModule_Session/Session_Define.h
XEngine_Source/StorageModule_Session/Session_Define.h
+3
-8
XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.cpp
...orageModule_Session/Session_Stroage/Session_UPStroage.cpp
+3
-9
XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.h
...StorageModule_Session/Session_Stroage/Session_UPStroage.h
+1
-1
XEngine_Source/StorageModule_Session/pch.cpp
XEngine_Source/StorageModule_Session/pch.cpp
+2
-2
XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp
XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp
+1
-1
未找到文件。
XEngine_Source/StorageModule_Session/Session_Define.h
浏览文件 @
57eb1701
...
...
@@ -331,17 +331,12 @@ extern "C" BOOL Session_UPStroage_Destory();
类型:整数型
可空:N
意思:输入文件大小
参数.五:nLeftCount
In/Out:In
类型:整数型
可空:N
意思:输入需要写入的大小
参数.六:nPosStart
参数.五:nPosStart
In/Out:In
类型:整数型
可空:Y
意思:输入起始位置
参数.
七
:nPostEnd
参数.
六
:nPostEnd
In/Out:In
类型:整数型
可空:Y
...
...
@@ -351,7 +346,7 @@ extern "C" BOOL Session_UPStroage_Destory();
意思:是否成功
备注:
*********************************************************************/
extern
"C"
BOOL
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
__int64x
nLeftCount
,
int
nPosStart
=
0
,
int
nPostEnd
=
0
);
extern
"C"
BOOL
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
int
nPosStart
=
0
,
int
nPostEnd
=
0
);
/********************************************************************
函数名称:Session_UPStroage_GetInfo
函数功能:获取上传客户端信息
...
...
XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.cpp
浏览文件 @
57eb1701
...
...
@@ -87,17 +87,12 @@ BOOL CSession_UPStroage::Session_UPStroage_Destory()
类型:整数型
可空:N
意思:输入文件大小
参数.五:nLeftCount
In/Out:In
类型:整数型
可空:N
意思:输入需要写入的大小
参数.六:nPosStart
参数.五:nPosStart
In/Out:In
类型:整数型
可空:Y
意思:输入起始位置
参数.
七
:nPostEnd
参数.
六
:nPostEnd
In/Out:In
类型:整数型
可空:Y
...
...
@@ -107,7 +102,7 @@ BOOL CSession_UPStroage::Session_UPStroage_Destory()
意思:是否成功
备注:
*********************************************************************/
BOOL
CSession_UPStroage
::
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
__int64x
nLeftCount
,
int
nPosStart
/* = 0 */
,
int
nPostEnd
/* = 0 */
)
BOOL
CSession_UPStroage
::
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
int
nPosStart
/* = 0 */
,
int
nPostEnd
/* = 0 */
)
{
Session_IsErrorOccur
=
FALSE
;
...
...
@@ -134,7 +129,6 @@ BOOL CSession_UPStroage::Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTST
//填充下载信息
st_Client
.
st_StorageInfo
.
ullPosStart
=
nPosStart
;
st_Client
.
st_StorageInfo
.
ullPosEnd
=
nPostEnd
;
st_Client
.
st_StorageInfo
.
ullRWCount
=
nLeftCount
;
st_Client
.
st_StorageInfo
.
ullCount
=
nFileSize
;
_tcscpy
(
st_Client
.
st_StorageInfo
.
tszBuckKey
,
lpszBuckKey
);
_tcscpy
(
st_Client
.
st_StorageInfo
.
tszFileDir
,
lpszFileDir
);
...
...
XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.h
浏览文件 @
57eb1701
...
...
@@ -24,7 +24,7 @@ public:
public:
BOOL
Session_UPStroage_Init
(
int
nMaxConnect
,
BOOL
bUPResume
=
FALSE
);
BOOL
Session_UPStroage_Destory
();
BOOL
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
__int64x
nLeftCount
,
int
nPosStart
=
0
,
int
nPostEnd
=
0
);
BOOL
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
int
nPosStart
=
0
,
int
nPostEnd
=
0
);
BOOL
Session_UPStroage_GetInfo
(
LPCTSTR
lpszClientAddr
,
SESSION_STORAGEINFO
*
pSt_StorageInfo
);
BOOL
Session_UPStroage_Write
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszMsgBuffer
,
int
nMsgLen
);
BOOL
Session_UPStroage_Exist
(
LPCTSTR
lpszClientAddr
);
...
...
XEngine_Source/StorageModule_Session/pch.cpp
浏览文件 @
57eb1701
...
...
@@ -96,9 +96,9 @@ extern "C" BOOL Session_UPStroage_Destory()
{
return
m_UPStorage
.
Session_UPStroage_Destory
();
}
extern
"C"
BOOL
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
__int64x
nLeftCount
,
int
nPosStart
,
int
nPostEnd
)
extern
"C"
BOOL
Session_UPStroage_Insert
(
LPCTSTR
lpszClientAddr
,
LPCTSTR
lpszBuckKey
,
LPCTSTR
lpszFileDir
,
__int64x
nFileSize
,
int
nPosStart
,
int
nPostEnd
)
{
return
m_UPStorage
.
Session_UPStroage_Insert
(
lpszClientAddr
,
lpszBuckKey
,
lpszFileDir
,
nFileSize
,
n
LeftCount
,
n
PosStart
,
nPostEnd
);
return
m_UPStorage
.
Session_UPStroage_Insert
(
lpszClientAddr
,
lpszBuckKey
,
lpszFileDir
,
nFileSize
,
nPosStart
,
nPostEnd
);
}
extern
"C"
BOOL
Session_UPStroage_GetInfo
(
LPCTSTR
lpszClientAddr
,
SESSION_STORAGEINFO
*
pSt_StorageInfo
)
{
...
...
XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp
浏览文件 @
57eb1701
...
...
@@ -254,7 +254,7 @@ BOOL XEngine_Task_HttpUPLoader(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
}
SystemApi_File_CreateMutilFolder
(
tszTmpPath
);
}
if
(
!
Session_UPStroage_Insert
(
lpszClientAddr
,
st_StorageBucket
.
tszBuckKey
,
tszFileDir
,
nPosCount
,
n
RVCount
,
n
PosStart
,
nPosEnd
))
if
(
!
Session_UPStroage_Insert
(
lpszClientAddr
,
st_StorageBucket
.
tszBuckKey
,
tszFileDir
,
nPosCount
,
nPosStart
,
nPosEnd
))
{
st_HDRParam
.
bIsClose
=
TRUE
;
st_HDRParam
.
nHttpCode
=
404
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录