Hi!
I'm starting to write a multimedia broadcast server using libevent (I'm
planning to code it using libevent 2.0.x). Since i'm really new to nonblocking
async network I/O programming, i would like to know if it's possible to solve
some doubts/issues i'm having regarding libevent 2.0.
Let's suppose my app has to serve about 1K TCP connections. Since the app has,
let's say, 10 different feeds to broadcast to different groups of connections
(which any group can have any connection id, even overlapped connection id's on
different groups; where each group may serve a unique feed).
1) Does libevent 2.0 has the possibility to broadcast (in TCP terms) a chunk of
data to all groups of connection ids with only _one_single_ libevent system
call (let's say a zero-copy like) ? If not, is there any abstract API in
libevent core that I could implement my broadcast behaviour?
2) In postive case, would i have to use different event_base loop for each
group of connection ids (each group is a feed of multimedia data) or libevent
would allow me to create different groups inside a same event_base loop?
3) Would any one help me with a example or a tip?
4) In the negative case, is any possibility to have this implemented in future
realeases? It really would be a great idea since this would the overhead of the
same system call to each of connection id's in any group!
Thanks for the help and attention!
Regards,
Raine