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

Re^5: Problem handling 2 simultaneous socket streams

by zentara (Archbishop)
on Sep 30, 2011 at 10:55 UTC ( #928743=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $input;
     sysread( \*STDIN, $input, 1024);
    
  2. or download this
    use Fcntl;
      
    fcntl(\*STDIN, F_SETFL, O_NONBLOCK) || die "$!\n";
    # Set the non-block flags  
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2015-07-31 05:46 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 (274 votes), past polls