Coder Social home page Coder Social logo

xnet's Introduction

xnet

xnet是用c编写的跨平台(支持windows和linux)网络库。

xnet具有以下特点:

  1. windows下使用select,linux下使用epoll。
  2. socket大部分跨平台代码在xnet_socket中实现。
  3. 通过注册回调函数的方式处理socket io事件。
  4. 可以通过注册command回调处理用户自定义事件。
  5. 提供pack/unpack机制(目前支持http、sizebuffer、line),可以对数据方便地进行处理。
  6. 提供了简单的异步日志实现。
  7. 支持udp,ipv6。

build

Linux:

make linux

Windows(for MinGW):

make win

xnet's People

Contributors

chengf2018 avatar

Stargazers

 avatar h.w avatar  avatar

Watchers

 avatar

Forkers

lzb991435344

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.