Adam Tauno Williams <[email protected]> writes:
> On Wed, 2010-04-21 at 08:30 -0400, Andrew Hume wrote:
>
>> i realise this is a tad off subject, but i am an optimist!
>
>> i am tired of reinventing a particular wheel, namely that of a library
>> supporting a server with multiple threads servicing multiple inbound and
>> outbound sockets. the language needs to be C/C++ and it will run on redhat
>> linux. i am considering the zeromq library. can anyone recommend some
>> (hopefully public library) code to do this?
>
> doesn't libevent do this?
Yup. I prefer libev[1], but there are any number of equivalent libraries for
doing the same thing. Typically C libraries, but adding C++ isn't too hard.
> I'd suspect that something named zeromq is several tiers up from managing
> sockets.
A long way; another user recently spent some time asking the same questions on
the ZeroMQ list, and getting told that ZeroMQ is great if you just want binary
messaging, but isn't going to play nice with exposing FDs to you; it owns
those and runs threads in the background to service them for you.
Daniel
Footnotes:
[1] http://software.schmorp.de/pkg/libev.html
--
✣ Daniel Pittman ✉ [email protected] ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
_______________________________________________
Tech mailing list
[email protected]
http://lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/