All Projects → xuwening → Libeventinterface

xuwening / Libeventinterface

C++实现,对libevent库二次开发,解决libevent和自有服务融合问题

Projects that are alternatives of or similar to Libeventinterface

Go Xserver
Go 服务器框架(go-x.v2)
Stars: ✭ 137 (-6.16%)
Mutual labels:  server
Chorale
Chorale is a set of tools for interacting with Notion and Notion content.
Stars: ✭ 140 (-4.11%)
Mutual labels:  server
Markdownd
simple markdown server (optional indexing, no symlinks) report bugs: https://github.com/aerth/markdownd/issues (Heroku takes a couple seconds to load. Patience...)
Stars: ✭ 142 (-2.74%)
Mutual labels:  server
Desktoplivestreaming
DesktopLiveStreaming
Stars: ✭ 138 (-5.48%)
Mutual labels:  server
Magma
The magma server daemon, is an encrypted email system with support for SMTP, POP, IMAP, HTTP and MOLTEN,. Additional support for DMTP and DMAP is currently in active development.
Stars: ✭ 1,740 (+1091.78%)
Mutual labels:  server
Rillserver
skynet game server
Stars: ✭ 139 (-4.79%)
Mutual labels:  server
Sonic
🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.
Stars: ✭ 12,347 (+8356.85%)
Mutual labels:  server
Stelace
Open-source marketplace backend in Node.js, empowering Web platforms with Search API, Automation, Auth, Headless CMS… ⚡ 💻
Stars: ✭ 144 (-1.37%)
Mutual labels:  server
Rosid
Just-in-time development server and static site generator.
Stars: ✭ 139 (-4.79%)
Mutual labels:  server
Httptoolkit Server
The backend of HTTP Toolkit
Stars: ✭ 140 (-4.11%)
Mutual labels:  server
Knot
A mirrored repository
Stars: ✭ 138 (-5.48%)
Mutual labels:  server
Graphqlws
Implementation of the GraphQL over WebSocket protocol in Go.
Stars: ✭ 139 (-4.79%)
Mutual labels:  server
Ansible Role Nfs
Ansible Role - NFS
Stars: ✭ 141 (-3.42%)
Mutual labels:  server
Npm Webdav Server
WebDAV Server for npm
Stars: ✭ 138 (-5.48%)
Mutual labels:  server
Udpt
A lightweight UDP torrent tracker
Stars: ✭ 143 (-2.05%)
Mutual labels:  server
Unftp
A FTP(S) server with a couple of twists written in Rust. Follow and talk to us on https://t.me/unftp
Stars: ✭ 137 (-6.16%)
Mutual labels:  server
Tsw
Tencent Server Web
Stars: ✭ 1,757 (+1103.42%)
Mutual labels:  server
How To Secure A Linux Server
An evolving how-to guide for securing a Linux server.
Stars: ✭ 11,939 (+8077.4%)
Mutual labels:  server
Form Data
A module to create readable `"multipart/form-data"` streams. Can be used to submit forms and file uploads to other web applications.
Stars: ✭ 1,947 (+1233.56%)
Mutual labels:  server
Smoke
💨 Simple yet powerful file-based mock server with recording abilities
Stars: ✭ 142 (-2.74%)
Mutual labels:  server

libeventInterface

将libevent融合到已有服务

已经在线上跑的服务,修改网络同步接口为异步请求,libevent事件循环与服务事件循环冲突,进行融合。

特点

  • 对容器和服务进行抽象,方便扩充新的服务,如HTTPServer,TCPServer,TimeoutServer等
  • 对链路和请求进行管理
  • 在线查看请求响应统计,清除统计
  • 最大连接数,最大请求数,日志以及HTTP头信息可配置
  • 跨平台,windows、linux均适用
  • 方便二次开发

编译方式:

  1. windows平台

    首先下载libevent最新源码,用vs编译生成可用库;
    然后用vs2010以上版本打开\build\libeventInterface\libeventInterfacesln,设置libevent头文件目录和库目录,然后编译即可;
    将源码目录中的config目录拷贝到工程目录\build\libeventInterface\libeventInterface下运行
    
  2. linux平台

    首先下载libevent最新源码并编译,生成libevent库;
    查看是否平台有cmake工具,如果没有则安装cmake;
    进入libeventInterface源码目录,确认有CMakeLists.txt文件;
    执行:
    	mkdir build
    	cd build
    	cmake ..
    	make
    	cp -f ../config .
    	./libevent_test
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].