Skip to content

hubugui/eloop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eloop

中文

Introduction

Eloop is an event-driven foundation library based on the C language, providing:

  • TCP Server for asynchronous IO.
    • Currently, only supports select on Windows and KQueue on MacOs.
  • Timers.
  • Asynchronous function callback.

During the implementation, reference was made to libae. Thanks!

Development

Operating Systems

  1. Windows
  2. Linux
    • In progress, to be verified.
  3. MacOs *

Build

  • make
  • make clean

Usage

  1. Start the pingpong service, such as ./pingpong.exe on Windows.
  2. Open a telnet client as follows:
    • telnet 127.0.0.1 14317
    • Enter "ping", press Enter, and you will receive a "pong" response from the server.
    • Enter "exit", press Enter, exit game.

Todo

  • MacOs Kqueue
  • Linux epoll
  • Log callback function
  • Http Server example
  • CI automated testing, base on pingpong.c
  • Binary tree implement timer operate
  • Performance test

Contribution

Contributions of code and issue reports are welcome!

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published