Skip to content

Commit 6398ed4

Browse files
committed
delete:taskpool of download module
1 parent 1649d2c commit 6398ed4

File tree

4 files changed

+104
-279
lines changed

4 files changed

+104
-279
lines changed

XEngine_Source/StorageModule_Session/Session_Define.h

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ typedef struct
3131
__int64x ullRWLen; //已经读取(写入)的大小
3232
__int64x ullPosStart; //开始位置
3333
__int64x ullPosEnd; //结束位置
34-
int nPoolIndex; //任务池索引
3534
FILE* pSt_File;
3635
}SESSION_STORAGEINFO;
3736
//////////////////////////////////////////////////////////////////////////
@@ -89,17 +88,12 @@ extern "C" BOOL Session_User_Exist(LPCTSTR lpszUser, LPCTSTR lpszPass);
8988
/********************************************************************
9089
函数名称:Session_DLStroage_Init
9190
函数功能:初始化下载会话管理器
92-
参数.一:nPoolCount
93-
In/Out:In
94-
类型:整数型
95-
可空:N
96-
意思:输入最大运行多少个下载同时进行
97-
参数.二:nTryTime
91+
参数.一:nTryTime
9892
In/Out:In
9993
类型:整数型
10094
可空:Y
10195
意思:输入重试次数
102-
参数.:nAutoSpeed
96+
参数.:nAutoSpeed
10397
In/Out:In
10498
类型:整数型
10599
可空:Y
@@ -109,7 +103,7 @@ extern "C" BOOL Session_User_Exist(LPCTSTR lpszUser, LPCTSTR lpszPass);
109103
意思:是否成功
110104
备注:
111105
*********************************************************************/
112-
extern "C" BOOL Session_DLStroage_Init(int nPoolCount = 1, int nTryTime = 3, int nAutoSpeed = 3);
106+
extern "C" BOOL Session_DLStroage_Init(int nTryTime = 3, int nAutoSpeed = 3);
113107
/********************************************************************
114108
函数名称:Session_DLStroage_Destory
115109
函数功能:销毁下载管理器
@@ -161,21 +155,16 @@ extern "C" BOOL Session_DLStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszFil
161155
/********************************************************************
162156
函数名称:Session_DLStroage_GetBuffer
163157
函数功能:获得下载器中指定缓冲区
164-
参数.一:nPool
165-
In/Out:In
166-
类型:整数型
167-
可空:N
168-
意思:输入要操作的队列
169-
参数.二:lpszClientAddr
158+
参数.一:lpszClientAddr
170159
In/Out:In
171160
类型:常量字符指针
172161
可空:N
173162
意思:输入客户端地址
174-
参数.:ptszMsgBuffer
163+
参数.:ptszMsgBuffer
175164
In/Out:In
176165
类型:字符指针
177166
可空:N
178-
参数.:pInt_MsgLen
167+
参数.:pInt_MsgLen
179168
In/Out:In
180169
类型:整数型指针
181170
可空:N
@@ -185,21 +174,16 @@ extern "C" BOOL Session_DLStroage_Insert(LPCTSTR lpszClientAddr, LPCTSTR lpszFil
185174
意思:是否成功
186175
备注:
187176
*********************************************************************/
188-
extern "C" BOOL Session_DLStroage_GetBuffer(int nPool, LPCTSTR lpszClientAddr, TCHAR * ptszMsgBuffer, int* pInt_MsgLen);
177+
extern "C" BOOL Session_DLStroage_GetBuffer(LPCTSTR lpszClientAddr, TCHAR * ptszMsgBuffer, int* pInt_MsgLen);
189178
/********************************************************************
190179
函数名称:Session_DLStroage_GetInfo
191180
函数功能:获取下载信息
192-
参数.一:nPool
193-
In/Out:In
194-
类型:整数型
195-
可空:N
196-
意思:输入要操作的下载池
197-
参数.二:lpszClientAddr
181+
参数.一:lpszClientAddr
198182
In/Out:In
199183
类型:常量字符指针
200184
可空:N
201185
意思:输入要操作的客户端
202-
参数.:pSt_StorageInfo
186+
参数.:pSt_StorageInfo
203187
In/Out:Out
204188
类型:数据结构指针
205189
可空:N
@@ -209,16 +193,11 @@ extern "C" BOOL Session_DLStroage_GetBuffer(int nPool, LPCTSTR lpszClientAddr, T
209193
意思:是否成功
210194
备注:
211195
*********************************************************************/
212-
extern "C" BOOL Session_DLStroage_GetInfo(int nPool, LPCTSTR lpszClientAddr, SESSION_STORAGEINFO* pSt_StorageInfo);
196+
extern "C" BOOL Session_DLStroage_GetInfo(LPCTSTR lpszClientAddr, SESSION_STORAGEINFO* pSt_StorageInfo);
213197
/********************************************************************
214198
函数名称:Session_DLStroage_GetCount
215199
函数功能:获取队列拥有的个数
216-
参数.一:nPool
217-
In/Out:In
218-
类型:整数型
219-
可空:N
220-
意思:输入要操作的队列
221-
参数.二:pStl_ListClient
200+
参数.一:pStl_ListClient
222201
In/Out:Out
223202
类型:STL容器指针
224203
可空:N
@@ -228,7 +207,7 @@ extern "C" BOOL Session_DLStroage_GetInfo(int nPool, LPCTSTR lpszClientAddr, SES
228207
意思:是否成功
229208
备注:
230209
*********************************************************************/
231-
extern "C" BOOL Session_DLStroage_GetCount(int nPool, list<string>*pStl_ListClient);
210+
extern "C" BOOL Session_DLStroage_GetCount(list<string>*pStl_ListClient);
232211
/********************************************************************
233212
函数名称:Session_DLStorage_SetSeek
234213
函数功能:移动文件指针

0 commit comments

Comments
 (0)