Re: [Fwd: Module namespace request: Event::RPC]
[email protected] (Jörn Reder) Sun, 13 Mar 2005 15:11:57 +0100
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
------------=_1110723117-31726-11 Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Uri Guttman wrote: > you should sign up for the perl-loop list (we are cc'ing it). Yep, did that already and stopped CC'ing you and Joshua in my last=20 posting, because I think we all don't need to get our messages twice ;) > i haven't checked out the other RPC modules but there are a bunch on > cpan. possibly you could steal^Wlearn a few ideas from them. :). I tried, but I didn't find any modules which are tied to Event. There=20 are solutions for preforking or multithreading servers, but these=20 techniques are no choice for me. Probably I simply didn't find the right modules, although I tried hard - CPAN is big ;) Another "world" is the POE stuff, which has a somewhat=20 high learning curve as well and I prefer the simple Event API over it. Event::RPC is very small (about 1300 lines) has a simple API as well. On the server side you write down the classes and methods you want to have accessible from outside. On the client side you connect to the server=20 and write your code like having the objects instantiated locally.=20 Everything else is handled transparently. [A major TODO is adding=20 security - currently there is none!]. I created a preliminary distribution archive (almost no documentation=20 and test scripts yet, but fully working), so you can take a look at it=20 if you like: http://www.exit1.org/packages/Event-RPC/dist/Event-RPC-0.80.tar.gz Start 'examples/server.pl' in one console, and 'examples/client.pl' in=20 another. It's nearly the stuff I wrote in my summary, just some logging output is added. Regards, Joern --=20 Joern Reder supporting: http://www.zyn.de/ unbelievable: http://www.exit1.org/ CPAN: http://www.perl.com/CPAN/modules/by-authors/id/J/JR/JRED ------------=_1110723117-31726-11 Content-Type: application/pgp-signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCNEot2hNi0Chc9HMRAxYuAJ91MXpXw72H5RIKifQ02Q/6tdzO3wCgknG/ L9Djdj4bv41/GLRLs3yl4ko= =lH6e -----END PGP SIGNATURE----- ------------=_1110723117-31726-11--