On Thu, Feb 19, 2009 at 5:09 AM, jamal <h...@cyberus.ca> wrote:
> This makes it easier to integrate libraries that provide their own
> read/write functions (such as openssl).

I haven't looked at the patch, but I'm a little skeptical of a one-size-fits-all
approach to integrating things like openssl.  As the openssl faq says, you
can't just call its read and write functions and expect them to work like
regular ones:
http://www.openssl.org/support/faq.html#PROG10

Do you have an example app that shows your code working with
openssl?
- Dan

p.s.
FWIW, here's how chromium uses libevent with nss (sorry, it's a little
convoluted):
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/nss_memio.c
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/nss_memio.h
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/ssl_client_socket_nss.cc
http://src.chromium.org/viewvc/chrome/trunk/src/net/base/ssl_client_socket_nss.h
http://src.chromium.org/viewvc/chrome/trunk/src/base/message_pump_libevent.cc
http://src.chromium.org/viewvc/chrome/trunk/src/base/message_pump_libevent.h

I do have a standalone demo I could dig out if people are interestd.
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to