Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: telnet question

by erroneousBollock (Curate)
on Nov 14, 2007 at 23:16 UTC ( #650867=note: print w/ replies, xml ) Need Help??


in reply to Re: telnet question
in thread telnet question

Since Net::Telnet isa IO::Socket::INET, you can probably also use IO::Select to multiplex many simultaneous connections, without fork() or threads.

I haven't investigated this though.

-David


Comment on Re^2: telnet question
Re^3: telnet question
by perlsyntax (Pilgrim) on Nov 15, 2007 at 01:54 UTC
    So your saying Net::Telnet anf IO::Select would be the the one i use and fork?if i got this right.
      No, you would not normally use IO::Select and fork() together. The three main approaches to parallel communications are:
      • threaded: use threads;
      • forking: fork()
      • multiplexed: use IO::Select;

      As I said above, I don't know for sure that you could get Net::Telnet to work with IO::Select (it has to do with buffering).

      -David

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://650867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-05 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls