Skip to content

Commit 57eb170

Browse files
committed
improved:Session_UPStroage_Insert function parament
1 parent 47f3cbd commit 57eb170

File tree

5 files changed

+10
-21
lines changed

5 files changed

+10
-21
lines changed

XEngine_Source/StorageModule_Session/Session_Define.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -331,17 +331,12 @@ extern "C" BOOL Session_UPStroage_Destory();
331331
类型:整数型
332332
可空:N
333333
意思:输入文件大小
334-
参数.五:nLeftCount
335-
In/Out:In
336-
类型:整数型
337-
可空:N
338-
意思:输入需要写入的大小
339-
参数.六:nPosStart
334+
参数.五:nPosStart
340335
In/Out:In
341336
类型:整数型
342337
可空:Y
343338
意思:输入起始位置
344-
参数.:nPostEnd
339+
参数.:nPostEnd
345340
In/Out:In
346341
类型:整数型
347342
可空:Y
@@ -351,7 +346,7 @@ extern "C" BOOL Session_UPStroage_Destory();
351346
意思:是否成功
352347
备注:
353348
*********************************************************************/
354-
extern "C" BOOL Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, __int64x nLeftCount, int nPosStart = 0, int nPostEnd = 0);
349+
extern "C" BOOL Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, int nPosStart = 0, int nPostEnd = 0);
355350
/********************************************************************
356351
函数名称:Session_UPStroage_GetInfo
357352
函数功能:获取上传客户端信息

XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,12 @@ BOOL CSession_UPStroage::Session_UPStroage_Destory()
8787
类型:整数型
8888
可空:N
8989
意思:输入文件大小
90-
参数.五:nLeftCount
91-
In/Out:In
92-
类型:整数型
93-
可空:N
94-
意思:输入需要写入的大小
95-
参数.六:nPosStart
90+
参数.五:nPosStart
9691
In/Out:In
9792
类型:整数型
9893
可空:Y
9994
意思:输入起始位置
100-
参数.:nPostEnd
95+
参数.:nPostEnd
10196
In/Out:In
10297
类型:整数型
10398
可空:Y
@@ -107,7 +102,7 @@ BOOL CSession_UPStroage::Session_UPStroage_Destory()
107102
意思:是否成功
108103
备注:
109104
*********************************************************************/
110-
BOOL CSession_UPStroage::Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, __int64x nLeftCount, int nPosStart /* = 0 */, int nPostEnd /* = 0 */)
105+
BOOL CSession_UPStroage::Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, int nPosStart /* = 0 */, int nPostEnd /* = 0 */)
111106
{
112107
Session_IsErrorOccur = FALSE;
113108

@@ -134,7 +129,6 @@ BOOL CSession_UPStroage::Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTST
134129
//填充下载信息
135130
st_Client.st_StorageInfo.ullPosStart = nPosStart;
136131
st_Client.st_StorageInfo.ullPosEnd = nPostEnd;
137-
st_Client.st_StorageInfo.ullRWCount = nLeftCount;
138132
st_Client.st_StorageInfo.ullCount = nFileSize;
139133
_tcscpy(st_Client.st_StorageInfo.tszBuckKey, lpszBuckKey);
140134
_tcscpy(st_Client.st_StorageInfo.tszFileDir, lpszFileDir);

XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CSession_UPStroage
2424
public:
2525
BOOL Session_UPStroage_Init(int nMaxConnect, BOOL bUPResume = FALSE);
2626
BOOL Session_UPStroage_Destory();
27-
BOOL Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, __int64x nLeftCount, int nPosStart = 0, int nPostEnd = 0);
27+
BOOL Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, int nPosStart = 0, int nPostEnd = 0);
2828
BOOL Session_UPStroage_GetInfo(LPCTSTR lpszClientAddr, SESSION_STORAGEINFO* pSt_StorageInfo);
2929
BOOL Session_UPStroage_Write(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, int nMsgLen);
3030
BOOL Session_UPStroage_Exist(LPCTSTR lpszClientAddr);

XEngine_Source/StorageModule_Session/pch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ extern "C" BOOL Session_UPStroage_Destory()
9696
{
9797
return m_UPStorage.Session_UPStroage_Destory();
9898
}
99-
extern "C" BOOL Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, __int64x nLeftCount, int nPosStart, int nPostEnd)
99+
extern "C" BOOL Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszBuckKey, LPCTSTR lpszFileDir, __int64x nFileSize, int nPosStart, int nPostEnd)
100100
{
101-
return m_UPStorage.Session_UPStroage_Insert(lpszClientAddr, lpszBuckKey, lpszFileDir, nFileSize, nLeftCount, nPosStart, nPostEnd);
101+
return m_UPStorage.Session_UPStroage_Insert(lpszClientAddr, lpszBuckKey, lpszFileDir, nFileSize, nPosStart, nPostEnd);
102102
}
103103
extern "C" BOOL Session_UPStroage_GetInfo(LPCTSTR lpszClientAddr, SESSION_STORAGEINFO * pSt_StorageInfo)
104104
{

XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ BOOL XEngine_Task_HttpUPLoader(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
254254
}
255255
SystemApi_File_CreateMutilFolder(tszTmpPath);
256256
}
257-
if (!Session_UPStroage_Insert(lpszClientAddr, st_StorageBucket.tszBuckKey, tszFileDir, nPosCount, nRVCount, nPosStart, nPosEnd))
257+
if (!Session_UPStroage_Insert(lpszClientAddr, st_StorageBucket.tszBuckKey, tszFileDir, nPosCount, nPosStart, nPosEnd))
258258
{
259259
st_HDRParam.bIsClose = TRUE;
260260
st_HDRParam.nHttpCode = 404;

0 commit comments

Comments
 (0)