Giter VIP home page Giter VIP logo

asdlei99 / ytsvrlib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sherry0319/ytsvrlib

0.0 1.0 0.0 132.43 MB

A game server library for linux/windows(support TCP, UDP, HTTP(S) and Websocket,MySQL,redis) 一个简单但功能强大的跨平台(Win/Linux)游戏服务器框架.支持TCP,UDP,HTTP,WEBSOCKET.支持MySQL和Redis

License: MIT License

C++ 77.32% C 20.66% Objective-C 1.57% Makefile 0.01% M4 0.01% Shell 0.04% Pascal 0.36% CMake 0.01% Python 0.01% Pawn 0.02%

ytsvrlib's Introduction

YTSvrLib TravisCI Status AppVeyor Status

a simple&powerful game server library for both linux/windows

What's new in version 2.0 beta
更新2.0测试版本

  • Removed libevent dependency and change the network lib to asio.

  • 移除了对libevent库的依赖,全面开始转向C++11/14

  • Optimized the network lib and websocket lib and make it more easier to use.

  • 对网络库做了大量优化,使接口更清晰易用.剔除了很多容易引起使用者误会的接口.

  • Update msvc to vs2017 for feature of c++11/14

  • 为了利用C++11/14的新特性,升级Windows编译器和所有依赖库至vs2017

Install Windows

  • 1.Install Visual Studio 2017.
  • 2.Start with YTSvrLib.sln
  • 3.Build solution, get the YTSvrLib.lib
  • 4.Use the .lib in your project.

Install Linux

  • 1.Install dependent libraries : libiconv libcurl libmysqlpp libmysqlclient libpthread libtcmalloc
  • 2.cd src && ./configure && make install
  • 3.You can get libytsvrlib.so.
  • 4.Use the libytsvrlib.so in your project.

How to use

  • See the project "Sample".

在Windows下使用

  • 1.安装 Visual Studio 2017
  • 2.使用YTSvrLib.sln打开项目
  • 3.编译项目,你可以得到YTSvrLib.lib
  • 4.在你的工程中链接lib

在Linux下使用

  • 1.先安装以下依赖库 : libiconv libcurl libmysqlpp libmysqlclient libpthread libtcmalloc
  • 2.cd src && ./configure && make install (或者你可以直接用./makeall.sh来获得debug版本或者./makeall_release.sh来获得release版本)
  • 3.你将会得到libytsvrlib.so
  • 4.将它用在你的项目中.

如何使用

请参考"Sample"项目了解使用方法.

ytsvrlib's People

Contributors

sherry0319 avatar

Watchers

 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.