Hi Dmitri, I don't think that any of the 3 items precludes use in C++. At least, I have not had any problems using libevent in C++ applications. That said, if you have any patches, that would make it easier to integrate libevent with C++ code, fell free to send them.
For patches, I would prefer to keep the numer of ifdefs minimal. Niels. On 8/7/06, Dmitri Kalinin <[EMAIL PROTECTED]> wrote:
I tried to examine the internals of libevent source code. I figured out that: 1. getenv() is often used to determine the event demultiplexing method at runtime. 2. Sometimes the library outputs messages on stdout/stderr 3. there is at least one occurence of exit() system call All those things make it hard to include the library in a C++ project. Is there a way do disable all or some of those features (i think i can setup a custom error handling policy, but how?) Maybe the source code has to be modified using ifdef's to include or exclude all those features from the build. Is there a plan to do this ? Maybe I could try to do this myself. Would you accept such a patch? _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users
_______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users