Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

client/server tcp/ip module ?

by bugsbunny (Scribe)
on Feb 12, 2003 at 09:34 UTC ( [id://234629]=perlquestion: print w/replies, xml ) Need Help??

bugsbunny has asked for the wisdom of the Perl Monks concerning the following question:

hi, does anyone know of a module which can do the client/server communications for me, so that i can concentrate on the real task.. I will need mostly to excahge messages ... any ideas and solutions ... of cource also the ability of a such script to run like deamon (there was a such module on CPAN afaik) thanx in advance

Replies are listed 'Best First'.
•Re: client/server tcp/ip module ?
by merlyn (Sage) on Feb 12, 2003 at 12:26 UTC
Re: client/server tcp/ip module ?
by PodMaster (Abbot) on Feb 12, 2003 at 09:56 UTC
Re: client/server tcp/ip module ?
by Ryszard (Priest) on Feb 12, 2003 at 09:43 UTC
    I've used Net::Server very effectivly in the past. The documentation is a little difficult to comprehend straight up, (or at least was for me at the time) however with a little tenacity, i've got something that works really well.

    This is only one half of you're requirement, i would think client communication could be handled quite effectively by IO::Socket

Re: client/server tcp/ip module ?
by hiseldl (Priest) on Feb 12, 2003 at 13:41 UTC

    Take a look at "Advanced Perl" in the networking chapter for an implementation of a client/server. You can find the example scripts at http://examples.oreilly.com/advperl/; when you unzip the file, look in the Networking directory for the Msg.pm and RPC.pm. You should be able to get an idea of how to use them from the demo scripts.

    --
    hiseldl
    What time is it? It's Camel Time!

Re: client/server tcp/ip module ?
by zentara (Archbishop) on Feb 12, 2003 at 18:37 UTC
    Go to cpan and get Net::EasyTCP. It does it all by passing hashes back and forth, and has built in encryption. It is the way to go as far as I'm concerned.

      The security protocols used by EasyTCP are... um... suboptimal. Its password authentication mechanism is vulnerable to eavesdropping. The symmetric encryption keys are passed in the clear if you're not careful. And there's no protection at all against active attackers. If encryption is a real requirement, you should use something else.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://234629]
Approved by PodMaster
Front-paged by bronto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found