-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
40 lines (25 loc) · 883 Bytes
/
README
File metadata and controls
40 lines (25 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
基于ASIO + ProtocolBuffer的游戏服务器轻量级架构
1.基本架构
每个玩家(资源、怪物)模型分为程序和数据资源两项,其程序项为数据资源的管理项。类似传统代码中的XX类和XX_Manager类。
2.线程模型
精简版的魔兽世界网络和线程模型。
3.优先级队列
4.消息管理
5.协议管理
6.数据配置
7.Linux配置
# Boost
export BOOST_ROOT=/export/lazy/ServerService/ThirdParty/boost-1.60.0
export LD_LIBRARY_PATH="$BOOST_ROOT/stage/lib:$LD_LIBRARY_PATH"
# path
export PATH=/export/lazy/boost_1_60_0:/usr/lib/distcc/bin:/usr/local/bin:$PATH
# Proto buffer
export PROTOBUF_DIR=/export/lazy/ServerService/ThirdParty/protobuf-2.6.0/output
#关于引入BOOTST第三方库使用
./bootstrap.sh --with-libraries=date_time, filesystem
./b2
ThirdParty
-behavior
-boost_1_63_0
-hiredis
-protobuf-2.6.1