Giter VIP home page Giter VIP logo

xxlib_simpleframework's Introduction

基于 libuv, 适合用 C# 开发服务器端的基础框架

开发需要 vs2017( 升级到最新 ) 并勾安 C++ 相关, windows 通用 CRT SDK(旧版), windows 8.1 SDK, windows 通用 C 运行时 用 vs2017 打开 all.sln 即可看到所有最新项目. 注意: 需要切换 Debug, Release 反复编译直到全部通过( 因为部分依赖采用了直接引用生成目录的 dll 文件的方式 )

技术讨论群: 125081098

目录大结构:

  1. 生成器
  2. 模板
  3. 依赖库
  4. 示例

生成器通过对模板的读取解析, 产生具体项目代码, 向指定生成目录覆盖写入

目录结构:

db 数据库操作代码生成器的输出目录项目

dbgen 数据库操作代码生成器, 生成目标路径当前为 db 项目下

dbgen_template_DB 数据库模板, 用于填写所有用到的 SQL 语句, 以及描述结果集的长相( 可以同时添加多个此类项目, 保持 dbgen_template_ 前缀即可 )

gen_library 各种生成器所依赖的库

pkg 通信包生成器的输出目录项目

pkggen 通信包生成器, 生成目标路径当前为 pkg 项目下

pkggen_template_RPC 通信包结构描述模板( 可以同时添加多个此类项目, 保持 pkggen_template_ 前缀即可 )

xxuvlib 为 libuv 封装本体, 可跨平台编译为各种 dll so a 啥的, 支持.net core

xxlib_csharp libuv 的 C# 端, 含各种周边工具类, 命名空间为 xx

xxnbsocketlib 主要为 unity 客户端( C#, LUA ) 服务的 c api 封装, 支持 tcp udp+kcp 通信

rpc_xxxxxxx 最新服务端项目实用示例

test_cppxxx 一些测试项目( 包含 C++ 部分最新的库的使用示例, 通常和 C# 部分差不多 )

附: ubuntu 下的一些操作记录

安装新版 gcc 并令其成为默认( 7.x 以上当前就够用了. ubuntu18+ 带的就是, 就可以不更新了 )

sudo apt-get install software-properties-common sudo add-apt-repository ppa:jonathonf/gcc-8.1 sudo apt-get update sudo apt-get install gcc-8 g++-8

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 sudo update-alternatives --config gcc gcc --version g++ --version

libuv 编译

./gyp_uv.py -f make BUILDTYPE=Release make -C out

sudo apt-get install uuid-dev

test_cpp5 目录下编译出执行文件: g++ -std=c++1z main.cpp ../xxlib/xx_uv.cpp ../xxlib/ikcp.cpp ../xxlib/http_parser.c -o xx -I../xxlib -I../libuv/include -L../libuv/lib/linux64 -luv -luuid -lpthread -O3

xxlib_simpleframework's People

Contributors

denghe avatar fjsds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.