Skip to content

Commit c4df1a8

Browse files
authored
Merge pull request #14 from libxengine/develop
V3.0 Merge
2 parents 25733e3 + 257ea7e commit c4df1a8

File tree

94 files changed

+1931
-2459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1931
-2459
lines changed

XEngine_APPClient/APPClient_Download/APPClient_Download.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <XEngine_Include/XEngine_SystemSdk/ProcFile_Define.h>
2222
#include <XEngine_Include/XEngine_SystemSdk/SystemApi_Define.h>
2323
#include <XEngine_Include/XEngine_SystemSdk/SystemApi_Error.h>
24+
#include "../../XEngine_Source/XStorage_Protocol.h"
2425
using namespace std;
2526

2627
#pragma comment(lib,"x86/XEngine_BaseLib/XEngine_BaseLib")
@@ -31,7 +32,7 @@ using namespace std;
3132

3233
typedef struct
3334
{
34-
XENGINE_PROTOCOLFILE st_ProtocolFile;
35+
XENGINE_PROTOCOL_FILE st_ProtocolFile;
3536
CHAR tszIPAddr[64];
3637
}P2PFILE_INFO;
3738

XEngine_Docment/Docment_en.docx

48 Bytes
Binary file not shown.

XEngine_Docment/Docment_zh.docx

20 Bytes
Binary file not shown.

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"bResumable": 1,
4040
"nHashMode": 2,
4141
"bRename": 0,
42-
"tszFileDir": "./XEngine_File"
42+
"tszFileDir": "/home/ubuntu/桌面/XEngine_Storage/XEngine_Source/Debug/XEngine_File"
4343
},
4444
"XProxy": {
4545
"XProxyAuth": {
@@ -68,6 +68,7 @@
6868
},
6969
"XVer": {
7070
"StorageVersion": [
71+
"3.0.0.1001 Build20211029",
7172
"2.5.0.1001 Build20210930",
7273
"2.4.0.1001 Build20210918",
7374
"2.3.0.1001 Build20210903",
@@ -82,4 +83,4 @@
8283
"1.0.0.1001 Build20210501"
8384
]
8485
}
85-
}
86+
}

XEngine_Source/Makefile

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,36 @@ UNICODE = 0
44
FLAGS = RELEASE=$(RELEASE)
55

66
STORAGE_SQL_PATH = ./XEngine_StorageComponents/XStorage_SQLPacket
7-
STORAGE_PROTOCOL_PATH = ./XEngine_StorageComponents/XStorage_Protocol
8-
P2XP_PEER_PATH = ./XEngine_P2XPComponents/XEngine_P2XPPeer
9-
P2XP_PROTOCOL_PATH = ./XEngine_P2XPComponents/XEngine_P2XPProtocol
7+
STORAGE_P2XP_PATH = ./XEngine_StorageComponents/XStorage_P2XPPeer
108

119
BASE_CONFIG_PATH = ./StorageModule_Config
1210
BASE_SESSION_PATH = ./StorageModule_Session
1311
BASE_APIHELP_PATH = ./StorageModule_APIHelp
12+
BASE_PROTOCOL_PATH = ./StorageModule_Protocol
1413

1514
APPSERVICE_STORAGE_PATH = ./XEngine_StorageApp
1615

17-
NETENGINE_LIB = libXStorage_SQLPacket.so libXStorage_Protocol.so \
18-
libXEngine_P2XPPeer.so libXEngine_P2XPProtocol.so \
19-
libStorageModule_Config.so libStorageModule_Session.so libStorageModule_APIHelp.so \
16+
NETENGINE_LIB = libXStorage_SQLPacket.so libXStorage_P2XPPeer.so \
17+
libStorageModule_Config.so libStorageModule_Session.so libStorageModule_APIHelp.so libStorageModule_Protocol.so \
2018
XEngine_StorageApp.exe
2119

2220
.PHONY:MakeAll
2321
MakeAll:$(NETENGINE_LIB)
2422

2523
libXStorage_SQLPacket.so:
2624
make -C $(STORAGE_SQL_PATH) $(FLAGS)
27-
libXStorage_Protocol.so:
28-
make -C $(STORAGE_PROTOCOL_PATH) $(FLAGS)
25+
libXStorage_P2XPPeer.so:
26+
make -C $(STORAGE_P2XP_PATH) $(FLAGS)
2927

30-
libXEngine_P2XPPeer.so:
31-
make -C $(P2XP_PEER_PATH) $(FLAGS)
32-
libXEngine_P2XPProtocol.so:
33-
make -C $(P2XP_PROTOCOL_PATH) $(FLAGS)
34-
3528
libStorageModule_Config.so:
3629
make -C $(BASE_CONFIG_PATH) $(FLAGS)
3730
libStorageModule_Session.so:
3831
make -C $(BASE_SESSION_PATH) $(FLAGS)
3932
libStorageModule_APIHelp.so:
4033
make -C $(BASE_APIHELP_PATH) $(FLAGS)
41-
34+
libStorageModule_Protocol.so:
35+
make -C $(BASE_PROTOCOL_PATH) $(FLAGS)
36+
4237
XEngine_StorageApp.exe:
4338
make -C $(APPSERVICE_STORAGE_PATH) $(FLAGS)
4439

