Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-06-27 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (616 votes). Check out past polls.