Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: SELECT help...

by integral (Hermit)
on Feb 18, 2003 at 09:29 UTC ( #236220=note: print w/replies, xml ) Need Help??


in reply to SELECT help...

$selectFD = new IO::Select($rec[$RXThreadNumber], undef, undef, 1);
The immediate problem I can see with your code is the above call. The constructor for IO::Select doesn't take the same parameters as the select function. It takes a list of handles. Check the IO::Select pod for more information. This means that your timeout isn't begin set properly, and you experience the symptoms of this.
$|++; # flush the buffer apparently...
If you want to know more about how this works, you need to read the perlvar pod. If you use the IO::Handle classes for your filehandles you can use their autoflush method to make this nicer.

--
integral, resident of freenode's #perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-10-01 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.