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

Re^5: Does IO::Select work? (Problem partially resolved)

by BrowserUk (Pope)
on Oct 23, 2012 at 10:11 UTC ( #1000462=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        my $sock = new IO::Socket::INET( 'localhost:12345' );
    ## Here the handle is closed.
  2. or download this
    for( 1 .. 2 ){ 
        my $sock = new IO::Socket::INET( 'localhost:12345' );
    ## The first handle was implicitly closed during the second iteration.
  3. or download this
        my $client = $svr->accept;
        async {
            ## do things with $client
  4. or download this
        my $client = $svr->accept;
            sleep 10;
            ## attempts to use $client fail

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2015-11-28 08:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls