Git Product home page Git Product logo

kcpev's Introduction

kcpev

Build Status Build status

设计: TCP 和 UDP 同时使用,结构参考同现有 TCP 服务器整合

========== ###Feature:

  • Linux 和 Windows 下都能编译运行,但 Windows 下只支持客户端的运行,服务端 udp 不能正确接收数据
  • tcp 和 udp 收发,默认使用 udp;udp 不可用时切换为 tcp,也可以强行使用 tcp
  • tcp 包使用 ringbuf 来重组,保证完整
  • udp 使用 kcp 来保证收发可靠
  • udp 心跳包
  • 收发正确性测试
    • tests/kcpev_package_test
    • tests/echo_server + tests/kcpev_remote_package_test
  • 压测
    • pressure_test.sh

========== ###TODO:

  • 心跳包测试
  • 断线重连

========== ###Dependency:

========== ###Build:

  • Linux

    • apt-get install libev-dev uuid-dev
    • ./travis.sh
  • Windows

    • install cmake
    • powershell
    • Set-ExecutionPolicy RemoteSigned
    • ./build.ps1
  • Mac

    • brew install libev
    • ./travis.sh

kcpev's People

Contributors

disenone avatar

Watchers

James Cloos avatar blueby 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.