Alexander Lazic wrote:
Hi,
i want to write a a simple plug-daemon and then an http-proxy with the
libevent but i have a little bit problem with the callback && the right
settings of
EV_READ| EV_PERSIST|EV_WRITE
'or the hole thinking in fd-nonblocking-programming' ;-)
I have written a program for my first test which you can get, if you
want, from http://none.at/main.c
Please can anybody help me ;-)
It's ok if none want because i can understand that nobody waste his time
with a newbie.
However thanx for reading this mail ;-)
Regards
Alex
hmm.. okay.. you only need EV_READ|EV_PERSIST on the event you setup for
the listening socket, as all it does is listen. You need to create a
new event for each file descriptor you accept for.
You might just wish to use bufferevents for your buffering. You will
need to play around to get the proper pairing of the 2 file descriptors
though.
-Phil.
_______________________________________________
Libevent-users mailing list
[email protected]
http://monkey.org/mailman/listinfo/libevent-users