Poseidon Game Server (C++98/11 + boost + OpenSSL + MySQL + MongoDB)
Switch branches/tags
Nothing to show
Clone or download


CI Category Build on OS Host OS Build Status
Travis CI Primary Ubuntu Trusty Ubuntu Trusty Build Status

GNU nano for the win!



Poseidon is a C++ framework for game server development.



  • CBPP
    CBPP 是 Compressed Binary Protocol for Poseidon 的缩写,
    CBPP is short for 'Compressed Binary Protocol for Poseidon'.
  • HTTP 1.1
  • WebSocket
  • MySQL
  • MongoDB


Tools Needed to Build

  • automake
  • autoconf
  • libtool
  • libssl-dev
  • gettext
  • make
  • g++
    建议 g++ 版本至少为 4.7 以支持 C++11 特性。
    针对 C++98 的支持将会在未来的版本中被移除。
    It is highly recommended that you use at least g++ 4.7 for C++11 features.
    Support for C++98 is deprecated and will be removed in future versions.
  • libboost-dev
  • lib{a,l,ub}san (OPTIONAL)
  • libmysqlclient-dev (OPTIONAL)
  • libbson-dev (OPTIONAL)
  • libmongoc-dev (OPTIONAL)
  • libmagic-dev (OPTIONAL)


Runtime Environment Requirements

  • Debian Linux Stretch
    这是主要被支持的 Linux 发行版,使用其他发行版的 Linux 不保证兼容性。
    旧版 Debian(例如 Squeeze)有已知的严重问题(例如 g++ 4.4 的 bug 导致运行时
    This is the Linux distribution that we support primarily and we don't
    guarantee full compatibility with other Linux distributions.
    Older Debian versions (e.g. Squeeze) are known to have some serious problems
    (e.g. runtime SIGSEGV due to bugs in g++ 4.4) that we are not willing to
    provide ANY suppport for. It is you that should work around them.

  • MySQL (MariaDB) 10.1

  • MongoDB 3.2
    third 目录下有 MySQL 和 MongoDB 的驱动更新脚本可用于编译最新的客户端驱动。
    此处列出的是 Debian Stretch 的 APT 源中的版本。
    There are scripts that can be used to fetch and build latest MySQL and MongoDB
    client drivers in third directory. The version numbers here are of packages
    from Debian Stretch APT sources.

IRC channel:



Bug Reports

请联系 lh_mouse at 126 dot com(注明 Poseidon 相关)。
Please email to lh_mouse at 126 dot com (Please state your email as related to Poseidon).