Network_Library - HanDDol/sirveillance GitHub Wiki

I will use network wrapper for this project. It may be libev or libevent. In this page, I'll compare the two library.

Basically, two libraries provide same functionality and are very similar. In the point of basic function, two libraries are same.

Pros of Libevent

  • Windows support (especially on IOCP)
  • Very popular and used for long time
  • DNS, http and bufferevents

Pros of Libev

  • Very simple
  • DNS and HTTP is not used for this project

libev has strong point on simplicity and libevent on bufferedevent. Simplicity vs Asynchronous IO. I will have to review bufferedevent of libevent.

There is limitation on bufferevent. It is used only for TCP. My application need the UDP and multicast. So the strong point of bufferevent is banished.

**My choice will be libev. **

Reference