Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: use sysread to read non-blocking filehandle

by Corion (Pope)
on Nov 04, 2014 at 13:57 UTC ( #1106037=note: print w/replies, xml ) Need Help??


in reply to Re^4: use sysread to read non-blocking filehandle
in thread use sysread to read non-blocking filehandle

You could check whether you closed your session and don't expect any more data. Maybe eof could help there too.

Using these two criteria, you should be able to determine whether there was just not anything read, or whether the other end has closed the connection.

  • Comment on Re^5: use sysread to read non-blocking filehandle

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2020-11-29 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?