Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Using Coro with Telnet

by basiliscos (Pilgrim)
on Mar 29, 2014 at 10:52 UTC ( #1080206=note: print w/replies, xml ) Need Help??

in reply to Using Coro with Telnet

AFAIK, Coro/AnyEvent do not bring asynchronous magic to any other perl module (e.g. Net::Telnet). So, if underlying library mechanics is blocking, they'll remain blocking with Coro.

That could be determined by module dependencies: if it does not depends on AnyEvent/EV, they are probably blocking.

Actually, in reality things could be a bit more complex, e.g. Mojolicious: it does not depends on AE/EV explicitly, but in can optionally use EV. That means, that you can use AE modules together with Mojolicious, if there is EV installed.

So, you probably should determine whether Net::Telnet supports non-blocking code style (aka depends on AE/EV); and if it is not, then find with that support or write the module by yoursef :)

Replies are listed 'Best First'.
Re^2: Using Coro with Telnet
by mpapec (Novice) on Mar 29, 2014 at 16:43 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1080206]
[Lady_Aleena]: You're welcome marioroy. There are a whole lot of linking shortcuts.
[marioroy]: Thank you Lady_Aleena. I've bookmarked the page.
[1nickt]: folks, would you say that 1.0 is an integer ?
[Lady_Aleena]: 1nickt, I wouldn't, but I'm not normal.
LanX aggrees, LA isn't normal ;-P
[Lady_Aleena]: LanX, thanks bunches.
[Lady_Aleena]: Rigth now I'm ranting in my head about an old subject.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-05-24 18:27 GMT
Find Nodes?
    Voting Booth?