Skip to content

Commit fef136f

Browse files
authored
Merge pull request #16 from libxengine/develop
V3.2 Merge
2 parents 6689aca + ac81d3b commit fef136f

File tree

23 files changed

+541
-344
lines changed

23 files changed

+541
-344
lines changed

README.en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ upload file code optimization
102102
## other problems
103103
You can refer to the document under the docment directory. It contains API protocol and service description.
104104

105+
## Test Service
106+
Address:app.xyry.org or 159.75.200.173
107+
Port:HTTP Center Port 5100,Download 5101,UPLoad 5102,P2P 5103
108+
105109
## Participate in contribution
106110

107111
1. Fork this code

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ P2P广域网文件查找与下载支持
100100
## 其他问题
101101
你可以参考docment目录下的文档.里面包含了API协议和服务说明.
102102

103+
## 测试服务器
104+
地址:app.xyry.org 或者 159.75.200.173
105+
端口:HTTP业务端口 5100,下载 5101,上传 5102,P2P 5103
106+
103107
## 参与贡献
104108

105109
1. Fork 本仓库

XEngine_Docment/Docment_en.docx

189 Bytes
Binary file not shown.

XEngine_Docment/Docment_zh.docx

102 Bytes
Binary file not shown.

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
},
3838
"XStorage":{
3939
"bResumable":1,
40+
"bUPHash":0,
4041
"nHashMode":2,
41-
"tszFileDir":"/home/ubuntu/桌面/XEngine_Storage/XEngine_Source/Debug/XEngine_File"
42+
"tszFileDir":"./XEngine_File"
4243
},
4344
"XProxy":{
4445
"XProxyAuth":{
@@ -75,7 +76,8 @@
7576
},
7677
"XVer":{
7778
"StorageVersion":[
78-
"3.1.0.1001 Build20211110",
79+
"3.2.0.1001 Build20211210",
80+
"3.1.0.1001 Build20211109",
7981
"3.0.0.1001 Build20211029",
8082
"2.5.0.1001 Build20210930",
8183
"2.4.0.1001 Build20210918",

XEngine_Source/StorageModule_Config/Config_Define.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ typedef struct tag_XEngine_ServerConfig
6464
struct
6565
{
6666
BOOL bResumable;
67+
BOOL bUPHash;
6768
int nHashMode;
6869
TCHAR tszFileDir[MAX_PATH];
6970
}st_XStorage;
@@ -134,5 +135,41 @@ extern "C" DWORD Config_GetLastError(int *pInt_ErrorCode = NULL);
134135
/************************************************************************/
135136
/* 文件配置读取 */
136137
/************************************************************************/
138+
/********************************************************************
139+
函数名称:Config_Json_File
140+
函数功能:读取基本配置文件
141+
参数.一:lpszConfigFile
142+
In/Out:In
143+
类型:常量字符指针
144+
可空:N
145+
意思:输入配置文件
146+
参数.二:pSt_ServerConfig
147+
In/Out:Out
148+
类型:数据结构指针
149+
可空:N
150+
意思:输出读取到的信息
151+
返回值
152+
类型:逻辑型
153+
意思:是否成功
154+
备注:
155+
*********************************************************************/
137156
extern "C" BOOL Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG * pSt_ServerConfig);
157+
/********************************************************************
158+
函数名称:Config_Json_LoadBalance
159+
函数功能:读取负载均衡配置文件
160+
参数.一:lpszConfigFile
161+
In/Out:In
162+
类型:常量字符指针
163+
可空:N
164+
意思:输入配置文件
165+
参数.二:pSt_ServerConfig
166+
In/Out:Out
167+
类型:数据结构指针
168+
可空:N
169+
意思:输出读取到的信息
170+
返回值
171+
类型:逻辑型
172+
意思:是否成功
173+
备注:
174+
*********************************************************************/
138175
extern "C" BOOL Config_Json_LoadBalance(LPCTSTR lpszConfigFile, XENGINE_LBCONFIG * pSt_ServerConfig);

0 commit comments

Comments
 (0)