Coder Social home page Coder Social logo

tinylib's Introduction

又一个同时支持window/linux平台的EventLoop实现,包含IO事件/timer/异步事件的处理
在此之上实现了tcp/udp通讯框架,包括client/server端的功能

其基本实现是仿照了陈硕的muduo网络库,算是它的一个初级的C语言精简版,这里向陈硕致敬!
除此之外,还额外提供了atomic/base64/md5/time_wheel/url解析/基本log框架,适用于基本的开发需要。

具体的使用方法见test目录下的用例。

IMPORTANCE: This repo is NOT product-ready ! You guys are at your own RISK to use it in your development !

TODO:
1, 目前可读事件响应时,只执行了一次读操作,可优化为重复读直至读清,以减少事件通知浪费。
2, 为UDP发送增加显示指定固定目标目标地址的接口,以减少内核中重复临时connect的消耗。

tinylib's People

Contributors

lanyuliuyun 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.