Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How do I do a non-blocking accept?

by chromatic (Archbishop)
on Mar 30, 2000 at 22:01 UTC ( #6541=note: print w/ replies, xml ) Need Help??


in reply to How do I do a non-blocking accept?

My notes recommend something like this (assuming Connection is your socket descriptor?):

use Fcntl; fcntl(Connection, F_SETFL, O_NONBLOCK) or die "can't set non blocking: $!";
I suppose you could also wrap your Socket->accept() in alarm() calls....


Comment on Re: How do I do a non-blocking accept?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-07-05 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls