On Tue, Jun 21, 2011 at 1:31 PM, Zabrane <[email protected]> wrote:
> Hi Brandon,
> Could your proxy code be shared for new comers (as me)?
> It'll be very good if build up a repository of libev examples.

Unfortunately it's not very good example code in its current state.
It uses unportable things (e.g. Linux's splice(2)) that have a
significant impact on how everything works, it implements a quirky
proprietary protocol, and it was written for raw speed and getting the
code out the door quickly, at the expense of the logic often being
very hard to follow.  I think in the time it took any sane person to
comprehend my proxy code, they could simply learn to write something
cleaner on their own the hard way :).  Someday I hope to refactor it
to be releasable as a cleaner, generic proxy that can support multiple
protocols, but that could be a few months away yet, and even then it
would probably still be highly Linux-specific.

-- Brandon

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to