Questions tagged [libev]

A full-featured and high-performance event loop that is loosely modelled after libevent, but without its limitations and bugs. It is used, among others, in the GNU Virtual Private Ethernet and rxvt-unicode packages, and in the Deliantra MORPG Server and Client.

A full-featured and high-performance event loop that implements a reactor pattern and event-driven I/O in C. It is loosely modelled after libevent, but without its limitations and bugs

114 questions
0
votes
1 answer

libev sets sockets to blocking with no timeout

Rant: I really dislike boost::asio, So I've been looking at alternatives and came across libev. Which seems simple enough for me, but is doing a few things I cannot understand. If those are too many questions in one thread, please let me know. 1) I…
Ælex
  • 14,432
  • 20
  • 88
  • 129
0
votes
1 answer

Raising and handling events in C

I am porting some C# code (classes mostly) to C. I have analysed the code and the port is definitely possible. One thing I am not sure of though, is how to handle (i.e. implement) raising events in C. I am in a Linux environment, and I expect the…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
0
votes
1 answer

Libev error when compilng

I'm trying to compile a code with gcc -g -Wall -Wextra -DNDEBUG -pedantic -ansi flags and to use libev library. I am getting the following errors in eclipse: Description Resource Path Location Type expected ‘=’, ‘,’, ‘;’, ‘asm’ or…
Pio
  • 4,044
  • 11
  • 46
  • 81
0
votes
2 answers

Can epoll/libevent/libev work with UDT?

I'm building a high concurrency server which needs to handle tens of thousands of active sockets. I initially used epoll to build a event-based server and it worked well under moderate scale(several thousands of active sockets). But it seems to…
Tony
  • 453
  • 4
  • 7
  • 16
0
votes
1 answer

where ev_loop declared in libev?

I am studying libev and ev_loop is a very important component of libev. But I searched through the libev source codes and just could not found the definition of struct ev_loop. So, how should the ev_loop look like? struct ev_loop { /* anything…
changchang
  • 549
  • 4
  • 11
0
votes
1 answer

Asynchronous HttpClient using libev

I'm writing a web server using libebb (http://tinyclouds.org/libebb/) and libev. I'm looking for an async httpclient that uses the libev event loop. I'd like it to support Http 1.1 (pipelining, keep-alives, etc). I hope this isn't a dumb question.
NafisJamal
  • 227
  • 3
  • 7
0
votes
1 answer

a flag of libev about ev_default_fork

I'm learning libev. But I don't understand about the ev_default_fork flag of ev_loop. Is this a question of close-on-exec? Like the FD_CLOEXEC fcntl() flag do? when I need to set the flag? Which case this flag is necessary? This a description of…
simon
  • 1
0
votes
2 answers

Does a new watcher see old unhandled events?

If I have a socket and someone sent data to it that I didn't yet handle via read(), and now I make an ev_io watcher for it and run it, will the callback fire?
thejh
  • 44,854
  • 16
  • 96
  • 107
-2
votes
2 answers

what this syntax in libev C language?

While reading the doc in libev I find some C code of which the syntax is quite weird. static void stdin_cb (EV_P_ ev_io *w, int revents) { puts ("stdin ready"); // for one-shot events, one must manually stop the watcher // with its…
1 2 3 4 5 6 7
8