Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Using select() on only one socket

by ivanatora (Sexton)
on Sep 04, 2005 at 10:56 UTC ( [id://489041]=note: print w/replies, xml ) Need Help??


in reply to Re: Using select() on only one socket
in thread Using select() on only one socket

Problem solved!

:)
I didn't use the handles returned from can_read(). Actually I thought that I can use the initial $sock filehandle after the select statement... When I use the handle returned from can_read, it works perfectly :)
Thanks.
  • Comment on Re^2: Using select() on only one socket

Replies are listed 'Best First'.
Re^3: Using select() on only one socket
by Crackers2 (Parson) on Sep 04, 2005 at 15:18 UTC

    I know you already got a solution, but...

    Could the real problem be because your example used $sock when you create the socket and add it to the select, but $socket on the line where you try to read it ? (use strict should catch this though, so perhaps it's just a typo you made while entering the example)

Log In?
Username:
Password:

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

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

    No recent polls found