Re: [Exim] limitations with embedded Perl

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Kirill Miazine
Dátum:  
Címzett: Andrew - Supernews
CC: exim-users
Tárgy: Re: [Exim] limitations with embedded Perl
Andrew - Supernews wrote:
> I'm not a big fan of using embedded Perl functionality to do
> non-trivial work (and anything which involves using XS modules that
> depend on external libraries can be considered non-trivial). At that
> point you are better off looking at talking to a separate process via
> some IPC mechanism.


Agreed. ${readsocket} is very helpful.

Have a daemon listening on a Unix socket and performing all
computations. Exim just provides it with some data and gets back the
results.

I have used Net::Server::PreFork for the daemon quite successfully.
Recently I became very interested in POE (<http://poe.perl.org/) and so
use POE's SocketFactory and ReadWrite wheels now.

--
Kirill Miazine
mailto:km@krot.org
http://km.krot.org/