Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl an array of sockets

by NetWallah (Canon)
on Nov 20, 2017 at 22:27 UTC ( [id://1203845]=note: print w/replies, xml ) Need Help??


in reply to Perl an array of sockets

I have not used EV event loops, but this code looks suspicious:
sub incoming { my $w=shift; $fh=$w->fh->accept or die; <<<<<<<
You are using a GLOBAL $fh , then attaching another watcher to it that calls back "sub cliente()".

Try deleting the global "my $fh", and making it local to sub incoming().

                All power corrupts, but we need electricity.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-18 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found