@@ -50,6 +45,3 @@ InstallAll:SetFlags_Install $(NETENGINE_LIB)
5045
SetFlags_Clean:
5146
export FLAGS=CleanAll
5247
CleanAll:SetFlags_Clean $(NETENGINE_LIB)
53-
54-
55-

XEngine_Source/StorageModule_APIHelp/APIHelp_Define.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extern "C" BOOL APIHelp_Distributed_IsMode(list<int>*pStl_ListMode, int nMode);
5959
意思:是否成功
6060
备注:
6161
*********************************************************************/
62-
extern "C" BOOL APIHelp_Distributed_RandomAddr(list<tstring>* pStl_ListAddr, TCHAR* ptszAddr);
62+
extern "C" BOOL APIHelp_Distributed_RandomAddr(list<string>* pStl_ListAddr, TCHAR* ptszAddr);
6363
/********************************************************************
6464
函数名称:APIHelp_Distributed_FileList
6565
函数功能:解析所有解析到的内容并且打包成指定结构

XEngine_Source/StorageModule_APIHelp/APIHelp_Distributed/APIHelp_Distributed.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_IsMode(list<int>* pStl_ListMode,
7474
意思:是否成功
7575
备注:
7676
*********************************************************************/
77-
BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<tstring>* pStl_ListAddr, TCHAR* ptszAddr)
77+
BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<string>* pStl_ListAddr, TCHAR* ptszAddr)
7878
{
7979
APIHelp_IsErrorOccur = FALSE;
8080

@@ -86,7 +86,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<tstring>* pStl_Li
8686
{
8787
xhToken--;
8888
}
89-
list<tstring>::const_iterator stl_ListIterator = pStl_ListAddr->begin();
89+
list<string>::const_iterator stl_ListIterator = pStl_ListAddr->begin();
9090
for (XNETHANDLE i = 0; stl_ListIterator != pStl_ListAddr->end(); stl_ListIterator++, i++)
9191
{
9292
if (xhToken == i)

XEngine_Source/StorageModule_APIHelp/APIHelp_Distributed/APIHelp_Distributed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CAPIHelp_Distributed
1919
~CAPIHelp_Distributed();
2020
public:
2121
BOOL APIHelp_Distributed_IsMode(list<int>* pStl_ListMode, int nMode);
22-
BOOL APIHelp_Distributed_RandomAddr(list<tstring>* pStl_ListAddr, TCHAR* ptszAddr);
22+
BOOL APIHelp_Distributed_RandomAddr(list<string>* pStl_ListAddr, TCHAR* ptszAddr);
2323
BOOL APIHelp_Distributed_FileList(list<APIHELP_LBFILEINFO>* pStl_ListParse, XSTORAGECORE_DBFILE*** pppSt_ListPacket, int* pInt_ListCount);
2424
protected:
2525
BOOL APIHelp_Distributed_FileListParse(LPCTSTR lpszMsgBuffer, int nMsgLen, XSTORAGECORE_DBFILE* pSt_DBFile);

XEngine_Source/StorageModule_APIHelp/pch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" BOOL APIHelp_Distributed_IsMode(list<int>*pStl_ListMode, int nMode)
3333
{
3434
return m_APIDistributed.APIHelp_Distributed_IsMode(pStl_ListMode, nMode);
3535
}
36-
extern "C" BOOL APIHelp_Distributed_RandomAddr(list<tstring>*pStl_ListAddr, TCHAR * ptszAddr)
36+
extern "C" BOOL APIHelp_Distributed_RandomAddr(list<string>*pStl_ListAddr, TCHAR * ptszAddr)
3737
{
3838
return m_APIDistributed.APIHelp_Distributed_RandomAddr(pStl_ListAddr, ptszAddr);
3939
}

XEngine_Source/StorageModule_APIHelp/pch.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ using namespace std;
3232
#include <XEngine_Include/XEngine_BaseLib/BaseLib_Error.h>
3333
#include <XEngine_Include/XEngine_HelpComponents/DataBase_Define.h>
3434
#include <XEngine_Include/XEngine_HelpComponents/DataBase_Error.h>
35-
36-
#ifdef _UNICODE
37-
typedef std::wstring tstring;
38-
#else
39-
typedef std::string tstring;
40-
#endif
41-
35+
#include "../XStorage_Protocol.h"
4236
#include "../XEngine_StorageComponents/XStorage_SQLPacket/SQLPacket_Define.h"
4337
#include "APIHelp_Define.h"
4438
#include "APIHelp_Error.h"

0 commit comments

Comments
 (0)