Hi Wensong ;) On Fri, 2007-06-29 at 16:08 +0800, wensong zhang wrote: > Hello, > > We want to use sofia sip stack with our modules such as STUN, TURN and > ICE. Those modues use libevent library for event handling. We still > like to keep single-thread event-driven architecture. > > There are probably two ways to integrate: one is to change those > modules to use sofia event loop interface, it seems some work; the > other is to change sofia to use libevent, though sofia has already > supported the select/poll/epoll/kqueue/devpoll event mechanism. > > If I want to give a try to the latter, do I just need to make a > su_libevent_port.c file to hook up in libevent?
Or you can run your current STUN/TURN/ICE in one process and sofia in another and specify a common interface using kind of AF_UNIX channel to drive and reflect events from each process. This is the way I run sofia with a rtp forwarder/transcoding engine. on the one hand, sofia is runing its own I/O MUX and on the other hand RTP engine is using custom I/O MUX. cya, Alexandre ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel