All Projects → bytemode → skynet_pbc

bytemode / skynet_pbc

Licence: MIT license
skyne use pbc protobuf

Programming Languages

lua
6591 projects
Protocol Buffer
295 projects
Makefile
30231 projects

Projects that are alternatives of or similar to skynet pbc

skynet-lua-websocket
Add a lua websocket library for the skynet game server framework.
Stars: ✭ 23 (-47.73%)
Mutual labels:  skynet
freeioe
FreeIOE is a framework for building IOE (Internet Of Everything) edge-computing gateway 开源的边缘计算网关框架. 讨论群: 291292378
Stars: ✭ 77 (+75%)
Mutual labels:  skynet
skynet-cocos-creator
skynet cocoscreator puremvc
Stars: ✭ 44 (+0%)
Mutual labels:  skynet
skynet
Use Sia Skynet and SkyDB in your Dart and Flutter projects (Decentralized CDN and database)
Stars: ✭ 25 (-43.18%)
Mutual labels:  skynet
Skynet3d
Skynet3d
Stars: ✭ 62 (+40.91%)
Mutual labels:  skynet
UnitySkynetMultiPlayerGame
skynet server, unity client, state sync multiplaye game
Stars: ✭ 23 (-47.73%)
Mutual labels:  skynet
coctohug
Coctohug - Manage dozens of chia forks mining from a web browser! Nice localization with support of dozens of languages. Runs on Linux, Windows, MacOS, and more...
Stars: ✭ 36 (-18.18%)
Mutual labels:  skynet
SkyGallery
Create galleries by uploading images and videos. Powered by Sia Skynet.
Stars: ✭ 23 (-47.73%)
Mutual labels:  skynet
SparkServer
SparkServer是一个参照skynet设计的C#服务端框架,能够无缝整合到skynet集群机制中,也能自行组网,构建只有SparkServer节点的集群
Stars: ✭ 184 (+318.18%)
Mutual labels:  skynet
ZNet
基于libuv的skynet移植
Stars: ✭ 35 (-20.45%)
Mutual labels:  skynet

skynet使用pbc解析protobuf,使用socket和客户端通信。

服务器编译步骤:

clone完整的代码 代码中引用了skynet和pbc
git clone https://github.com/gameloses/skynet_pbc.git

cd skynet_pbc
git submodule init
git submodule update

cd skynet
git submodule init
git submodule update

编译skynet

cd skynet
make linux

编译pbc

cd ../3rd/pbc
make

cd binding
cd lua53
make

如果提示找不到lua.h则需要安装一下lua5.3. make && make install
(或者修改一下Makefile文件,设置lua.h的路径)

将protobuf.lua复制到根目录的lualib目录
protobuf.so文件复制到根目录的luaclib目录

编译proto文件

回到根目录
make

如果没有安装protobuf的话会报错,因为要使用到protoc
yum install protobuf-devel.x86_64
yum install protobuf.x86_64

运行

. run.sh
具体教程见wiki

使用cocos2dx 测试一下连接。

clinet的地址: https://github.com/gameloses/cocos2dx_lua_skynet_client.git

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].