Skip to content

Commit f6ec853

Browse files
committed
fix:can't hit server with choice
update:docment update distributed note
1 parent f4975b5 commit f6ec853

File tree

7 files changed

+42
-38
lines changed

7 files changed

+42
-38
lines changed

README.en.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ The purpose of development and implementation based on libXEngine is a cross-pla
1212
This repository has a development and master branch. If you want to use it, please use the master branch
1313

1414
feature list:
15-
1. support file http upload and download(use put and get method)
16-
2. support http api notify of event and management api interface
17-
3. support http encrypt and cert data transimission(planning)
18-
4. support mysql record infomation.
19-
5. support load banace(planning)
20-
6. supprot http auth
21-
7. support log and config
22-
8. supprot speeds contral
23-
9. supprot task start and end proxy forwarding
24-
10.support p2p,bt and many more(planning)
25-
11.support second pass
26-
12.support nginx upload module proxy_pass
27-
13.support upload and download Redirect
15+
1. support file http upload and download(use put and get method)
16+
2. support http api notify of event and management api interface
17+
3. support http encrypt and cert data transimission(planning) \
18+
4. support mysql record infomation.
19+
5. support load banace(planning)
20+
6. supprot http auth
21+
7. support log and config
22+
8. supprot speeds contral
23+
9. supprot task start and end proxy forwarding
24+
10. support p2p,bt and many more(planning)
25+
11. support second pass
26+
12. support nginx upload module proxy_pass
27+
13. support upload and download Redirect
2828

2929
## install
3030

@@ -85,7 +85,8 @@ The realization of downloading second transmission is to first query the local f
8585
## directory struct
8686
- XEngine_Docment docment directory
8787
- XEngine_Release install directory
88-
- XEngine_Source code directory
88+
- XEngine_Source code directory
89+
- XEngine_APPClient client code dir
8990

9091
## other problems
9192
You can refer to the document under the docment directory. It contains API protocol and service description.

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ c c++ file storage service
1111
基于libXEngine开发并实现的一套简洁高性能跨平台网络存储服务
1212
本仓库有开发和主分支,如果要使用,请使用master分支下的代码
1313
软件特性:
14-
1. 支持HTTP协议上传和下载(采用PUT和GET)
15-
2. 支持HTTP API接口事件通知与管理
16-
3. 支持HTTP加密与证书(规划中)
17-
4. 采用MYSQL记录信息
18-
5. 支持分布式(规划中)
19-
6. 支持HTTP验证
20-
7. 支持详尽的日志和配置信息
21-
8. 支持传输速率控制
22-
9. 支持任务开始结束代理转发
23-
10.支持P2P,BT,数据分发(规划中)
24-
11.支持秒传
25-
12.支持NGINX UPLOAD MODULE上传代理
26-
13.支持上传和下载重定向
14+
1. 支持HTTP协议上传和下载(采用PUT和GET)
15+
2. 支持HTTP API接口事件通知与管理
16+
3. 支持HTTP加密与证书(规划中)
17+
4. 采用MYSQL记录信息
18+
5. 支持分布式(规划中)
19+
6. 支持HTTP验证
20+
7. 支持详尽的日志和配置信息
21+
8. 支持传输速率控制
22+
9. 支持任务开始结束代理转发
23+
10. 支持P2P,BT,数据分发(规划中)
24+
11. 支持秒传
25+
12. 支持NGINX UPLOAD MODULE上传代理
26+
13. 支持上传和下载重定向
2727

2828
## 安装教程
2929

@@ -75,9 +75,10 @@ make FLAGS=CleanAll 清理编译
7575
6. 通过curl或postman 等三方工具测试上传下载
7676

7777
## 目录结构
78-
- XEngine_Docment 文档目录结构
79-
- XEngine_Release 安装目录结构
80-
- XEngine_Source 源代目录结构
78+
- XEngine_Docment 文档目录结构
79+
- XEngine_Release 安装目录结构
80+
- XEngine_Source 源代目录结构
81+
- XEngine_APPClient 客户端演示代码
8182

8283

8384
## 秒传实现

XEngine_Docment/Docment_en.docx

2.13 KB
Binary file not shown.

XEngine_Docment/Docment_zh.docx

2.08 KB
Binary file not shown.

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@
3131
"SQLPass": "123123Ruiyue"
3232
},
3333
"XStorage": {
34-
"nUseMode": 0,
3534
"nHashMode": 2,
3635
"bRename": 0,
37-
"tszHttpAddr": "http://192.168.1.9",
38-
"tszNginAddr": "http://192.168.1.9:5010",
3936
"tszFileDir": "./XEngine_File"
4037
},
4138
"XProxy": {
@@ -45,8 +42,8 @@
4542
"tszAuthProxy": ""
4643
},
4744
"XProxyPass": {
48-
"bUPGet": 1,
49-
"bDLGet": 1,
45+
"bUPGet": 0,
46+
"bDLGet": 0,
5047
"tszUPPass": "http://192.168.1.7:5200/Api/Pass/UPFile",
5148
"tszDLPass": "http://192.168.1.7:5200/Api/Pass/UPFile"
5249
}
@@ -57,11 +54,12 @@
5754
},
5855
"XVer": {
5956
"StorageVersion": [
57+
"1.5.0.1001 Build20210716",
6058
"1.4.0.1001 Build20210702",
6159
"1.3.0.1001 Build20210625",
6260
"1.2.0.1001 Build20210618",
6361
"1.1.0.1001 Build20210611",
6462
"1.0.0.1001 Build20210501"
6563
]
6664
}
67-
}
65+
}

XEngine_Release/XEngine_Config/XEngine_LBConfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"http://192.168.1.9:5100"
1313
],
1414
"DownloadAddr": [
15-
"http://192.168.1.9:5101"
15+
"http://192.168.1.9:5010"
1616
],
1717
"UPLoaderAddr": [
1818
"http://192.168.1.9:5102"

XEngine_Source/StorageModule_APIHelp/APIHelp_Distributed/APIHelp_Distributed.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<tstring>* pStl_Li
3838
BOOL bFound = FALSE;
3939
XNETHANDLE xhToken = 0;
4040

41-
BaseLib_OperatorHandle_Create(&xhToken, 1, pStl_ListAddr->size());
41+
BaseLib_OperatorHandle_Create(&xhToken, 0, pStl_ListAddr->size(), FALSE);
42+
if (xhToken == pStl_ListAddr->size())
43+
{
44+
xhToken--;
45+
}
4246
list<tstring>::const_iterator stl_ListIterator = pStl_ListAddr->begin();
4347
for (XNETHANDLE i = 0; stl_ListIterator != pStl_ListAddr->end(); stl_ListIterator++, i++)
4448
{

0 commit comments

Comments
 (0)