Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Non blocking read on a filehandle

by Anonymous Monk
on Nov 20, 2008 at 16:41 UTC ( [id://724919]=note: print w/replies, xml ) Need Help??


in reply to Re: Non blocking read on a filehandle
in thread Non blocking read on a filehandle

> # I'm not sure the following is necessary?
> return unless vec($rfd,fileno($fh),1);

select() allows you to check for many file descriptors at once by adding each fd into the $rfd vector. The $rfd gets modified by select() to let you know which file descriptors are available.

The second line of code here verifies that the file descriptor you asked about is one that's ready.

  • Comment on Re^2: Non blocking read on a filehandle

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found