Skip to content

Commit

Permalink
Merge pull request #16 from libxengine/develop
Browse files Browse the repository at this point in the history
V3.2 Merge
  • Loading branch information
xengine-qyt authored Dec 11, 2021
2 parents 6689aca + ac81d3b commit fef136f
Show file tree
Hide file tree
Showing 23 changed files with 541 additions and 344 deletions.
4 changes: 4 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ upload file code optimization
## other problems
You can refer to the document under the docment directory. It contains API protocol and service description.

## Test Service
Address:app.xyry.org or 159.75.200.173
Port:HTTP Center Port 5100,Download 5101,UPLoad 5102,P2P 5103

## Participate in contribution

1. Fork this code
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ P2P广域网文件查找与下载支持
## 其他问题
你可以参考docment目录下的文档.里面包含了API协议和服务说明.

## 测试服务器
地址:app.xyry.org 或者 159.75.200.173
端口:HTTP业务端口 5100,下载 5101,上传 5102,P2P 5103

## 参与贡献

1. Fork 本仓库
Expand Down
Binary file modified XEngine_Docment/Docment_en.docx
Binary file not shown.
Binary file modified XEngine_Docment/Docment_zh.docx
Binary file not shown.
6 changes: 4 additions & 2 deletions XEngine_Release/XEngine_Config/XEngine_Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
},
"XStorage":{
"bResumable":1,
"bUPHash":0,
"nHashMode":2,
"tszFileDir":"/home/ubuntu/桌面/XEngine_Storage/XEngine_Source/Debug/XEngine_File"
"tszFileDir":"./XEngine_File"
},
"XProxy":{
"XProxyAuth":{
Expand Down Expand Up @@ -75,7 +76,8 @@
},
"XVer":{
"StorageVersion":[
"3.1.0.1001 Build20211110",
"3.2.0.1001 Build20211210",
"3.1.0.1001 Build20211109",
"3.0.0.1001 Build20211029",
"2.5.0.1001 Build20210930",
"2.4.0.1001 Build20210918",
Expand Down
37 changes: 37 additions & 0 deletions XEngine_Source/StorageModule_Config/Config_Define.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ typedef struct tag_XEngine_ServerConfig
struct
{
BOOL bResumable;
BOOL bUPHash;
int nHashMode;
TCHAR tszFileDir[MAX_PATH];
}st_XStorage;
Expand Down Expand Up @@ -134,5 +135,41 @@ extern "C" DWORD Config_GetLastError(int *pInt_ErrorCode = NULL);
/************************************************************************/
/* 文件配置读取 */
/************************************************************************/
/********************************************************************
函数名称:Config_Json_File
函数功能:读取基本配置文件
参数.一:lpszConfigFile
In/Out:In
类型:常量字符指针
可空:N
意思:输入配置文件
参数.二:pSt_ServerConfig
In/Out:Out
类型:数据结构指针
可空:N
意思:输出读取到的信息
返回值
类型:逻辑型
意思:是否成功
备注:
*********************************************************************/
extern "C" BOOL Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG * pSt_ServerConfig);
/********************************************************************
函数名称:Config_Json_LoadBalance
函数功能:读取负载均衡配置文件
参数.一:lpszConfigFile
In/Out:In
类型:常量字符指针
可空:N
意思:输入配置文件
参数.二:pSt_ServerConfig
In/Out:Out
类型:数据结构指针
可空:N
意思:输出读取到的信息
返回值
类型:逻辑型
意思:是否成功
备注:
*********************************************************************/
extern "C" BOOL Config_Json_LoadBalance(LPCTSTR lpszConfigFile, XENGINE_LBCONFIG * pSt_ServerConfig);
Loading

0 comments on commit fef136f

Please sign in to comment.