Giter VIP home page Giter VIP logo

ansio's Introduction

ansio

async event based on libevent 基于libevent的异步服务框架,通过自定义内存数据处理和异步延迟方式持久花数据可以同时处理百万级别并发连接(内置websocket服务)底层基于linux epoll。

#安装 安装libevent模块php部分加入libevent.so路径在runtime下面

#demo:

修改:config/demo/mysql.php

修改:app/socket/server/demo.php line71,line89,line90

  1. server启动:php server.php demo start (demo中同时运行2个实例包括websocket。websocket也可以独立运行)
  2. client debug: 终端直接 nc 127.0.0.1 9999 回车 然后输入{"c":"test\\test","p":{"argu1":123,"argu2":456}}~~code~end~~
  3. websocket 客户端在 webscketclient目录。通过 http方式访问

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.