Questions tagged [libevent]

libevent is an API for writing event driven systems. libevent is written in C and should compile on Linux, *BSD, Mac OS X, Solaris and Windows.

From the Homepage: Libevent

libevent is meant to replace the event loop found in event driven network servers. An application just needs to call event_dispatch() and then add or remove events dynamically without having to change the event loop.

Currently, libevent supports /dev/poll, kqueue(2), event ports, select(2), poll(2) and epoll(4). The internal event mechanism is completely independent of the exposed event API, and a simple update of libevent can provide new functionality without having to redesign the applications. As a result, Libevent allows for portable application development and provides the most scalable event notification mechanism available on an operating system. Libevent can also be used for multi-threaded applications; see Steven Grimm's explanation. Libevent should compile on Linux, *BSD, Mac OS X, Solaris and Windows.

368 questions
166
votes
16 answers

configure: error: C compiler cannot create executables

I've checked a number of similar questions on stackoverflow but haven't found an answer yet. I'm trying to install memcached on Lion OSX as shown here. Here's what I'm getting: j-court-demones-macbook-pro:libevent-1.4.12-stable jcourtdemone$…
CourtDemone
  • 5,772
  • 6
  • 23
  • 25
107
votes
3 answers

What's the difference between libev and libevent?

Both 2 libs are designed for async i/o scheduling, and both engages epoll on linux, and kqueue on FreeBSD, etc. Except superficial differences, I mean what is the TRUE difference between these two libraries? regarding to architecture, or design…
ciphor
  • 8,018
  • 11
  • 53
  • 70
35
votes
7 answers

Is there any modern review of solutions to the 10000 client/sec problem

(Commonly called the C10K problem) Is there a more contemporary review of solutions to the c10k problem (Last updated: 2 Sept 2006), specifically focused on Linux (epoll, signalfd, eventfd, timerfd..) and libraries like libev or libevent? Something…
gdamjan
  • 998
  • 9
  • 12
33
votes
9 answers

Node.js for lua?

I've been playing around with node.js (nodejs) for the past few day and it is fantastic. As far as I can tell, lua doesn't have a similar integration of libev and libio which let's one avoid almost any blocking calls and interact with the network…
Shahbaz
  • 10,395
  • 21
  • 54
  • 83
32
votes
6 answers

fatal error: 'openssl/bio.h' file not found

I am trying to install Apache Thrift on my Mac, but am hitting an issue. I followed the installation steps on this page, but when I try to do the steps for installing libevent, I get the following error when running the make command: fatal error…
Lewis-Eric
  • 321
  • 1
  • 3
  • 3
17
votes
1 answer

installation of libevent development libraries in ubuntu

I am using ubuntu 10.10 trying to install libevent development libraries libevent1 and libevent2. I used the below command- apt-get install libevent-dev libevent1-dev But it shows- Reading package lists... Done Building dependency tree Reading…
saz
  • 955
  • 5
  • 15
  • 26
14
votes
6 answers

How to install gevent on Windows?

I'm trying to install gevent on Windows. In order to do that, I've downloaded and compiled libevent, then I run pip install gevent and get an error: Please provide path to libevent source with --libevent DIR. How can I pass the libevent option to…
Ivan Gromov
  • 4,195
  • 9
  • 41
  • 57
13
votes
1 answer

How is nodejs different from running libevent?

I am curious what gives nodeJS the super concurrency that it gets right now. I have not actually used with either of these that much, just played with both in my spare time. Sounds like the 1000s of connections that node promises that you can set…
Mohit
  • 153
  • 2
  • 6
12
votes
1 answer

How scalable is Jetty?

Greetings! I wrote a highly scalable HTTP event (long-polling) server in C/C++ using libevent. However, it's messy, hardly portable, and lets face it: it's C. Let alone that I've been having some major issues with the mysqlcpp connector (which is…
David Titarenco
  • 32,662
  • 13
  • 66
  • 111
11
votes
2 answers

User triggered event in libevent

I am currently writing a multi-threaded application using libevent. Some events are triggered by IO, but I need a couple of events that are triggered accross threads by the code itself, using event_active(). I have tried to write a simple program…
Quentin
  • 269
  • 3
  • 9
11
votes
4 answers

How to use libevent and pthread together in C

The main function is based on libevent, but there is a long run task in the function. So start N treads to run the tasks. Is is this idea OK? And how to use libevent and pthread together in C?
Bruce Dou
  • 4,673
  • 10
  • 37
  • 56
9
votes
3 answers

Libev on Windows

Considering libevent vs. libev. Does the libev library have native support of IOCP on Windows?
Cartesius00
  • 23,584
  • 43
  • 124
  • 195
9
votes
2 answers

Why shouldn't I use async (evented) IO

I am writing now writing some evented code (In python using gevent) and I use the nginx as a web server and I feel both are great. I was told that there is a trade off with events but was unable to see it. Can someone please shed some light? James
James
  • 605
  • 1
  • 5
  • 9
8
votes
2 answers

libevent and epoll,which is more efficient?

I think these are the two event-dealing libraries among the best. These two both have many users,but which is better?
wireshark
  • 1,295
  • 2
  • 14
  • 20
8
votes
3 answers

How to build libevent version 2.0.10 with Visual Studio 2008

Does anyone have clear instructions on building libevent-2.0.10 with Visual Studio 2008?
Rich
  • 4,572
  • 3
  • 25
  • 31
1
2 3
24 25